	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10fb_allocfb
_a10fb_allocfb:                         ## @a10fb_allocfb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_FB_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VM_MEMATTR_WRITE_COMBINING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movl	$-1, %ecx
	xorl	%r9d, %r9d
	callq	_kmem_alloc_contig
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_pmap_kextract
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_FB_ALIGN,4,2                   ## @FB_ALIGN
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ## @VM_MEMATTR_WRITE_COMBINING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate FB memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_a10fb_allocfb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10fb_allocfb
_a10fb_allocfb:                         ; @a10fb_allocfb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w0, [x0, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x8, _FB_ALIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FB_ALIGN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	w2, #0
	mov	w3, #-1
	mov	w5, #0
	bl	_kmem_alloc_contig
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_pmap_kextract
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #12]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_FB_ALIGN,4,2                   ; @FB_ALIGN
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ; @VM_MEMATTR_WRITE_COMBINING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate FB memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_a10fb_allocfb
.subsections_via_symbols
