	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_lpae_alloc_pages
___arm_lpae_alloc_pages:                ## @__arm_lpae_alloc_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	%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
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdx), %r12
	callq	_get_order
	movl	%eax, %r14d
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_VM_BUG_ON
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_dev_to_node
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_2:
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_3:
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_alloc_pages_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, %r14
	cmpl	$0, (%r13)
	jne	LBB0_10
## %bb.5:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_dma_map_single
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_virt_to_phys
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_dma_unmap_single
LBB0_8:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___free_pages
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.comm	_NUMA_NO_NODE,4,2               ## @NUMA_NO_NODE
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot accommodate DMA translation for IOMMU page tables\n"

	.no_dead_strip	___arm_lpae_alloc_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_lpae_alloc_pages
___arm_lpae_alloc_pages:                ; @__arm_lpae_alloc_pages
	.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	x23, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x2, #8]
	bl	_get_order
	mov	x19, x0
Lloh0:
	adrp	x8, ___GFP_HIGHMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_VM_BUG_ON
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_dev_to_node
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _NUMA_NO_NODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUMA_NO_NODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
Lloh6:
	adrp	x8, ___GFP_ZERO@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___GFP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w22
	mov	x2, x19
	bl	_alloc_pages_node
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	bl	_page_address
	mov	x24, x0
	ldr	w8, [x23]
	cbnz	w8, LBB0_10
; %bb.5:
Lloh9:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_dma_map_single
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x24
	bl	_virt_to_phys
	cmp	x23, x0
	b.eq	LBB0_10
; %bb.7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_dma_unmap_single
LBB0_8:
	mov	x0, x22
	mov	x1, x19
	bl	___free_pages
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	_NUMA_NO_NODE,4,2               ; @NUMA_NO_NODE
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot accommodate DMA translation for IOMMU page tables\n"

	.no_dead_strip	___arm_lpae_alloc_pages
.subsections_via_symbols
