	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_request_write
_sync_request_write:                    ## @sync_request_write
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rsi), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_fix_sync_read_error
	testl	%eax, %eax
	je	LBB0_16
LBB0_2:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_process_checks
	testq	%rax, %rax
	js	LBB0_16
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %rdi
	movl	$1, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_atomic_set
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.5:
	addl	%r15d, %r15d
	cmpl	$2, %r15d
	cmovgel	%r15d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_end_sync_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_bio_sectors
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_md_sync_acct
	movq	%rbx, %rdi
	callq	_generic_make_request
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_end_sync_read@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%r13), %r12
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MD_RECOVERY_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.13:
	movl	8(%r13), %r14d
	movq	_R1BIO_MadeGood@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movq	_R1BIO_WriteError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
LBB0_17:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reschedule_retry               ## TAILCALL
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r13, %rdi
	callq	_put_buf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	$1, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_done_sync                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_Uptodate,4,2             ## @R1BIO_Uptodate
	.comm	_MD_RECOVERY_REQUESTED,4,2      ## @MD_RECOVERY_REQUESTED
	.comm	_end_sync_read,8,3              ## @end_sync_read
	.comm	_MD_RECOVERY_SYNC,4,2           ## @MD_RECOVERY_SYNC
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_end_sync_write,8,3             ## @end_sync_write
	.comm	_R1BIO_MadeGood,4,2             ## @R1BIO_MadeGood
	.comm	_R1BIO_WriteError,4,2           ## @R1BIO_WriteError
	.no_dead_strip	_sync_request_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_request_write
_sync_request_write:                    ; @sync_request_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x25, [x0, #8]
	ldr	w19, [x25]
Lloh0:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x1, #12
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_fix_sync_read_error
	cbz	w0, LBB0_16
LBB0_2:
Lloh3:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_process_checks
	tbnz	x0, #63, LBB0_16
LBB0_4:
	str	x21, [sp]                       ; 8-byte Folded Spill
	add	x22, x20, #16
	mov	x0, x22
	mov	w1, #1
	bl	_atomic_set
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x26, #0
	lsl	w8, w19, #1
	cmp	w8, #1
	csinc	w27, w8, wzr, gt
Lloh6:
	adrp	x28, _end_sync_read@GOTPAGE
Lloh7:
	ldr	x28, [x28, _end_sync_read@GOTPAGEOFF]
Lloh8:
	adrp	x21, _WRITE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _WRITE@GOTPAGEOFF]
Lloh10:
	adrp	x19, _end_sync_write@GOTPAGE
Lloh11:
	ldr	x19, [x19, _end_sync_write@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	str	w8, [x23, #8]
	ldr	x8, [x19]
	str	x8, [x23]
	mov	x0, x22
	bl	_atomic_inc
	ldr	x8, [x25, #8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w24, [x8]
	mov	x0, x23
	bl	_bio_sectors
	mov	x1, x0
	mov	x0, x24
	bl	_md_sync_acct
	mov	x0, x23
	bl	_generic_make_request
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	cmp	x27, x26
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x23, [x8, x26, lsl #3]
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	cmp	x26, x8
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh12:
	adrp	x8, _MD_RECOVERY_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MD_RECOVERY_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_test_bit
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_12:
	mov	x0, x22
	bl	_atomic_dec_and_test
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w22, [x20, #8]
Lloh15:
	adrp	x8, _R1BIO_MadeGood@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R1BIO_MadeGood@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _R1BIO_WriteError@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R1BIO_WriteError@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_17
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_reschedule_retry
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x0, x20
	bl	_put_buf
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	mov	w2, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_md_done_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_Uptodate,4,2             ; @R1BIO_Uptodate
	.comm	_MD_RECOVERY_REQUESTED,4,2      ; @MD_RECOVERY_REQUESTED
	.comm	_end_sync_read,8,3              ; @end_sync_read
	.comm	_MD_RECOVERY_SYNC,4,2           ; @MD_RECOVERY_SYNC
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_end_sync_write,8,3             ; @end_sync_write
	.comm	_R1BIO_MadeGood,4,2             ; @R1BIO_MadeGood
	.comm	_R1BIO_WriteError,4,2           ; @R1BIO_WriteError
	.no_dead_strip	_sync_request_write
.subsections_via_symbols
