	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadBufferBI
_ReadBufferBI:                          ## @ReadBufferBI
	.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	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r13
	movq	(%rcx), %rdi
	movq	_InvalidBuffer@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	je	LBB0_5
## %bb.2:
	callq	_BufferGetBlockNumber
	cmpq	%r15, %rax
	jne	LBB0_4
## %bb.3:
	movq	_RBM_ZERO_AND_LOCK@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	setne	%al
	movq	_RBM_ZERO_AND_CLEANUP_LOCK@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movq	(%r13), %rdi
	callq	_IncrBufferRefCount
	movq	(%r13), %rbx
	jmp	LBB0_6
LBB0_7:
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ReadBufferExtended             ## TAILCALL
LBB0_4:
	movq	(%r13), %rdi
	callq	_ReleaseBuffer
	movq	(%rbx), %rax
	movq	%rax, (%r13)
LBB0_5:
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %r8
	movl	%r12d, %edi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ReadBufferExtended
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IncrBufferRefCount
	movq	%rbx, (%r13)
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_RBM_ZERO_AND_LOCK,8,3          ## @RBM_ZERO_AND_LOCK
	.comm	_RBM_ZERO_AND_CLEANUP_LOCK,8,3  ## @RBM_ZERO_AND_CLEANUP_LOCK
	.no_dead_strip	_ReadBufferBI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadBufferBI
_ReadBufferBI:                          ; @ReadBufferBI
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cbz	x3, LBB0_4
; %bb.1:
	mov	x19, x3
	ldr	x0, [x3]
Lloh0:
	adrp	x23, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x23, [x23, _InvalidBuffer@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.2:
	bl	_BufferGetBlockNumber
	cmp	x0, x21
	b.ne	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _RBM_ZERO_AND_LOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RBM_ZERO_AND_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
Lloh5:
	adrp	x8, _RBM_ZERO_AND_CLEANUP_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RBM_ZERO_AND_CLEANUP_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ccmp	x8, x20, #4, ne
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x19]
	bl	_IncrBufferRefCount
	ldr	x20, [x19]
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, #0
	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
	b	_ReadBufferExtended
LBB0_5:
	ldr	x0, [x19]
	bl	_ReleaseBuffer
	ldr	x8, [x23]
	str	x8, [x19]
LBB0_6:
Lloh11:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x4, [x19, #8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ReadBufferExtended
	mov	x20, x0
	bl	_IncrBufferRefCount
	str	x20, [x19]
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_RBM_ZERO_AND_LOCK,8,3          ; @RBM_ZERO_AND_LOCK
	.comm	_RBM_ZERO_AND_CLEANUP_LOCK,8,3  ; @RBM_ZERO_AND_CLEANUP_LOCK
	.no_dead_strip	_ReadBufferBI
.subsections_via_symbols
