	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_array
_load_array:                            ## @load_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_readreg
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pop_number
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_get_ulong
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_BN_is_negative
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	jmp	LBB0_11
LBB0_4:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_6
## %bb.5:
	movq	_MAX_ARRAY_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_6
## %bb.7:
	movq	_bmachine@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_frame_retrieve
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rax), %rcx
	movq	_BCODE_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_BN_zero
	movl	%eax, %edi
	callq	_bn_check
	movq	%rbx, %rdi
	callq	_push_number
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	jmp	LBB0_11
LBB0_10:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stack_dup_value
	movl	%eax, %edi
	callq	_push
LBB0_11:
	movq	%r14, %rdi
	callq	_free_number
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"negative idx"

	.comm	_ULONG_MAX,4,2                  ## @ULONG_MAX
	.comm	_MAX_ARRAY_INDEX,4,2            ## @MAX_ARRAY_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"idx too big"

	.comm	_bmachine,8,3                   ## @bmachine
	.comm	_BCODE_NONE,8,3                 ## @BCODE_NONE
	.no_dead_strip	_load_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_array
_load_array:                            ; @load_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_readreg
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x20, x0
	bl	_pop_number
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	bl	_get_ulong
	mov	x21, x0
	ldr	w0, [x19]
	bl	_BN_is_negative
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_10
LBB0_4:
Lloh2:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MAX_ARRAY_INDEX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_ARRAY_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #0, ne
	b.le	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x8, _bmachine@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bmachine@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x0, x8, w20, uxtw #2
	mov	x1, x21
	bl	_frame_retrieve
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _BCODE_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BCODE_NONE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
	bl	_new_number
	mov	x20, x0
	ldr	w0, [x0]
	bl	_BN_zero
	bl	_bn_check
	mov	x0, x20
	bl	_push_number
	b	LBB0_10
LBB0_9:
	add	x1, sp, #8
	bl	_stack_dup_value
	bl	_push
LBB0_10:
	mov	x0, x19
	bl	_free_number
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"negative idx"

	.comm	_ULONG_MAX,4,2                  ; @ULONG_MAX
	.comm	_MAX_ARRAY_INDEX,4,2            ; @MAX_ARRAY_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"idx too big"

	.comm	_bmachine,8,3                   ; @bmachine
	.comm	_BCODE_NONE,8,3                 ; @BCODE_NONE
	.no_dead_strip	_load_array
.subsections_via_symbols
