	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sync_page_io                   ## -- Begin function sync_page_io
	.p2align	4, 0x90
_sync_page_io:                          ## @sync_page_io
	.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
	movl	%r9d, %r12d
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rdx
	movl	$1, %esi
	callq	_bio_alloc_mddev
	movq	%rax, %rbx
	movq	_BIO_RW_SYNCIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BIO_RW_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	movq	40(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.2:
	movq	32(%r15), %rdx
LBB0_3:
	movq	%rdx, 24(%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	32(%r15), %rdx
	movq	%rdx, 24(%rbx)
	movq	24(%r15), %rdx
	movq	(%rdx), %rsi
	movq	_MaxSector@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_7
## %bb.5:
	xorl	%edi, %edi
	cmpq	%r13, %rsi
	setle	%dil
	cmpl	%edi, 8(%rdx)
	jne	LBB0_7
## %bb.6:
	addq	$8, %r15
	jmp	LBB0_8
LBB0_7:
	addq	$16, %r15
LBB0_8:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	(%r15), %r13
	movq	%r13, 16(%rbx)
	btsl	%ecx, %r14d
	btsl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_init_completion
	movq	%r15, 8(%rbx)
	movq	_bi_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_submit_bio
	movq	%r15, %rdi
	callq	_wait_for_completion
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bio_put
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_BIO_RW_SYNCIO,4,2              ## @BIO_RW_SYNCIO
	.comm	_BIO_RW_UNPLUG,4,2              ## @BIO_RW_UNPLUG
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_bi_complete,4,2                ## @bi_complete
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sync_page_io                   ; -- Begin function sync_page_io
	.p2align	2
_sync_page_io:                          ; @sync_page_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x25, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x24, #24]
	mov	w1, #1
	bl	_bio_alloc_mddev
	mov	x19, x0
Lloh3:
	adrp	x8, _BIO_RW_SYNCIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_RW_SYNCIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BIO_RW_UNPLUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIO_RW_UNPLUG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	w25, LBB0_4
; %bb.1:
	ldr	x10, [x24, #40]
	cbnz	x10, LBB0_3
; %bb.2:
	ldr	x10, [x24, #32]
LBB0_3:
	str	x10, [x19, #24]
	b	LBB0_8
LBB0_4:
	ldp	x10, x11, [x24, #24]
	str	x11, [x19, #24]
	ldr	x11, [x10]
Lloh9:
	adrp	x12, _MaxSector@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MaxSector@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	b.eq	LBB0_7
; %bb.5:
	ldr	w10, [x10, #8]
	cmp	x11, x23
	cset	w11, le
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.6:
	add	x24, x24, #8
	b	LBB0_8
LBB0_7:
	add	x24, x24, #16
LBB0_8:
	ldr	x10, [x24]
	add	x10, x10, x23
	str	x10, [x19, #16]
	mov	w10, #1
	lsl	w8, w10, w8
	lsl	w9, w10, w9
	orr	w8, w8, w22
	orr	w22, w8, w9
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_bio_add_page
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_init_completion
	str	x20, [x19, #8]
Lloh12:
	adrp	x8, _bi_complete@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bi_complete@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x22
	mov	x1, x19
	bl	_submit_bio
	add	x0, sp, #8
	bl	_wait_for_completion
Lloh15:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bio_put
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_BIO_RW_SYNCIO,4,2              ; @BIO_RW_SYNCIO
	.comm	_BIO_RW_UNPLUG,4,2              ; @BIO_RW_UNPLUG
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_bi_complete,4,2                ; @bi_complete
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
.subsections_via_symbols
