	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function call_bio_endio
_call_bio_endio:                        ## @call_bio_endio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movq	(%rax), %r14
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	xorl	%r12d, %r12d
	decq	(%r15)
	sete	%r12b
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r12d
LBB0_3:
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bio_endio
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_allow_barrier                  ## TAILCALL
LBB0_4:
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_clear_bit
	testl	%r12d, %r12d
	jne	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_Uptodate,4,2             ## @R1BIO_Uptodate
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
	.no_dead_strip	_call_bio_endio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function call_bio_endio
_call_bio_endio:                        ; @call_bio_endio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldp	x8, x20, [x0, #8]
	ldr	x19, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	cset	w22, eq
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_3
LBB0_2:
	mov	w22, #1
LBB0_3:
Lloh0:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.4:
	cbz	w22, LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	bl	_bio_endio
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_allow_barrier
LBB0_6:
Lloh3:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
	cbnz	w22, LBB0_5
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_Uptodate,4,2             ; @R1BIO_Uptodate
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.no_dead_strip	_call_bio_endio
.subsections_via_symbols
