	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BufFileLoadBuffer
_BufFileLoadBuffer:                     ## @BufFileLoadBuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_MAX_PHYSICAL_FILESIZE@GOTPCREL(%rip), %rdx
	movl	8(%rdi), %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_3
## %bb.1:
	leal	1(%rax), %edx
	cmpl	12(%rbx), %edx
	jge	LBB0_3
## %bb.2:
	movl	%edx, 8(%rbx)
	movq	$0, (%rbx)
	xorl	%ecx, %ecx
	movl	%edx, %eax
LBB0_3:
	movq	32(%rbx), %rdx
	cltq
	movl	(%rdx,%rax,4), %edi
	movl	24(%rbx), %esi
	movq	_WAIT_EVENT_BUFFILE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$4, %edx
	callq	_FileRead
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_pgBufferUsage@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PHYSICAL_FILESIZE,8,3      ## @MAX_PHYSICAL_FILESIZE
	.comm	_WAIT_EVENT_BUFFILE_READ,4,2    ## @WAIT_EVENT_BUFFILE_READ
	.comm	_pgBufferUsage,4,2              ## @pgBufferUsage
	.no_dead_strip	_BufFileLoadBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BufFileLoadBuffer
_BufFileLoadBuffer:                     ; @BufFileLoadBuffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x3, [x0]
Lloh0:
	adrp	x8, _MAX_PHYSICAL_FILESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PHYSICAL_FILESIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x0, #8]
	cmp	x3, x9
	b.lt	LBB0_3
; %bb.1:
	add	w9, w8, #1
	ldr	w10, [x19, #12]
	cmp	w9, w10
	b.ge	LBB0_3
; %bb.2:
	mov	x3, #0
	str	w9, [x19, #8]
	str	xzr, [x19]
	mov	x8, x9
LBB0_3:
	ldr	x9, [x19, #32]
	ldr	w0, [x9, w8, sxtw #2]
	ldr	w1, [x19, #24]
Lloh3:
	adrp	x8, _WAIT_EVENT_BUFFILE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAIT_EVENT_BUFFILE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	w2, #4
	bl	_FileRead
	cmp	x0, #0
	csel	x8, x0, xzr, gt
	str	x8, [x19, #16]
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _pgBufferUsage@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pgBufferUsage@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PHYSICAL_FILESIZE,8,3      ; @MAX_PHYSICAL_FILESIZE
	.comm	_WAIT_EVENT_BUFFILE_READ,4,2    ; @WAIT_EVENT_BUFFILE_READ
	.comm	_pgBufferUsage,4,2              ; @pgBufferUsage
	.no_dead_strip	_BufFileLoadBuffer
.subsections_via_symbols
