	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_mmu_pages
_alloc_mmu_pages:                       ## @alloc_mmu_pages
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ASSERT
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_DMA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, (%rbx)
	movq	_INVALID_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	%ecx, 8(%rax)
	movl	%ecx, 12(%rax)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_free_mmu_pages
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_DMA32,4,2                ## @__GFP_DMA32
	.comm	_INVALID_PAGE,4,2               ## @INVALID_PAGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_mmu_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_mmu_pages
_alloc_mmu_pages:                       ; @alloc_mmu_pages
	.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
	bl	_ASSERT
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_DMA32@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_DMA32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	cbz	x0, LBB0_2
; %bb.1:
	bl	_page_address
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
Lloh6:
	adrp	x9, _INVALID_PAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INVALID_PAGE@GOTPAGEOFF]
	ldr	w10, [x9]
	str	w10, [x8]
	ldr	w9, [x9]
	stp	w9, w9, [x8, #4]
	str	w9, [x8, #12]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_free_mmu_pages
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_DMA32,4,2                ; @__GFP_DMA32
	.comm	_INVALID_PAGE,4,2               ; @INVALID_PAGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_mmu_pages
.subsections_via_symbols
