	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_read_memory             ## -- Begin function buffer_read_memory
	.p2align	4, 0x90
_buffer_read_memory:                    ## @buffer_read_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rcx), %eax
	movl	%edi, %ebx
	subl	%eax, %ebx
	subl	%eax, %edi
	jb	LBB0_2
## %bb.1:
	movl	%edx, %r8d
	movl	(%rcx), %r10d
	movl	4(%rcx), %eax
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	divl	%r10d
	movl	%eax, %r9d
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%r10d
	addl	%edi, %eax
	cmpl	%r9d, %eax
	jbe	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	imull	%r10d, %ebx
	movl	%ebx, %eax
	addq	16(%rcx), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	%r8d, %edx
	callq	_memcpy
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_read_memory             ; -- Begin function buffer_read_memory
	.p2align	2
_buffer_read_memory:                    ; @buffer_read_memory
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x3, #8]
	subs	w8, w0, w8
	b.lo	LBB0_2
; %bb.1:
	ldp	w9, w10, [x3]
	udiv	w10, w10, w9
	udiv	w11, w2, w9
	add	w11, w11, w8
	cmp	w11, w10
	b.ls	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mul	w8, w8, w9
	ldr	x9, [x3, #16]
	add	x8, x9, w8, uxtw
	mov	x0, x1
	mov	x1, x8
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
