aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/arm_conv/depthwise/kernels/a64_fp32_nhwc_3x3_s1_output3x3_mla_depthfirst/generic_direct.cpp
blob: 9bfcd9cd3c0b3f3e9865d173dad6690eb32b8ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
/*
 * Copyright (c) 2021, 2023 Arm Limited.
 *
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include <cstddef>
#include <cstdint>

#if defined(__aarch64__)

namespace arm_conv {
namespace depthwise {

void a64_fp32_nhwc_3x3_s1_output3x3_mla_depthfirst_direct_impl(
  const unsigned int n_tile_rows,
  const unsigned int n_tile_cols,
  const float *inptr,
  int64_t ld_input_row,
  int64_t ld_input_col,
  float *outptr,
  int64_t ld_output_row,
  int64_t ld_output_col,
  const void *params,
  unsigned int n_channels,
  const float activation_min,
  const float activation_max
)
{
  struct Args
  {
    const uint64_t n_tile_rows, n_tile_cols;
    const float *inptr;
    const uint64_t ld_input_row;
    const uint64_t ld_input_col;
    float *outptr;
    const uint64_t ld_output_row;
    const uint64_t ld_output_col;
    const void *params;
    const float min, max;

    uint64_t tile_i = 0, tile_j = 0;

    Args(
      const unsigned int n_tile_rows,
      const unsigned int n_tile_cols,
      const float *inptr,
      int64_t ld_input_row,
      int64_t ld_input_col,
      float *outptr,
      int64_t ld_output_row,
      int64_t ld_output_col,
      const void *params,
      const float activation_min,
      const float activation_max
    ) : n_tile_rows(n_tile_rows), n_tile_cols(n_tile_cols), inptr(inptr),
        ld_input_row(ld_input_row), ld_input_col(ld_input_col), outptr(outptr),
        ld_output_row(ld_output_row), ld_output_col(ld_output_col),
        params(params), min(activation_min), max(activation_max)
    {
    }
  };

  Args params_struct(
    n_tile_rows, n_tile_cols,
    inptr, ld_input_row, ld_input_col,
    outptr, ld_output_row, ld_output_col,
    params, activation_min, activation_max
  );

  __asm__ __volatile__(
    "mov x24, #0x0\n"
    "mov x23, #0x0\n"
    "1:"  // Tile loop
    "str x24, [%x[params_struct], %[offsetof_args_tile_i]]\n"
    "mov x27, #0x3\n"
    "mov x26, #0x3\n"
    "str x23, [%x[params_struct], %[offsetof_args_tile_j]]\n"
    "ldr x25, [%x[params_struct], %[offsetof_args_ld_input_row]]\n"
    "ldr x22, [%x[params_struct], %[offsetof_args_ld_output_row]]\n"
    "mul x21, x24, x25\n"  // offset = tile_i * ld_input_row
    "ldr x8, [%x[params_struct], %[offsetof_args_ld_input_col]]\n"
    "ldr x17, [%x[params_struct], %[offsetof_args_ld_output_col]]\n"
    "mul x20, x24, x22\n"  // offset = tile_i * ld_output_row
    "mov x24, #0x10\n"  // cntb _, ALL, #1
    "madd x21, x23, x8, x21\n"  // offset += tile_j * ld_input_col
    "ldr x16, [%x[params_struct], %[offsetof_args_inptr]]\n"
    "lsl x8, x8, #0x2\n"
    "ldr x15, [%x[params_struct], %[offsetof_args_outptr]]\n"
    "madd x20, x23, x17, x20\n"  // offset += tile_j * ld_output_col
    "lsl x17, x17, #0x2\n"
    "lsr x23, %x[n_channels], #0x2\n"
    "ldr x14, [%x[params_struct], %[offsetof_args_params]]\n"
    "mul x21, x21, x27\n"  // offset *= kernel_stride * output_size
    "add x16, x16, x21, LSL #2\n"  // inptr[0] += offset * sizeof(float)
    "add x13, x16, x25, LSL #2\n"
    "mul x20, x20, x26\n"  // offset *= output_tile_size
    "add x12, x13, x25, LSL #2\n"
    "add x11, x8, x8\n"
    "add x15, x15, x20, LSL #2\n"  // outptrs[0] += offset * sizeof(float)
    "add x10, x12, x25, LSL #2\n"
    "add x9, x11, x8\n"
    "add x28, x15, x22, LSL #2\n"
    "add x20, %x[params_struct], %[offsetof_args_min]\n"
    "ld1r { v15.4s }, [x20]\n"
    "add x20, %x[params_struct], %[offsetof_args_max]\n"
    "ld1r { v14.4s }, [x20]\n"
    "add x27, x10, x25, LSL #2\n"
    "add x26, x9, x8\n"
    "add x25, x28, x22, LSL #2\n"
    "add x22, x17, x17\n"
    "mov x21, #0x0\n"
    "sub x20, XZR, x24\n"
    "cbz x23, 4f\n"
    "ldr q31, [x14, #0x0]\n"
    "ldr q0, [x14, #0x10]\n"
    "cmp x24, x23, LSL #4\n"
    "ldr q1, [x14, #0x20]\n"
    "ldr q2, [x14, #0x30]\n"
    "ldr q3, [x14, #0x40]\n"
    "ldr q4, [x14, #0x50]\n"
    "ldr q5, [x14, #0x60]\n"
    "ldr q6, [x14, #0x70]\n"
    "ldr q7, [x14, #0x80]\n"
    "ldr q8, [x14, #0x90]\n"
    "add x14, x14, #0xa0\n"
    "ldr q9, [x12, x11]\n"
    "ld1 { v10.4s }, [x16]\n"
    "ldr q11, [x16, x26]\n"
    "ld1 { v12.4s }, [x27]\n"
    "ldr q13, [x13, x11]\n"
    "bge 3f\n"
    "2:"  // Tile loop: Channel loop
    "mov v29.16b, v31.16b\n fmla v29.4s, v7.4s, v9.4s\n"
    "mov v28.16b, v31.16b\n fmla v28.4s, v8.4s, v9.4s\n"
    "add x24, x24, #0x10\n"
    "cmp x24, x23, LSL #4\n"
    "mov v27.16b, v31.16b\n fmla v27.4s, v6.4s, v9.4s\n"
    "fmla v29.4s, v4.4s, v13.4s\n"
    "add x20, x20, #0x10\n"
    "add x21, x21, #0x10\n"
    "mov v26.16b, v31.16b\n fmla v26.4s, v5.4s, v9.4s\n"
    "mov v25.16b, v31.16b\n fmla v25.4s, v4.4s, v9.4s\n"
    "mov v24.16b, v31.16b\n fmla v24.4s, v3.4s, v9.4s\n"
    "fmla v28.4s, v0.4s, v10.4s\n"
    "ldr q23, [x12, x9]\n"
    "fmla v27.4s, v2.4s, v11.4s\n"
    "ldr q18, [x12, x8]\n"
    "mov v22.16b, v31.16b\n fmla v22.4s, v2.4s, v9.4s\n"
    "fmla v29.4s, v6.4s, v18.4s\n"
    "mov v21.16b, v31.16b\n fmla v21.4s, v0.4s, v9.4s\n"
    "fmla v28.4s, v5.4s, v13.4s\n"
    "fmla v27.4s, v3.4s, v13.4s\n"
    "fmla v26.4s, v2.4s, v13.4s\n"
    "fmla v25.4s, v1.4s, v13.4s\n"
    "fmla v24.4s, v0.4s, v13.4s\n"
    "ldr q17, [x16, x8]\n"
    "fmla v22.4s, v6.4s, v12.4s\n"
    "ldr q16, [x27, x26]\n"
    "mov v20.16b, v31.16b\n fmla v20.4s, v1.4s, v9.4s\n"
    "ldr q31, [x14, #0x0]\n"
    "fmla v29.4s, v0.4s, v17.4s\n"
    "fmla v21.4s, v8.4s, v16.4s\n"
    "ldr q16, [x16, x9]\n"
    "fmla v28.4s, v7.4s, v18.4s\n"
    "fmla v20.4s, v0.4s, v18.4s\n"
    "fmla v26.4s, v4.4s, v18.4s\n"
    "fmla v25.4s, v3.4s, v18.4s\n"
    "fmla v22.4s, v1.4s, v18.4s\n"
    "ld1 { v19.4s }, [x13]\n"
    "fmla v29.4s, v2.4s, v16.4s\n"
    "fmla v27.4s, v1.4s, v16.4s\n"
    "ld1 { v18.4s }, [x10]\n"
    "fmla v24.4s, v4.4s, v23.4s\n"
    "fmla v28.4s, v1.4s, v17.4s\n"
    "ldr q16, [x13, x26]\n"
    "fmla v20.4s, v2.4s, v23.4s\n"
    "fmla v21.4s, v1.4s, v23.4s\n"
    "fmla v29.4s, v8.4s, v23.4s\n"
    "fmla v27.4s, v7.4s, v23.4s\n"
    "fmla v25.4s, v5.4s, v23.4s\n"
    "ldr q17, [x10, x11]\n"
    "fmla v26.4s, v0.4s, v19.4s\n"
    "fmla v22.4s, v3.4s, v18.4s\n"
    "fmla v24.4s, v2.4s, v16.4s\n"
    "fmla v20.4s, v4.4s, v17.4s\n"
    "fmla v21.4s, v3.4s, v17.4s\n"
    "fmla v28.4s, v3.4s, v19.4s\n"
    "ldr q19, [x10, x26]\n"
    "fmla v27.4s, v5.4s, v16.4s\n"
    "ldr q16, [x27, x8]\n"
    "fmla v26.4s, v6.4s, v18.4s\n"
    "ldr q18, [x13, x8]\n"
    "fmla v25.4s, v7.4s, v17.4s\n"
    "fmla v22.4s, v5.4s, v17.4s\n"
    "fmla v24.4s, v6.4s, v17.4s\n"
    "fmla v21.4s, v5.4s, v19.4s\n"
    "fmla v20.4s, v6.4s, v16.4s\n"
    "fmla v26.4s, v8.4s, v17.4s\n"
    "fmla v22.4s, v7.4s, v16.4s\n"
    "ldr q17, [x27, x9]\n"
    "fmla v29.4s, v3.4s, v18.4s\n"
    "fmla v25.4s, v0.4s, v18.4s\n"
    "fmla v24.4s, v8.4s, v19.4s\n"
    "ldr q16, [x13, x9]\n"
    "fmla v20.4s, v8.4s, v17.4s\n"
    "add x13, x13, #0x10\n"
    "fmla v21.4s, v7.4s, v17.4s\n"
    "ldr q19, [x10, x9]\n"
    "fmla v28.4s, v4.4s, v18.4s\n"
    "fmla v26.4s, v1.4s, v18.4s\n"
    "ldr q17, [x10, x8]\n"
    "fmla v29.4s, v5.4s, v16.4s\n"
    "add x10, x10, #0x10\n"
    "fmla v27.4s, v4.4s, v16.4s\n"
    "fmla v25.4s, v2.4s, v16.4s\n"
    "fmla v24.4s, v1.4s, v16.4s\n"
    "ldr q16, [x16, x11]\n"
    "fmla v22.4s, v4.4s, v17.4s\n"
    "add x16, x16, #0x10\n"
    "ld1 { v10.4s }, [x16]\n"
    "fmla v20.4s, v3.4s, v17.4s\n"
    "fmla v21.4s, v4.4s, v19.4s\n"
    "ldr q4, [x14, #0x50]\n"
    "fmla v26.4s, v7.4s, v17.4s\n"
    "fmla v25.4s, v6.4s, v17.4s\n"
    "ld1 { v18.4s }, [x12]\n"
    "fmla v28.4s, v2.4s, v16.4s\n"
    "fmla v29.4s, v1.4s, v16.4s\n"
    "ldr q1, [x14, #0x20]\n"
    "fmax v29.4s, v29.4s, v15.4s\n"
    "fmla v27.4s, v0.4s, v16.4s\n"
    "ldr q17, [x12, x26]\n"
    "fmla v24.4s, v7.4s, v19.4s\n"
    "add x12, x12, #0x10\n"
    "ldr q9, [x12, x11]\n"
    "fmla v20.4s, v5.4s, v19.4s\n"
    "fmla v22.4s, v0.4s, v18.4s\n"
    "ldr q0, [x14, #0x10]\n"
    "fmla v21.4s, v2.4s, v17.4s\n"
    "ldr q2, [x14, #0x30]\n"
    "fmla v25.4s, v8.4s, v19.4s\n"
    "ldr q16, [x27, x11]\n"
    "fmla v28.4s, v6.4s, v18.4s\n"
    "fmla v26.4s, v3.4s, v18.4s\n"
    "ldr q3, [x14, #0x40]\n"
    "fmax v28.4s, v28.4s, v15.4s\n"
    "fmla v27.4s, v8.4s, v17.4s\n"
    "fmla v24.4s, v5.4s, v17.4s\n"
    "ldr q11, [x16, x26]\n"
    "ldr q5, [x14, #0x60]\n"
    "fmla v22.4s, v8.4s, v16.4s\n"
    "ldr q8, [x14, #0x90]\n"
    "fmla v20.4s, v7.4s, v16.4s\n"
    "ldr q7, [x14, #0x80]\n"
    "fmla v21.4s, v6.4s, v16.4s\n"
    "ldr q13, [x13, x11]\n"
    "ldr q6, [x14, #0x70]\n"
    "fmax v27.4s, v27.4s, v15.4s\n"
    "fmax v26.4s, v26.4s, v15.4s\n"
    "fmax v25.4s, v25.4s, v15.4s\n"
    "add x27, x27, #0x10\n"
    "ld1 { v12.4s }, [x27]\n"
    "fmax v24.4s, v24.4s, v15.4s\n"
    "fmax v22.4s, v22.4s, v15.4s\n"
    "add x14, x14, #0xa0\n"
    "fmax v20.4s, v20.4s, v15.4s\n"
    "fmax v21.4s, v21.4s, v15.4s\n"
    "fmin v28.4s, v28.4s, v14.4s\n"
    "fmin v29.4s, v29.4s, v14.4s\n"
    "st1 { v28.4s }, [x15]\n"
    "fmin v27.4s, v27.4s, v14.4s\n"
    "fmin v26.4s, v26.4s, v14.4s\n"
    "str q29, [x15, x17]\n"
    "fmin v25.4s, v25.4s, v14.4s\n"
    "fmin v24.4s, v24.4s, v14.4s\n"
    "str q27, [x15, x22]\n"
    "add x15, x15, #0x10\n"
    "fmin v22.4s, v22.4s, v14.4s\n"
    "fmin v20.4s, v20.4s, v14.4s\n"
    "st1 { v26.4s }, [x28]\n"
    "fmin v21.4s, v21.4s, v14.4s\n"
    "str q25, [x28, x17]\n"
    "str q24, [x28, x22]\n"
    "add x28, x28, #0x10\n"
    "st1 { v22.4s }, [x25]\n"
    "str q20, [x25, x17]\n"
    "str q21, [x25, x22]\n"
    "add x25, x25, #0x10\n"
    "blt 2b\n"
    "3:"  // Tile loop: Channel tail
    "mov v29.16b, v31.16b\n fmla v29.4s, v7.4s, v9.4s\n"
    "mov v28.16b, v31.16b\n fmla v28.4s, v8.4s, v9.4s\n"
    "mov v27.16b, v31.16b\n fmla v27.4s, v6.4s, v9.4s\n"
    "fmla v29.4s, v4.4s, v13.4s\n"
    "mov v26.16b, v31.16b\n fmla v26.4s, v5.4s, v9.4s\n"
    "mov v25.16b, v31.16b\n fmla v25.4s, v4.4s, v9.4s\n"
    "mov v24.16b, v31.16b\n fmla v24.4s, v3.4s, v9.4s\n"
    "fmla v28.4s, v0.4s, v10.4s\n"
    "ldr q23, [x12, x9]\n"
    "fmla v27.4s, v2.4s, v11.4s\n"
    "ldr q18, [x12, x8]\n"
    "mov v22.16b, v31.16b\n fmla v22.4s, v2.4s, v9.4s\n"
    "fmla v29.4s, v6.4s, v18.4s\n"
    "mov v21.16b, v31.16b\n fmla v21.4s, v0.4s, v9.4s\n"
    "fmla v28.4s, v5.4s, v13.4s\n"
    "fmla v27.4s, v3.4s, v13.4s\n"
    "fmla v26.4s, v2.4s, v13.4s\n"
    "fmla v25.4s, v1.4s, v13.4s\n"
    "fmla v24.4s, v0.4s, v13.4s\n"
    "ldr q17, [x16, x8]\n"
    "fmla v22.4s, v6.4s, v12.4s\n"
    "ldr q16, [x27, x26]\n"
    "mov v20.16b, v31.16b\n fmla v20.4s, v1.4s, v9.4s\n"
    "fmla v29.4s, v0.4s, v17.4s\n"
    "fmla v21.4s, v8.4s, v16.4s\n"
    "ldr q16, [x16, x9]\n"
    "fmla v28.4s, v7.4s, v18.4s\n"
    "fmla v20.4s, v0.4s, v18.4s\n"
    "fmla v26.4s, v4.4s, v18.4s\n"
    "fmla v25.4s, v3.4s, v18.4s\n"
    "fmla v22.4s, v1.4s, v18.4s\n"
    "ld1 { v19.4s }, [x13]\n"
    "fmla v29.4s, v2.4s, v16.4s\n"
    "fmla v27.4s, v1.4s, v16.4s\n"
    "ld1 { v18.4s }, [x10]\n"
    "fmla v24.4s, v4.4s, v23.4s\n"
    "fmla v28.4s, v1.4s, v17.4s\n"
    "ldr q16, [x13, x26]\n"
    "fmla v20.4s, v2.4s, v23.4s\n"
    "fmla v21.4s, v1.4s, v23.4s\n"
    "fmla v29.4s, v8.4s, v23.4s\n"
    "fmla v27.4s, v7.4s, v23.4s\n"
    "fmla v25.4s, v5.4s, v23.4s\n"
    "ldr q17, [x10, x11]\n"
    "fmla v26.4s, v0.4s, v19.4s\n"
    "fmla v22.4s, v3.4s, v18.4s\n"
    "fmla v24.4s, v2.4s, v16.4s\n"
    "fmla v20.4s, v4.4s, v17.4s\n"
    "fmla v21.4s, v3.4s, v17.4s\n"
    "fmla v28.4s, v3.4s, v19.4s\n"
    "ldr q19, [x10, x26]\n"
    "fmla v27.4s, v5.4s, v16.4s\n"
    "ldr q16, [x27, x8]\n"
    "fmla v26.4s, v6.4s, v18.4s\n"
    "ldr q18, [x13, x8]\n"
    "fmla v25.4s, v7.4s, v17.4s\n"
    "fmla v22.4s, v5.4s, v17.4s\n"
    "fmla v24.4s, v6.4s, v17.4s\n"
    "fmla v21.4s, v5.4s, v19.4s\n"
    "fmla v20.4s, v6.4s, v16.4s\n"
    "fmla v26.4s, v8.4s, v17.4s\n"
    "fmla v22.4s, v7.4s, v16.4s\n"
    "ldr q17, [x27, x9]\n"
    "fmla v29.4s, v3.4s, v18.4s\n"
    "fmla v25.4s, v0.4s, v18.4s\n"
    "fmla v24.4s, v8.4s, v19.4s\n"
    "ldr q16, [x13, x9]\n"
    "fmla v20.4s, v8.4s, v17.4s\n"
    "add x13, x13, #0x10\n"
    "fmla v21.4s, v7.4s, v17.4s\n"
    "ldr q19, [x10, x9]\n"
    "fmla v28.4s, v4.4s, v18.4s\n"
    "fmla v26.4s, v1.4s, v18.4s\n"
    "ldr q17, [x10, x8]\n"
    "fmla v29.4s, v5.4s, v16.4s\n"
    "add x10, x10, #0x10\n"
    "fmla v27.4s, v4.4s, v16.4s\n"
    "fmla v25.4s, v2.4s, v16.4s\n"
    "fmla v24.4s, v1.4s, v16.4s\n"
    "ldr q16, [x16, x11]\n"
    "fmla v22.4s, v4.4s, v17.4s\n"
    "add x16, x16, #0x10\n"
    "fmla v20.4s, v3.4s, v17.4s\n"
    "fmla v21.4s, v4.4s, v19.4s\n"
    "fmla v26.4s, v7.4s, v17.4s\n"
    "fmla v25.4s, v6.4s, v17.4s\n"
    "ld1 { v18.4s }, [x12]\n"
    "fmla v28.4s, v2.4s, v16.4s\n"
    "fmla v29.4s, v1.4s, v16.4s\n"
    "fmax v29.4s, v29.4s, v15.4s\n"
    "fmla v27.4s, v0.4s, v16.4s\n"
    "ldr q17, [x12, x26]\n"
    "fmla v24.4s, v7.4s, v19.4s\n"
    "fmin v29.4s, v29.4s, v14.4s\n"
    "fmla v20.4s, v5.4s, v19.4s\n"
    "fmla v22.4s, v0.4s, v18.4s\n"
    "add x12, x12, #0x10\n"
    "fmla v21.4s, v2.4s, v17.4s\n"
    "fmla v25.4s, v8.4s, v19.4s\n"
    "ldr q16, [x27, x11]\n"
    "fmax v25.4s, v25.4s, v15.4s\n"
    "fmla v28.4s, v6.4s, v18.4s\n"
    "fmla v26.4s, v3.4s, v18.4s\n"
    "fmax v28.4s, v28.4s, v15.4s\n"
    "add x27, x27, #0x10\n"
    "fmla v27.4s, v8.4s, v17.4s\n"
    "fmla v24.4s, v5.4s, v17.4s\n"
    "fmax v27.4s, v27.4s, v15.4s\n"
    "fmla v22.4s, v8.4s, v16.4s\n"
    "fmla v20.4s, v7.4s, v16.4s\n"
    "fmax v26.4s, v26.4s, v15.4s\n"
    "fmla v21.4s, v6.4s, v16.4s\n"
    "fmax v24.4s, v24.4s, v15.4s\n"
    "fmax v22.4s, v22.4s, v15.4s\n"
    "fmax v20.4s, v20.4s, v15.4s\n"
    "fmax v21.4s, v21.4s, v15.4s\n"
    "fmin v28.4s, v28.4s, v14.4s\n"
    "st1 { v28.4s }, [x15]\n"
    "fmin v27.4s, v27.4s, v14.4s\n"
    "fmin v26.4s, v26.4s, v14.4s\n"
    "str q29, [x15, x17]\n"
    "fmin v25.4s, v25.4s, v14.4s\n"
    "fmin v24.4s, v24.4s, v14.4s\n"
    "str q27, [x15, x22]\n"
    "add x15, x15, #0x10\n"
    "fmin v22.4s, v22.4s, v14.4s\n"
    "fmin v20.4s, v20.4s, v14.4s\n"
    "st1 { v26.4s }, [x28]\n"
    "fmin v21.4s, v21.4s, v14.4s\n"
    "str q25, [x28, x17]\n"
    "str q24, [x28, x22]\n"
    "add x28, x28, #0x10\n"
    "st1 { v22.4s }, [x25]\n"
    "str q20, [x25, x17]\n"
    "str q21, [x25, x22]\n"
    "add x25, x25, #0x10\n"
    "4:"  // Tile loop: Oddments
    "tst %x[n_channels], #0x3\n"
    "beq 49f\n"
    "ldr q31, [x14, #0x0]\n"
    "ldr q0, [x14, #0x10]\n"
    "add x24, x12, x11\n"
    "add x23, x16, XZR\n"
    "ldr q1, [x14, #0x20]\n"
    "ldr q2, [x14, #0x30]\n"
    "add x22, x16, x26\n"
    "add x21, x27, XZR\n"
    "ldr q3, [x14, #0x40]\n"
    "ldr q4, [x14, #0x50]\n"
    "add x20, x13, x11\n"
    "ldr q5, [x14, #0x60]\n"
    "ldr q6, [x14, #0x70]\n"
    "ldr q7, [x14, #0x80]\n"
    "ldr q8, [x14, #0x90]\n"
    "tbz %x[n_channels], #1, 5f\n"
    "ldr d9, [x24], #0x8\n"
    "ldr d10, [x23], #0x8\n"
    "ldr d11, [x22], #0x8\n"
    "ldr d12, [x21], #0x8\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 6f\n"
    "ld1 { v9.s }[2], [x24]\n"
    "ld1 { v10.s }[2], [x23]\n"
    "ld1 { v11.s }[2], [x22]\n"
    "ld1 { v12.s }[2], [x21]\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 6f\n"
    "5:"  // Tile loop: Oddments: Load inputs: (2, 2), (0, 0), (0, 4), (4, 0), (1, 2): Bit 1: Unset
    "ldr s9, [x24, #0x0]\n"
    "ldr s10, [x23, #0x0]\n"
    "ldr s11, [x22, #0x0]\n"
    "ldr s12, [x21, #0x0]\n"
    "ldr s13, [x20, #0x0]\n"
    "6:"  // Tile loop: Oddments: Load inputs: (2, 2), (0, 0), (0, 4), (4, 0), (1, 2): Bit 1: End
    "mov v23.16b, v31.16b\n fmla v23.4s, v8.4s, v9.4s\n"
    "mov v25.16b, v31.16b\n fmla v25.4s, v6.4s, v9.4s\n"
    "add x20, x27, x26\n"
    "mov v24.16b, v31.16b\n fmla v24.4s, v7.4s, v9.4s\n"
    "mov v26.16b, v31.16b\n fmla v26.4s, v5.4s, v9.4s\n"
    "mov v27.16b, v31.16b\n fmla v27.4s, v4.4s, v9.4s\n"
    "mov v28.16b, v31.16b\n fmla v28.4s, v3.4s, v9.4s\n"
    "mov v29.16b, v31.16b\n fmla v29.4s, v2.4s, v9.4s\n"
    "fmla v23.4s, v0.4s, v10.4s\n"
    "fmla v25.4s, v2.4s, v11.4s\n"
    "mov v30.16b, v31.16b\n fmla v30.4s, v1.4s, v9.4s\n"
    "fmla v31.4s, v0.4s, v9.4s\n"
    "fmla v29.4s, v6.4s, v12.4s\n"
    "fmla v23.4s, v5.4s, v13.4s\n"
    "fmla v24.4s, v4.4s, v13.4s\n"
    "fmla v25.4s, v3.4s, v13.4s\n"
    "fmla v26.4s, v2.4s, v13.4s\n"
    "fmla v27.4s, v1.4s, v13.4s\n"
    "fmla v28.4s, v0.4s, v13.4s\n"
    "tbz %x[n_channels], #1, 7f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 8f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 8f\n"
    "7:"  // Tile loop: Oddments: Load inputs: (4, 4): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "8:"  // Tile loop: Oddments: Load inputs: (4, 4): Bit 1: End
    "fmla v31.4s, v8.4s, v12.4s\n"
    "add x20, x12, x8\n"
    "tbz %x[n_channels], #1, 9f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 10f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 10f\n"
    "9:"  // Tile loop: Oddments: Load inputs: (2, 1): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "10:"  // Tile loop: Oddments: Load inputs: (2, 1): Bit 1: End
    "fmla v23.4s, v7.4s, v11.4s\n"
    "fmla v24.4s, v6.4s, v11.4s\n"
    "add x20, x16, x8\n"
    "fmla v26.4s, v4.4s, v11.4s\n"
    "fmla v27.4s, v3.4s, v11.4s\n"
    "fmla v29.4s, v1.4s, v11.4s\n"
    "fmla v30.4s, v0.4s, v11.4s\n"
    "tbz %x[n_channels], #1, 11f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 12f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 12f\n"
    "11:"  // Tile loop: Oddments: Load inputs: (0, 1): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "12:"  // Tile loop: Oddments: Load inputs: (0, 1): Bit 1: End
    "fmla v23.4s, v1.4s, v13.4s\n"
    "fmla v24.4s, v0.4s, v13.4s\n"
    "add x20, x16, x9\n"
    "tbz %x[n_channels], #1, 13f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 14f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 14f\n"
    "13:"  // Tile loop: Oddments: Load inputs: (0, 3): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "14:"  // Tile loop: Oddments: Load inputs: (0, 3): Bit 1: End
    "fmla v24.4s, v2.4s, v12.4s\n"
    "fmla v25.4s, v1.4s, v12.4s\n"
    "add x20, x12, x9\n"
    "tbz %x[n_channels], #1, 15f\n"
    "ldr d10, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 16f\n"
    "ld1 { v10.s }[2], [x20]\n"
    "b 16f\n"
    "15:"  // Tile loop: Oddments: Load inputs: (2, 3): Bit 1: Unset
    "ldr s10, [x20, #0x0]\n"
    "16:"  // Tile loop: Oddments: Load inputs: (2, 3): Bit 1: End
    "fmla v24.4s, v8.4s, v10.4s\n"
    "fmla v25.4s, v7.4s, v10.4s\n"
    "add x20, x13, XZR\n"
    "fmla v27.4s, v5.4s, v10.4s\n"
    "fmla v28.4s, v4.4s, v10.4s\n"
    "fmla v30.4s, v2.4s, v10.4s\n"
    "fmla v31.4s, v1.4s, v10.4s\n"
    "tbz %x[n_channels], #1, 17f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 18f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 18f\n"
    "17:"  // Tile loop: Oddments: Load inputs: (1, 0): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "18:"  // Tile loop: Oddments: Load inputs: (1, 0): Bit 1: End
    "fmla v23.4s, v3.4s, v11.4s\n"
    "fmla v26.4s, v0.4s, v11.4s\n"
    "add x20, x13, x26\n"
    "tbz %x[n_channels], #1, 19f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 20f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 20f\n"
    "19:"  // Tile loop: Oddments: Load inputs: (1, 4): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "20:"  // Tile loop: Oddments: Load inputs: (1, 4): Bit 1: End
    "fmla v25.4s, v5.4s, v13.4s\n"
    "fmla v28.4s, v2.4s, v13.4s\n"
    "add x20, x10, XZR\n"
    "tbz %x[n_channels], #1, 21f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 22f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 22f\n"
    "21:"  // Tile loop: Oddments: Load inputs: (3, 0): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "22:"  // Tile loop: Oddments: Load inputs: (3, 0): Bit 1: End
    "fmla v26.4s, v6.4s, v12.4s\n"
    "fmla v29.4s, v3.4s, v12.4s\n"
    "add x20, x10, x11\n"
    "tbz %x[n_channels], #1, 23f\n"
    "ldr d10, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 24f\n"
    "ld1 { v10.s }[2], [x20]\n"
    "b 24f\n"
    "23:"  // Tile loop: Oddments: Load inputs: (3, 2): Bit 1: Unset
    "ldr s10, [x20, #0x0]\n"
    "24:"  // Tile loop: Oddments: Load inputs: (3, 2): Bit 1: End
    "fmla v26.4s, v8.4s, v10.4s\n"
    "fmla v27.4s, v7.4s, v10.4s\n"
    "add x20, x10, x26\n"
    "fmla v28.4s, v6.4s, v10.4s\n"
    "fmla v29.4s, v5.4s, v10.4s\n"
    "fmla v30.4s, v4.4s, v10.4s\n"
    "fmla v31.4s, v3.4s, v10.4s\n"
    "tbz %x[n_channels], #1, 25f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 26f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 26f\n"
    "25:"  // Tile loop: Oddments: Load inputs: (3, 4): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "26:"  // Tile loop: Oddments: Load inputs: (3, 4): Bit 1: End
    "fmla v28.4s, v8.4s, v11.4s\n"
    "fmla v31.4s, v5.4s, v11.4s\n"
    "add x20, x27, x8\n"
    "tbz %x[n_channels], #1, 27f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 28f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 28f\n"
    "27:"  // Tile loop: Oddments: Load inputs: (4, 1): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "28:"  // Tile loop: Oddments: Load inputs: (4, 1): Bit 1: End
    "fmla v29.4s, v7.4s, v13.4s\n"
    "fmla v30.4s, v6.4s, v13.4s\n"
    "add x20, x13, x8\n"
    "tbz %x[n_channels], #1, 29f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 30f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 30f\n"
    "29:"  // Tile loop: Oddments: Load inputs: (1, 1): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "30:"  // Tile loop: Oddments: Load inputs: (1, 1): Bit 1: End
    "fmla v23.4s, v4.4s, v12.4s\n"
    "fmla v24.4s, v3.4s, v12.4s\n"
    "add x20, x13, x9\n"
    "fmla v26.4s, v1.4s, v12.4s\n"
    "fmla v27.4s, v0.4s, v12.4s\n"
    "tbz %x[n_channels], #1, 31f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 32f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 32f\n"
    "31:"  // Tile loop: Oddments: Load inputs: (1, 3): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "32:"  // Tile loop: Oddments: Load inputs: (1, 3): Bit 1: End
    "fmla v24.4s, v5.4s, v11.4s\n"
    "fmla v25.4s, v4.4s, v11.4s\n"
    "add x20, x27, x9\n"
    "fmla v27.4s, v2.4s, v11.4s\n"
    "fmla v28.4s, v1.4s, v11.4s\n"
    "tbz %x[n_channels], #1, 33f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 34f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 34f\n"
    "33:"  // Tile loop: Oddments: Load inputs: (4, 3): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "34:"  // Tile loop: Oddments: Load inputs: (4, 3): Bit 1: End
    "fmla v30.4s, v8.4s, v13.4s\n"
    "fmla v31.4s, v7.4s, v13.4s\n"
    "add x20, x10, x8\n"
    "tbz %x[n_channels], #1, 35f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 36f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 36f\n"
    "35:"  // Tile loop: Oddments: Load inputs: (3, 1): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "36:"  // Tile loop: Oddments: Load inputs: (3, 1): Bit 1: End
    "fmla v26.4s, v7.4s, v12.4s\n"
    "fmla v27.4s, v6.4s, v12.4s\n"
    "add x20, x16, x11\n"
    "fmla v29.4s, v4.4s, v12.4s\n"
    "fmla v30.4s, v3.4s, v12.4s\n"
    "tbz %x[n_channels], #1, 37f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 38f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 38f\n"
    "37:"  // Tile loop: Oddments: Load inputs: (0, 2): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "38:"  // Tile loop: Oddments: Load inputs: (0, 2): Bit 1: End
    "fmla v23.4s, v2.4s, v11.4s\n"
    "fmla v24.4s, v1.4s, v11.4s\n"
    "add x20, x10, x9\n"
    "fmla v25.4s, v0.4s, v11.4s\n"
    "tbz %x[n_channels], #1, 39f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 40f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 40f\n"
    "39:"  // Tile loop: Oddments: Load inputs: (3, 3): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "40:"  // Tile loop: Oddments: Load inputs: (3, 3): Bit 1: End
    "fmla v27.4s, v8.4s, v13.4s\n"
    "fmla v28.4s, v7.4s, v13.4s\n"
    "add x20, x12, XZR\n"
    "fmla v30.4s, v5.4s, v13.4s\n"
    "fmla v31.4s, v4.4s, v13.4s\n"
    "tbz %x[n_channels], #1, 41f\n"
    "ldr d12, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 42f\n"
    "ld1 { v12.s }[2], [x20]\n"
    "b 42f\n"
    "41:"  // Tile loop: Oddments: Load inputs: (2, 0): Bit 1: Unset
    "ldr s12, [x20, #0x0]\n"
    "42:"  // Tile loop: Oddments: Load inputs: (2, 0): Bit 1: End
    "fmla v23.4s, v6.4s, v12.4s\n"
    "fmla v26.4s, v3.4s, v12.4s\n"
    "add x20, x12, x26\n"
    "fmla v29.4s, v0.4s, v12.4s\n"
    "tbz %x[n_channels], #1, 43f\n"
    "ldr d11, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 44f\n"
    "ld1 { v11.s }[2], [x20]\n"
    "b 44f\n"
    "43:"  // Tile loop: Oddments: Load inputs: (2, 4): Bit 1: Unset
    "ldr s11, [x20, #0x0]\n"
    "44:"  // Tile loop: Oddments: Load inputs: (2, 4): Bit 1: End
    "fmla v25.4s, v8.4s, v11.4s\n"
    "fmla v28.4s, v5.4s, v11.4s\n"
    "add x20, x27, x11\n"
    "fmla v31.4s, v2.4s, v11.4s\n"
    "tbz %x[n_channels], #1, 45f\n"
    "ldr d13, [x20], #0x8\n"
    "tbz %x[n_channels], #0, 46f\n"
    "ld1 { v13.s }[2], [x20]\n"
    "b 46f\n"
    "45:"  // Tile loop: Oddments: Load inputs: (4, 2): Bit 1: Unset
    "ldr s13, [x20, #0x0]\n"
    "46:"  // Tile loop: Oddments: Load inputs: (4, 2): Bit 1: End
    "fmla v29.4s, v8.4s, v13.4s\n"
    "fmla v30.4s, v7.4s, v13.4s\n"
    "fmax v23.4s, v23.4s, v15.4s\n"
    "fmla v31.4s, v6.4s, v13.4s\n"
    "fmax v24.4s, v24.4s, v15.4s\n"
    "fmax v25.4s, v25.4s, v15.4s\n"
    "fmax v26.4s, v26.4s, v15.4s\n"
    "fmax v27.4s, v27.4s, v15.4s\n"
    "fmax v28.4s, v28.4s, v15.4s\n"
    "fmax v29.4s, v29.4s, v15.4s\n"
    "fmax v30.4s, v30.4s, v15.4s\n"
    "fmax v31.4s, v31.4s, v15.4s\n"
    "fmin v23.4s, v23.4s, v14.4s\n"
    "fmin v24.4s, v24.4s, v14.4s\n"
    "fmin v25.4s, v25.4s, v14.4s\n"
    "fmin v26.4s, v26.4s, v14.4s\n"
    "fmin v27.4s, v27.4s, v14.4s\n"
    "fmin v28.4s, v28.4s, v14.4s\n"
    "fmin v29.4s, v29.4s, v14.4s\n"
    "fmin v30.4s, v30.4s, v14.4s\n"
    "fmin v31.4s, v31.4s, v14.4s\n"
    "tbz %x[n_channels], #1, 47f\n"
    "mov x22, x15\n"
    "mov x21, x28\n"
    "st1 { v23.d }[0], [x22], x17\n"
    "mov x20, x25\n"
    "st1 { v26.d }[0], [x21], x17\n"
    "add x15, x15, #0x8\n"
    "st1 { v29.d }[0], [x20], x17\n"
    "add x28, x28, #0x8\n"
    "add x25, x25, #0x8\n"
    "st1 { v24.d }[0], [x22], x17\n"
    "st1 { v27.d }[0], [x21], x17\n"
    "st1 { v30.d }[0], [x20], x17\n"
    "st1 { v25.d }[0], [x22]\n"
    "st1 { v28.d }[0], [x21]\n"
    "st1 { v31.d }[0], [x20]\n"
    "tbz %x[n_channels], #0, 48f\n"
    "mov x22, x15\n"
    "mov x21, x28\n"
    "st1 { v23.s }[2], [x22], x17\n"
    "mov x20, x25\n"
    "st1 { v26.s }[2], [x21], x17\n"
    "st1 { v29.s }[2], [x20], x17\n"
    "st1 { v24.s }[2], [x22], x17\n"
    "st1 { v27.s }[2], [x21], x17\n"
    "st1 { v30.s }[2], [x20], x17\n"
    "st1 { v25.s }[2], [x22]\n"
    "st1 { v28.s }[2], [x21]\n"
    "st1 { v31.s }[2], [x20]\n"
    "b 48f\n"
    "47:"  // Tile loop: Oddments: Store: Bit 1: Unset
    "mov x22, x15\n"
    "mov x21, x28\n"
    "st1 { v23.s }[0], [x22], x17\n"
    "mov x20, x25\n"
    "st1 { v26.s }[0], [x21], x17\n"
    "st1 { v29.s }[0], [x20], x17\n"
    "st1 { v24.s }[0], [x22], x17\n"
    "st1 { v27.s }[0], [x21], x17\n"
    "st1 { v30.s }[0], [x20], x17\n"
    "st1 { v25.s }[0], [x22]\n"
    "st1 { v28.s }[0], [x21]\n"
    "st1 { v31.s }[0], [x20]\n"
    "48:"  // Tile loop: Oddments: Store: Bit 1: End
    "49:"  // Tile loop: End
    "ldr x23, [%x[params_struct], %[offsetof_args_tile_j]]\n"
    "ldr x24, [%x[params_struct], %[offsetof_args_tile_i]]\n"
    "add x23, x23, #0x1\n"
    "add x21, x24, #0x1\n"
    "ldr x20, [%x[params_struct], %[offsetof_args_n_tile_cols]]\n"
    "cmp x23, x20\n"
    "ldr x20, [%x[params_struct], %[offsetof_args_n_tile_rows]]\n"
    "csel x24, x24, x21, LT\n"
    "csel x23, x23, XZR, LT\n"
    "cmp x24, x20\n"
    "blt 1b\n"
    :
    : [n_channels] "r" ((unsigned long) n_channels), [offsetof_args_inptr] "I" (offsetof(Args, inptr)), [offsetof_args_ld_input_col] "I" (offsetof(Args, ld_input_col)), [offsetof_args_ld_input_row] "I" (offsetof(Args, ld_input_row)), [offsetof_args_ld_output_col] "I" (offsetof(Args, ld_output_col)), [offsetof_args_ld_output_row] "I" (offsetof(Args, ld_output_row)), [offsetof_args_max] "I" (offsetof(Args, max)), [offsetof_args_min] "I" (offsetof(Args, min)), [offsetof_args_n_tile_cols] "I" (offsetof(Args, n_tile_cols)), [offsetof_args_n_tile_rows] "I" (offsetof(Args, n_tile_rows)), [offsetof_args_outptr] "I" (offsetof(Args, outptr)), [offsetof_args_params] "I" (offsetof(Args, params)), [offsetof_args_tile_i] "I" (offsetof(Args, tile_i)), [offsetof_args_tile_j] "I" (offsetof(Args, tile_j)), [params_struct] "r" (&params_struct)
    : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15", "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28"
  );
}

}  // namespace depthwise
}  // namespace arm_conv

#endif  // defined(__aarch64__)