	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetPermutation
_GetPermutation:                        ## @GetPermutation
	.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
	movl	%edi, %r14d
	leal	(,%r14,4), %edi
	callq	_palloc
	movq	%rax, %r15
	movl	$0, (%rax)
	cmpl	$2, %r14d
	jl	LBB0_5
## %bb.1:
	movl	%r14d, %r14d
	movl	$1, %ebx
	movl	$2, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%r15,%rax,4)
	incl	%r12d
	movq	%rcx, %rbx
	cmpq	%rcx, %r14
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	leaq	1(%rbx), %rcx
	cltd
	idivl	%r12d
	movslq	%edx, %rax
	cmpq	%rax, %rbx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%rax,4), %edx
	movl	%edx, (%r15,%rbx,4)
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_GetPermutation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetPermutation
_GetPermutation:                        ; @GetPermutation
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	lsl	w0, w0, #2
	bl	_palloc
	mov	x19, x0
	str	wzr, [x0]
	cmp	w20, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	w8, w20
	add	x20, x19, #4
	sub	x21, x8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x19, x8, lsl #2]
	mov	x22, x23
	cmp	x21, x23
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x22, #1
	bl	_random
	add	w8, w22, #2
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	sxtw	x8, w8
	cmp	x23, x8
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, x8, lsl #2]
	str	w9, [x20, x22, lsl #2]
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_GetPermutation
.subsections_via_symbols
