	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_rand_all
_gen_rand_all:                          ## @gen_rand_all
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	_N@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	-8(%rdi,%rcx,4), %r14
	leaq	(%rdi,%rcx,4), %r15
	addq	$-4, %r15
	movq	_POS1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	xorl	%r12d, %r12d
	cmpl	%eax, %ecx
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rcx
	movq	%r15, %r14
	addl	%r12d, %eax
	cltq
	leaq	(%rdi,%rax,4), %rdx
	addq	%rbx, %rdi
	movq	%rsi, %r15
	movq	%rdi, %rsi
	movq	%r14, %r8
	callq	_do_recursion
	movq	%r15, %rsi
	movq	(%r13), %rdi
	incq	%r12
	leaq	(%rdi,%rbx), %r15
	movq	_N@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rsi), %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	addq	$4, %rbx
	cmpq	%rdx, %r12
	jl	LBB0_2
## %bb.3:
	leaq	(%rdi,%rbx), %r15
	addq	$-4, %r15
LBB0_4:
	movl	%r12d, %edx
	subl	%ecx, %edx
	jge	LBB0_8
## %bb.5:
	movq	%r13, %rbx
	movl	%r12d, %r13d
	leaq	(%rdi,%r13,4), %rsi
	addl	%eax, %edx
	movslq	%edx, %rax
	leaq	(%rdi,%rax,4), %rdx
	movq	%rsi, %rdi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_do_recursion
	incl	%r12d
	movq	_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	jle	LBB0_8
## %bb.6:
	shlq	$2, %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	%rbx, %r14
	leaq	(%rcx,%r13), %rbx
	movq	_POS1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%eax, %edx
	leaq	(%rcx,%r13), %rdi
	addq	$4, %rdi
	addl	%r12d, %edx
	movslq	%edx, %rax
	leaq	(%rcx,%rax,4), %rdx
	movq	%rdi, %rsi
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_do_recursion
	movq	_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %r13
	incl	%r12d
	movq	%rbx, %r15
	movq	%r14, %rbx
	cmpl	%r12d, %eax
	jg	LBB0_7
LBB0_8:
	addq	$8, %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_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_rand_all
_gen_rand_all:                          ; @gen_rand_all
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _N@GOTPAGE
Lloh1:
	ldr	x22, [x22, _N@GOTPAGEOFF]
	ldr	w10, [x22]
	sub	w9, w10, #2
	add	x21, x8, w9, sxtw #2
	sub	w9, w10, #1
	add	x20, x8, w9, sxtw #2
Lloh2:
	adrp	x23, _POS1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _POS1@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w10, w9
	b.le	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x3, x21
	mov	x21, x20
	add	x0, x8, x25
	add	w9, w24, w9
	add	x2, x8, w9, sxtw #2
	mov	x1, x0
	mov	x4, x20
	bl	_do_recursion
	ldr	x8, [x19]
	add	x24, x24, #1
	add	x20, x8, x25
	ldr	w10, [x22]
	ldr	w9, [x23]
	sub	w11, w10, w9
	add	x25, x25, #4
	cmp	x24, w11, sxtw
	b.lt	LBB0_2
; %bb.3:
	add	x11, x8, x25
	sub	x20, x11, #4
	subs	w10, w24, w10
	b.lt	LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w24, #0
	subs	w10, w24, w10
	b.ge	LBB0_8
LBB0_5:
	add	x0, x8, w24, uxtw #2
	add	w9, w10, w9
	add	x2, x8, w9, sxtw #2
	mov	x1, x0
	mov	x3, x21
	mov	x4, x20
	bl	_do_recursion
	add	w25, w24, #1
	ldr	w8, [x22]
	cmp	w8, w25
	b.le	LBB0_8
; %bb.6:
	mov	w9, w24
	lsl	x24, x9, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x21, x9, x24
	ldr	w10, [x23]
	add	x0, x21, #4
	sub	w8, w10, w8
	add	w8, w25, w8
	add	x2, x9, w8, sxtw #2
	mov	x1, x0
	mov	x3, x20
	mov	x4, x21
	bl	_do_recursion
	ldr	w8, [x22]
	add	x24, x24, #4
	add	w25, w25, #1
	mov	x20, x21
	cmp	w8, w25
	b.gt	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_N,4,2                          ; @N
	.comm	_POS1,4,2                       ; @POS1
	.no_dead_strip	_gen_rand_all
.subsections_via_symbols
