	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transpose_perm
_transpose_perm:                        ## @transpose_perm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %r9d
	movslq	%r8d, %r8
	leaq	(,%r9,4), %r14
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addq	$4, %rsi
	cmpq	%r9, %r11
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%r15d, %r15d
	cmpq	%r8, %r11
	setge	%r15b
	cmpl	$0, (%rcx,%r15,4)
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r10d, %rax
	leaq	(%rdi,%rax,4), %r12
	movq	%rsi, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax), %edx
	movl	%edx, (%r12,%rbx,4)
	incq	%rbx
	movslq	(%rcx,%r15,4), %rdx
	addq	%r14, %rax
	cmpq	%rdx, %rbx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r10d
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_transpose_perm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transpose_perm
_transpose_perm:                        ; @transpose_perm
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w4 killed $w4 def $x4
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	mov	w9, #0
	mov	w10, w2
	sxtw	x11, w4
	lsl	x12, x10, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x1, x1, #4
	cmp	x8, x10
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	x8, x11
	cset	w13, ge
	ldr	w14, [x3, w13, uxtw #2]
	cmp	w14, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	add	x15, x0, w9, sxtw #2
	mov	x16, x1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x16]
	str	w17, [x15, x14, lsl #2]
	add	x14, x14, #1
	ldrsw	x17, [x3, x13, lsl #2]
	add	x16, x16, x12
	cmp	x14, x17
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, w14
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_transpose_perm
.subsections_via_symbols
