	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zbuf_sfbuf_get
_zbuf_sfbuf_get:                        ## @zbuf_sfbuf_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-4(%rbp), %r8
	movl	$1, %r9d
	callq	_vm_fault_quick_hold_pages
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	-4(%rbp), %edi
	movq	_SFB_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sf_buf_alloc
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	-4(%rbp), %edi
	callq	_zbuf_page_free
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_SFB_NOWAIT,4,2                 ## @SFB_NOWAIT
	.no_dead_strip	_zbuf_sfbuf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zbuf_sfbuf_get
_zbuf_sfbuf_get:                        ; @zbuf_sfbuf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VM_PROT_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VM_PROT_READ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	sub	x4, x29, #4
	mov	w5, #1
	bl	_vm_fault_quick_hold_pages
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldur	w0, [x29, #-4]
Lloh9:
	adrp	x8, _SFB_NOWAIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SFB_NOWAIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_sf_buf_alloc
	cbnz	x0, LBB0_4
; %bb.2:
	ldur	w0, [x29, #-4]
	bl	_zbuf_page_free
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_SFB_NOWAIT,4,2                 ; @SFB_NOWAIT
	.no_dead_strip	_zbuf_sfbuf_get
.subsections_via_symbols
