	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spd_fill_page
_spd_fill_page:                         ## @spd_fill_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	%ecx, -44(%rbp)
	movq	(%rdi), %rax
	movq	_PIPE_BUFFERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	16(%rbp), %r8
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_linear_to_page
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_get_page
LBB0_4:
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	movq	%r15, (%rcx,%rax,8)
	movl	(%r12), %ecx
	movq	8(%r13), %rdx
	movl	%ecx, (%rdx,%rax,8)
	movl	-44(%rbp), %ecx
	movl	%ecx, 4(%rdx,%rax,8)
	incq	%rax
	movq	%rax, (%r13)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_BUFFERS,8,3               ## @PIPE_BUFFERS
	.no_dead_strip	_spd_fill_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spd_fill_page
_spd_fill_page:                         ; @spd_fill_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x6
	mov	x24, x5
	mov	x23, x4
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	w3, [sp, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PIPE_BUFFERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIPE_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	cbz	w24, LBB0_4
; %bb.3:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x3, x23
	mov	x4, x22
	bl	_linear_to_page
	mov	x21, x0
	cbnz	x0, LBB0_5
	b	LBB0_1
LBB0_4:
	mov	x0, x21
	bl	_get_page
LBB0_5:
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	lsl	x10, x9, #3
	str	x21, [x8, x10]
	ldr	w8, [x20]
	ldr	x11, [x19, #8]
	add	x10, x11, x10
	str	w8, [x10]
	ldr	w8, [sp, #12]
	str	w8, [x10, #4]
	add	x8, x9, #1
	str	x8, [x19]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_BUFFERS,8,3               ; @PIPE_BUFFERS
	.no_dead_strip	_spd_fill_page
.subsections_via_symbols
