	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_rand_array
_gen_rand_array:                        ## @gen_rand_array
	.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
	movq	%rsi, %r13
	movq	(%rdi), %rsi
	movq	_N@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r9
	leaq	-16(%rsi,%r9,8), %r12
	leaq	(%rsi,%r9,8), %r8
	addq	$-8, %r8
	movq	_POS1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%r15d, %r15d
	cmpl	%eax, %r9d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_4
## %bb.1:
	cltq
	leaq	(%rsi,%rax,8), %rdx
	movq	%r13, %rdi
	movq	%rcx, %r15
	movq	%r12, %rcx
	movq	%r8, %r14
	callq	_do_recursion
	movq	%r14, %rcx
	movl	(%rbx), %r9d
	movq	%r15, %r14
	movl	(%r15), %eax
	movl	%r9d, %edx
	subl	%eax, %edx
	movl	$1, %r15d
	cmpl	$2, %edx
	jl	LBB0_2
## %bb.8:
	movl	$1, %r15d
	movl	$8, %ebx
	movq	%r13, %r8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r8, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	leaq	8(%r8), %r12
	addl	%r15d, %eax
	cltq
	leaq	(%rsi,%rax,8), %rdx
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_do_recursion
	movq	%r12, %r8
	incq	%r15
	movq	_N@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r14), %eax
	movl	%r9d, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	addq	$8, %rbx
	movq	%r13, %rcx
	cmpq	%rdx, %r15
	jl	LBB0_9
## %bb.3:
	leaq	-8(%r8), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_N@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	%rcx, %r12
	movq	%r13, %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	movl	%r15d, %edx
	subl	%r9d, %edx
	jge	LBB0_5
## %bb.6:
	movl	%r15d, %ecx
	leaq	(,%rcx,8), %rsi
	addq	(%rdi), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rcx,8), %r13
	addl	%eax, %edx
	movslq	%edx, %rax
	leaq	(%rdi,%rax,8), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r8, %r14
	callq	_do_recursion
	movq	%r14, %rcx
	leal	1(%r15), %r14d
	movl	(%rbx), %r9d
	cmpl	%r14d, %r9d
	jle	LBB0_7
## %bb.17:
	incl	%r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	8(,%rax,8), %rbx
	movl	%r15d, %r14d
	movq	_POS1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movl	(%r12), %eax
	subl	%r9d, %eax
	addq	$8, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	addq	%rbx, %rsi
	addl	%r14d, %eax
	cltq
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rdx
	movq	%r13, %rdi
	movq	%r15, %r8
	callq	_do_recursion
	movq	_N@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	incl	%r14d
	addq	$8, %rbx
	movq	%r15, %rcx
	cmpl	%r14d, %r9d
	jg	LBB0_18
## %bb.10:
	leaq	-8(%r13), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_N@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_5:
	movl	%r15d, %r14d
	movq	%r8, %r13
	jmp	LBB0_11
LBB0_7:
	movq	%rcx, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	movl	%r9d, %edx
	negl	%edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	subl	%r9d, %ecx
	cmpl	%ecx, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_15
## %bb.12:
	movl	%r14d, %ecx
	leaq	(%r15,%rcx,8), %rsi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rcx
	movq	%r13, %r12
	movq	%rsi, %r13
	movl	%r14d, %esi
	subl	%r9d, %esi
	movslq	%esi, %rax
	movq	_POS1@GOTPCREL(%rip), %rsi
	addl	(%rsi), %edx
	leaq	(%r15,%rax,8), %rsi
	addl	%r14d, %edx
	movslq	%edx, %rax
	leaq	(%r15,%rax,8), %rdx
	movq	%r13, %rdi
	movq	%r12, %r8
	callq	_do_recursion
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	(%rbx), %r9d
	movl	%r9d, %edx
	negl	%edx
	movl	%eax, %ecx
	subl	%r9d, %ecx
	incl	%r14d
	leaq	8(%r13), %rsi
	cmpl	%r14d, %ecx
	jg	LBB0_13
## %bb.14:
	addq	$-8, %rsi
	movq	%rsi, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
	leal	(%r9,%r9), %ecx
	subl	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.19:
	addl	%eax, %edx
	movl	%ecx, %r15d
	movq	%rbx, %r11
	cmpl	$1, %ecx
	jne	LBB0_28
## %bb.20:
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_16:
	xorl	%r15d, %r15d
	cmpl	%eax, %r14d
	jl	LBB0_25
	jmp	LBB0_30
LBB0_28:
	movl	%r15d, %r8d
	andl	$-2, %r8d
	xorl	%ecx, %ecx
	movl	%edx, %ebx
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movq	(%r10,%rbx,8), %rsi
	movq	(%rdi), %rax
	movq	%rsi, (%rax,%rcx,8)
	leal	1(%rbx), %eax
	cltq
	movq	(%r10,%rax,8), %rax
	movq	(%rdi), %rsi
	movq	%rax, 8(%rsi,%rcx,8)
	addq	$2, %rcx
	addl	$2, %ebx
	cmpq	%rcx, %r8
	jne	LBB0_29
LBB0_21:
	testb	$1, %r15b
	je	LBB0_23
## %bb.22:
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rdx
	movq	(%rdi), %rsi
	movq	%rdx, (%rsi,%rcx,8)
LBB0_23:
	movq	%r11, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r14d
	jge	LBB0_30
LBB0_25:
	movl	%r14d, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rdx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rcx
	movq	%r13, %r12
	movq	%rdx, %r13
	movl	%r14d, %eax
	subl	%r9d, %eax
	cltq
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rsi
	movq	_POS1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r9d, %eax
	addl	%r14d, %eax
	cltq
	leaq	(%rdx,%rax,8), %rdx
	movq	%r13, %rdi
	movq	%r12, %r8
	callq	_do_recursion
	movq	(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r15,8)
	incl	%r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%r15
	movl	(%rbx), %r9d
	leaq	8(%r13), %rdx
	jmp	LBB0_26
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N,4,2                          ## @N
	.comm	_POS1,4,2                       ## @POS1
	.no_dead_strip	_gen_rand_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_rand_array
_gen_rand_array:                        ; @gen_rand_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x26, _N@GOTPAGE
Lloh1:
	ldr	x26, [x26, _N@GOTPAGEOFF]
	ldr	w8, [x26]
	sub	w9, w8, #2
	add	x23, x1, w9, sxtw #3
	sub	w9, w8, #1
	add	x22, x1, w9, sxtw #3
Lloh2:
	adrp	x27, _POS1@GOTPAGE
Lloh3:
	ldr	x27, [x27, _POS1@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.1:
	sxtw	x8, w9
	add	x2, x1, x8, lsl #3
	mov	x0, x20
	mov	x3, x23
	mov	x4, x22
	bl	_do_recursion
	ldr	w8, [x26]
	ldr	w9, [x27]
	sub	w10, w8, w9
	cmp	w10, #2
	b.lt	LBB0_6
; %bb.2:
	mov	x24, #0
	mov	w25, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x20, x24
	ldr	x8, [x21]
	add	x0, x23, #8
	add	x10, x8, x24
	add	x1, x10, #8
	add	w9, w25, w9
	add	x2, x8, w9, sxtw #3
	mov	x3, x22
	mov	x4, x23
	bl	_do_recursion
	add	x25, x25, #1
	ldr	w8, [x26]
	ldr	w9, [x27]
	sub	w10, w8, w9
	add	x24, x24, #8
	cmp	x25, w10, sxtw
	mov	x22, x23
	b.lt	LBB0_3
; %bb.4:
	add	x22, x20, x24
	sub	x23, x22, #8
	subs	w10, w25, w8
	b.lt	LBB0_7
	b	LBB0_11
LBB0_5:
	mov	w25, #0
	subs	w10, w25, w8
	b.lt	LBB0_7
	b	LBB0_11
LBB0_6:
	mov	w25, #1
	mov	x23, x22
	mov	x22, x20
	subs	w10, w25, w8
	b.ge	LBB0_11
LBB0_7:
	mov	w8, w25
	lsl	x28, x8, #3
	add	x24, x20, x28
	ldr	x8, [x21]
	add	x1, x8, x28
	add	w8, w10, w9
	add	x2, x20, w8, sxtw #3
	mov	x0, x24
	mov	x3, x23
	mov	x4, x22
	bl	_do_recursion
	add	w25, w25, #1
	ldr	w8, [x26]
	cmp	w8, w25
	b.le	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x20, x28
	ldr	w9, [x27]
	add	x0, x23, #8
	ldr	x10, [x21]
	add	x10, x10, x28
	add	x1, x10, #8
	sub	w8, w9, w8
	add	w8, w25, w8
	add	x2, x20, w8, sxtw #3
	mov	x3, x22
	mov	x4, x23
	bl	_do_recursion
	ldr	w8, [x26]
	add	w25, w25, #1
	add	x28, x28, #8
	mov	x22, x23
	cmp	w8, w25
	b.gt	LBB0_8
; %bb.9:
	add	x22, x20, x28
	sub	x23, x22, #8
	b	LBB0_11
LBB0_10:
	mov	x23, x22
	mov	x22, x24
LBB0_11:
	neg	w9, w8
	sub	w10, w19, w8
	cmp	w25, w10
	b.ge	LBB0_15
; %bb.12:
	add	x10, x20, w25, uxtw #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x3, x23
	mov	x23, x22
	mov	x22, x10
	sub	w8, w25, w8
	add	x1, x20, w8, sxtw #3
	ldr	w8, [x27]
	add	w8, w9, w8
	add	w8, w25, w8
	add	x2, x20, w8, sxtw #3
	mov	x0, x10
	mov	x4, x23
	bl	_do_recursion
	ldr	w8, [x26]
	neg	w9, w8
	add	w25, w25, #1
	add	x10, x22, #8
	sub	w11, w19, w8
	cmp	w11, w25
	b.gt	LBB0_13
; %bb.14:
	sub	x22, x10, #8
LBB0_15:
	lsl	w10, w8, #1
	sub	w28, w10, w19
	cmp	w28, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x10, #0
	add	w9, w9, w19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w11, w9, w10
	ldr	x11, [x20, w11, sxtw #3]
	ldr	x12, [x21]
	str	x11, [x12, x10, lsl #3]
	add	x10, x10, #1
	cmp	x28, x10
	b.ne	LBB0_17
; %bb.18:
	cmp	w25, w19
	b.lt	LBB0_20
	b	LBB0_23
LBB0_19:
	mov	x28, #0
	cmp	w25, w19
	b.ge	LBB0_23
LBB0_20:
	mov	x24, x21
	mov	x21, x26
	add	x26, x20, w25, uxtw #3
	ldr	w9, [x27]
	sub	w8, w25, w8
	add	w9, w8, w9
	add	x1, x20, w8, sxtw #3
	add	x2, x20, w9, sxtw #3
	mov	x0, x26
	mov	x3, x23
	mov	x4, x22
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	bl	_do_recursion
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
Lloh4:
	adrp	x11, _POS1@GOTPAGE
Lloh5:
	ldr	x11, [x11, _POS1@GOTPAGEOFF]
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x8, [x26]
	ldr	x9, [x24]
	str	x8, [x9, x28, lsl #3]
	add	w20, w25, #1
	cmp	w20, w19
	b.ge	LBB0_23
; %bb.21:
	mov	x27, #0
	lsl	x8, x28, #3
	add	x8, x8, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x25, x23
	ldr	w8, [x21]
	mov	x26, x21
	mov	x21, x19
	lsl	x19, x27, #3
	mov	x28, x24
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x9, x19
	add	x23, x23, #8
	add	w9, w20, w27
	sub	w10, w9, w8
	add	x1, x12, w10, sxtw #3
	ldr	w10, [x11]
	sub	w8, w10, w8
	add	w8, w9, w8
	add	x2, x12, w8, sxtw #3
	mov	x0, x23
	mov	x3, x22
	mov	x4, x25
	bl	_do_recursion
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
Lloh6:
	adrp	x11, _POS1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _POS1@GOTPAGEOFF]
	ldr	x8, [x24, #8]
	mov	x24, x28
	ldr	x9, [x28]
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
	add	x9, x9, x13
	str	x8, [x9, x19]
	mov	x19, x21
	mov	x21, x26
	add	x27, x27, #1
	add	w8, w20, w27
	cmp	w8, w19
	mov	x22, x25
	b.lt	LBB0_22
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_N,4,2                          ; @N
	.comm	_POS1,4,2                       ; @POS1
	.no_dead_strip	_gen_rand_array
.subsections_via_symbols
