	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function end_sync_read
_end_sync_read:                         ## @end_sync_read
	.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), %r15
	movq	24(%r15), %rax
	movq	(%rax), %r14
	cmpq	%rdi, 16(%r15)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_find_bio_disk
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %r12d
LBB0_3:
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_R10BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	movslq	%r12d, %rbx
	jmp	LBB0_6
LBB0_5:
	movl	12(%r15), %edi
	movq	8(%r14), %rax
	movslq	%r12d, %rbx
	movq	(%rax,%rbx,8), %rsi
	callq	_atomic_add
LBB0_6:
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r14), %esi
	callq	_rdev_dec_pending
	movq	_R10BIO_IsRecover@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	4(%r15), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reschedule_retry               ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
	.comm	_R10BIO_Uptodate,4,2            ## @R10BIO_Uptodate
	.comm	_R10BIO_IsRecover,4,2           ## @R10BIO_IsRecover
	.no_dead_strip	_end_sync_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function end_sync_read
_end_sync_read:                         ; @end_sync_read
	.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	x22, x0
	ldr	x19, [x0, #8]
	ldp	x9, x8, [x19, #16]
	ldr	x20, [x8]
	cmp	x9, x0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, #0
	mov	x4, #0
	bl	_find_bio_disk
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	ldr	w21, [x19]
LBB0_3:
Lloh0:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _R10BIO_Uptodate@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R10BIO_Uptodate@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	sxtw	x22, w21
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #12]
	ldr	x8, [x20, #8]
	mov	x9, x21
	sxtw	x22, w9
	ldr	x1, [x8, w21, sxtw #3]
	bl	_atomic_add
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	w1, [x20]
	bl	_rdev_dec_pending
Lloh6:
	adrp	x8, _R10BIO_IsRecover@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R10BIO_IsRecover@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.7:
	add	x0, x19, #4
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_9
LBB0_8:
	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	_reschedule_retry
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.comm	_R10BIO_Uptodate,4,2            ; @R10BIO_Uptodate
	.comm	_R10BIO_IsRecover,4,2           ; @R10BIO_IsRecover
	.no_dead_strip	_end_sync_read
.subsections_via_symbols
