	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load                           ## -- Begin function load
	.p2align	4, 0x90
_load:                                  ## @load
	.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	_fsize@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %r14
	cmpl	$0, (%rax,%r14,4)
	jle	LBB0_1
## %bb.2:
	movq	_f_buff_r@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rcx
	movq	_f_buff_size@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	(%rdx,%r14,8), %rsi
	movq	%rsi, %rbx
	subq	%rcx, %rbx
	jle	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	%rbx, %rcx
	setg	%dil
	callq	_assert
	movq	_f_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rsi
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdx
	subq	%rsi, %rdx
	addq	%rdi, %rsi
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rcx
	movq	(%r12), %rdx
	movq	(%rdx,%r14,8), %rsi
LBB0_4:
	subq	%rcx, %rsi
	movq	%rsi, (%rdx,%r14,8)
	movq	$0, (%rax,%r14,8)
	movq	(%rdx,%r14,8), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rsi
	subl	%esi, %ebx
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movq	_f_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rax,%r14,8), %rsi
	movl	%ebx, %edx
	callq	_read
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movslq	%ebx, %rax
	movq	(%r12), %rcx
	addq	%rax, (%rcx,%r14,8)
	movq	(%r15), %rcx
	subl	%eax, (%rcx,%r14,4)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fsize,8,3                      ## @fsize
	.comm	_f_buff_r,8,3                   ## @f_buff_r
	.comm	_f_buff_size,8,3                ## @f_buff_size
	.comm	_f_buff,8,3                     ## @f_buff
	.comm	_BUFF_SIZE,8,3                  ## @BUFF_SIZE
	.comm	_fd,8,3                         ## @fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load                           ; -- Begin function load
	.p2align	2
_load:                                  ; @load
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x20, _fsize@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fsize@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8, w0, sxtw #2]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	sxtw	x19, w0
Lloh2:
	adrp	x24, _f_buff_r@GOTPAGE
Lloh3:
	ldr	x24, [x24, _f_buff_r@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x21, x19, #3
	ldr	x9, [x8, x21]
Lloh4:
	adrp	x22, _f_buff_size@GOTPAGE
Lloh5:
	ldr	x22, [x22, _f_buff_size@GOTPAGEOFF]
	ldr	x10, [x22]
	ldr	x11, [x10, x21]
Lloh6:
	adrp	x23, _f_buff@GOTPAGE
Lloh7:
	ldr	x23, [x23, _f_buff@GOTPAGEOFF]
	subs	x12, x11, x9
	b.le	LBB0_3
; %bb.2:
	cmp	x9, x12
	cset	w0, gt
	bl	_assert
	ldr	x8, [x23]
	ldr	x0, [x8, x21]
	ldr	x8, [x24]
	ldr	x8, [x8, x21]
	add	x1, x8, x0
	ldr	x9, [x22]
	ldr	x9, [x9, x21]
	sub	x2, x9, x8
	bl	_memcpy
	ldr	x8, [x24]
	ldr	x9, [x8, x21]
	ldr	x10, [x22]
	ldr	x11, [x10, x21]
LBB0_3:
	sub	x9, x11, x9
	str	x9, [x10, x21]
	str	xzr, [x8, x21]
	ldr	x8, [x10, x21]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh8:
	adrp	x8, _BUFF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9, x21]
	ldr	x10, [x20]
	lsl	x24, x19, #2
	ldr	w10, [x10, x24]
	sub	w8, w8, w9
	cmp	w10, w8
	csel	w19, w10, w8, lt
Lloh11:
	adrp	x8, _fd@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w0, [x8, x24]
	ldr	x8, [x23]
	ldr	x8, [x8, x21]
	add	x1, x8, x9
	mov	x2, x19
	bl	_read
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldr	x9, [x8, x21]
	add	x9, x9, w19, sxtw
	str	x9, [x8, x21]
	ldr	x8, [x20]
	ldr	w9, [x8, x24]
	sub	w9, w9, w19
	str	w9, [x8, x24]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	cset	w0, eq
	bl	_assert
	mov	w0, #-1
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_fsize,8,3                      ; @fsize
	.comm	_f_buff_r,8,3                   ; @f_buff_r
	.comm	_f_buff_size,8,3                ; @f_buff_size
	.comm	_f_buff,8,3                     ; @f_buff
	.comm	_BUFF_SIZE,8,3                  ; @BUFF_SIZE
	.comm	_fd,8,3                         ; @fd
.subsections_via_symbols
