	.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, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	_R1BIO_Uptodate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_fix_sync_read_error
	testl	%eax, %eax
	je	LBB0_17
LBB0_2:
	movq	_MD_RECOVERY_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_process_checks
LBB0_4:
	leaq	4(%r14), %rdi
	movl	$1, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_atomic_set
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.5:
	addl	%ebx, %ebx
	cmpl	$2, %ebx
	cmovgel	%ebx, %r12d
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_abort_sync_write
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_end_sync_read@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	_FailFast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_end_sync_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_bio_sectors
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_md_sync_acct
	movq	%rbx, %rdi
	callq	_generic_make_request
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %eax
	cmpq	%rax, %r15
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MD_RECOVERY_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_sync_write_buf             ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_Faulty,4,2                     ## @Faulty
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_FailFast,4,2                   ## @FailFast
	.comm	_MD_FAILFAST,4,2                ## @MD_FAILFAST
	.comm	_end_sync_write,8,3             ## @end_sync_write
	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	w22, [x24]
Lloh0:
	adrp	x8, _R1BIO_Uptodate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1BIO_Uptodate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x1, #16
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_fix_sync_read_error
	cbz	w0, LBB0_17
LBB0_2:
Lloh3:
	adrp	x8, _MD_RECOVERY_REQUESTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_process_checks
LBB0_4:
	add	x21, x19, #4
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_set
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.5:
	mov	x25, #0
	lsl	w8, w22, #1
	cmp	w8, #1
	csinc	w26, w8, wzr, gt
Lloh6:
	adrp	x27, _end_sync_read@GOTPAGE
Lloh7:
	ldr	x27, [x27, _end_sync_read@GOTPAGEOFF]
Lloh8:
	adrp	x28, _Faulty@GOTPAGE
Lloh9:
	ldr	x28, [x28, _Faulty@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_abort_sync_write
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	cmp	x26, x25
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x25, lsl #3]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x28]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x25, lsl #3]
	add	x1, x8, #4
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh10:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_bio_set_op_attrs
Lloh13:
	adrp	x8, _FailFast@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FailFast@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x25, lsl #3]
	add	x1, x8, #4
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh16:
	adrp	x8, _MD_FAILFAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MD_FAILFAST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	str	w8, [x22, #8]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh19:
	adrp	x8, _end_sync_write@GOTPAGE
Lloh20:
	ldr	x8, [x8, _end_sync_write@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x22]
	mov	x0, x21
	bl	_atomic_inc
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	w23, [x8]
	mov	x0, x22
	bl	_bio_sectors
	mov	x1, x0
	mov	x0, x23
	bl	_md_sync_acct
	mov	x0, x22
	bl	_generic_make_request
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	cmp	x25, x8
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh22:
	adrp	x8, _MD_RECOVERY_SYNC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MD_RECOVERY_SYNC@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_10
	b	LBB0_7
LBB0_16:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_put_sync_write_buf
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_Faulty,4,2                     ; @Faulty
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_FailFast,4,2                   ; @FailFast
	.comm	_MD_FAILFAST,4,2                ; @MD_FAILFAST
	.comm	_end_sync_write,8,3             ; @end_sync_write
	.no_dead_strip	_sync_request_write
.subsections_via_symbols
