	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_all_permutations
_run_all_permutations:                  ## @run_all_permutations
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	8(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
                                        ## implicit-def: $rdi
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_4:
	andl	$-4, %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movq	8(%rcx,%rbx,8), %rax
	addl	(%rdi), %esi
	addl	(%rax), %esi
	movq	16(%rcx,%rbx,8), %rax
	addl	(%rax), %esi
	movslq	%esi, %rdi
	movq	24(%rcx,%rbx,8), %rax
	addq	(%rax), %rdi
	addq	$4, %rbx
	movslq	%edi, %rsi
	cmpq	%rbx, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%rcx,%rbx,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rax
	movq	%rsi, %rdi
	addq	(%rax), %rdi
	movslq	%edi, %rsi
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_8
LBB0_9:
	shll	$3, %edi
LBB0_10:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pg_malloc
	movq	%rax, %rbx
	movl	(%r14), %edi
	shll	$2, %edi
	callq	_pg_malloc
	movq	_piles@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.11:
	shlq	$3, %rsi
	movq	%rax, %rdi
	callq	___bzero
LBB0_12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_run_all_permutations_recurse   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_piles,8,3                      ## @piles
	.no_dead_strip	_run_all_permutations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_all_permutations
_run_all_permutations:                  ; @run_all_permutations
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	x11, [x11]
	add	x11, x11, x10
	sxtw	x10, w11
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
	lsl	w0, w11, #3
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_pg_malloc
	mov	x20, x0
	ldr	w8, [x19]
	lsl	w0, w8, #2
	bl	_pg_malloc
Lloh0:
	adrp	x8, _piles@GOTPAGE
Lloh1:
	ldr	x8, [x8, _piles@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	lsl	x1, x8, #3
	bl	_bzero
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_run_all_permutations_recurse
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_piles,8,3                      ; @piles
	.no_dead_strip	_run_all_permutations
.subsections_via_symbols
