	.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, %ebx
	movl	%r8d, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	24(%rdi), %rdi
	callq	_md_bio_alloc_sync
	movq	%rax, %r14
	cmpl	$0, 16(%rbp)
	je	LBB0_4
## %bb.1:
	movl	36(%r13), %esi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movl	32(%r13), %esi
LBB0_3:
	movq	%r14, %rdi
	callq	_bio_set_dev
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_bio_set_op_attrs
	jmp	LBB0_8
LBB0_4:
	movl	32(%r13), %esi
	movq	%r14, %rdi
	callq	_bio_set_dev
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_bio_set_op_attrs
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	_MaxSector@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	xorl	%edx, %edx
	cmpq	%r12, %rcx
	setle	%dl
	cmpl	%edx, 8(%rax)
	jne	LBB0_7
## %bb.6:
	addq	$8, %r13
	jmp	LBB0_8
LBB0_7:
	addq	$16, %r13
LBB0_8:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	(%r13), %r12
	movq	%r12, 8(%r14)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movq	%r14, %rdi
	callq	_submit_bio_wait
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	sete	%bl
	movq	%r14, %rdi
	callq	_bio_put
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,8,3                  ## @MaxSector
.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x26, x6
	mov	x24, x5
	mov	x25, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x0, [x0, #24]
	bl	_md_bio_alloc_sync
	mov	x19, x0
	cbz	w26, LBB0_4
; %bb.1:
	ldr	w1, [x23, #36]
	cbnz	w1, LBB0_3
; %bb.2:
	ldr	w1, [x23, #32]
LBB0_3:
	mov	x0, x19
	bl	_bio_set_dev
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_bio_set_op_attrs
	b	LBB0_8
LBB0_4:
	ldr	w1, [x23, #32]
	mov	x0, x19
	bl	_bio_set_dev
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_bio_set_op_attrs
	ldr	x8, [x23, #24]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MaxSector@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x8, #8]
	cmp	x9, x22
	cset	w9, le
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	add	x23, x23, #8
	b	LBB0_8
LBB0_7:
	add	x23, x23, #16
LBB0_8:
	ldr	x8, [x23]
	add	x8, x8, x22
	str	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_bio_add_page
	mov	x0, x19
	bl	_submit_bio_wait
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w20, eq
	mov	x0, x19
	bl	_bio_put
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,8,3                  ; @MaxSector
.subsections_via_symbols
