	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_sync_write_finished
_handle_sync_write_finished:            ## @handle_sync_write_finished
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_11
## %bb.1:
	leaq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	%rax, %rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r14,8), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %r13
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R1BIO_MadeGood@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_rdev_clear_badblocks
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_R1BIO_WriteError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %edi
	movq	%r13, %rsi
	callq	_md_error
	jmp	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_put_buf
	movl	4(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_done_sync                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_MadeGood,4,2             ## @R1BIO_MadeGood
	.comm	_R1BIO_WriteError,4,2           ## @R1BIO_WriteError
	.no_dead_strip	_handle_sync_write_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_sync_write_finished
_handle_sync_write_finished:            ; @handle_sync_write_finished
	.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	x21, x1
	mov	x20, x0
	ldr	w19, [x1]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x24, #0
	add	x22, x21, #8
Lloh0:
	adrp	x25, _R1BIO_MadeGood@GOTPAGE
Lloh1:
	ldr	x25, [x25, _R1BIO_MadeGood@GOTPAGEOFF]
Lloh2:
	adrp	x26, _R1BIO_WriteError@GOTPAGE
Lloh3:
	ldr	x26, [x26, _R1BIO_WriteError@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8, lsl #1
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x24, #3
	ldr	x9, [x21, #16]
	ldr	x27, [x9, x8]
	ldr	x9, [x27, #8]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #8]
	ldr	x23, [x9, x8]
	ldr	x8, [x27]
	cbnz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x23
	mov	x2, x19
	mov	w3, #0
	bl	_rdev_clear_badblocks
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x23
	mov	x2, x19
	mov	w3, #0
	bl	_rdev_set_badblocks
	cbnz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_md_error
	b	LBB0_2
LBB0_11:
	mov	x0, x21
	bl	_put_buf
	ldr	w0, [x20, #4]
	mov	x1, x19
	mov	w2, #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	_md_done_sync
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_MadeGood,4,2             ; @R1BIO_MadeGood
	.comm	_R1BIO_WriteError,4,2           ; @R1BIO_WriteError
	.no_dead_strip	_handle_sync_write_finished
.subsections_via_symbols
