	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function permute
_permute:                               ## @permute
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	leal	-1(%r14), %eax
	cmpl	%ecx, %eax
	jle	LBB0_6
## %bb.1:
	movslq	%ecx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rcx
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jge	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rdx,8), %rax
	movq	(%rbx,%r15,8), %rcx
	movq	%rcx, (%rbx,%rdx,8)
	movq	%rax, (%rbx,%r15,8)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	callq	_permute
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rbx,%rdx,8), %rax
	movq	(%rbx,%r15,8), %rcx
	movq	%rcx, (%rbx,%rdx,8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rbx,%r15,8)
	incq	%r15
	cmpq	%rcx, %r15
	jl	LBB0_5
	jmp	LBB0_2
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_list                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_permute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function permute
_permute:                               ; @permute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	sub	w8, w4, #1
	cmp	w8, w3
	b.le	LBB0_6
; %bb.1:
	sxtw	x23, w3
	sxtw	x24, w19
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x23, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x26, x23
	add	x23, x23, #1
	cmp	x23, x24
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x23
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x28, x26, #3
	ldr	x8, [x20, x28]
	lsl	x25, x27, #3
	ldr	x9, [x20, x25]
	str	x9, [x20, x28]
	str	x8, [x20, x25]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	bl	_permute
	ldr	x8, [x20, x28]
	ldr	x9, [x20, x25]
	str	x9, [x20, x28]
	str	x8, [x20, x25]
	add	x27, x27, #1
	cmp	x27, x24
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_add_list
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_permute
.subsections_via_symbols
