	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	8(%r12), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rsi
	callq	_atomic_add
	jmp	LBB0_3
LBB0_1:
	movq	_R10BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_set_bit
	movslq	%r14d, %rbx
LBB0_3:
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r12), %esi
	callq	_rdev_dec_pending
	movq	_R10BIO_IsRecover@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reschedule_retry               ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x8, [x21, #8]
	mov	x9, x20
	sxtw	x22, w9
	ldr	x1, [x8, w20, sxtw #3]
	bl	_atomic_add
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _R10BIO_Uptodate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R10BIO_Uptodate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	sxtw	x22, w20
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	w1, [x21]
	bl	_rdev_dec_pending
Lloh3:
	adrp	x8, _R10BIO_IsRecover@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R10BIO_IsRecover@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_6
LBB0_5:
	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_6:
	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	_R10BIO_Uptodate,4,2            ; @R10BIO_Uptodate
	.comm	_R10BIO_IsRecover,4,2           ; @R10BIO_IsRecover
	.no_dead_strip	___end_sync_read
.subsections_via_symbols
