	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_v7s_alloc_table
___arm_v7s_alloc_table:                 ## @__arm_v7s_alloc_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	16(%rdx), %rbx
	callq	_ARM_V7S_TABLE_SIZE
	cmpl	$1, %r12d
	jne	LBB0_2
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	___GFP_ZERO@GOTPCREL(%rip), %rdx
	movq	_ARM_V7S_TABLE_GFP_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_get_order
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___get_free_pages
	jmp	LBB0_5
LBB0_2:
	cmpl	$2, %r12d
	jne	LBB0_3
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_kmem_cache_zalloc
LBB0_5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_virt_to_phys
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	cmpl	$0, 8(%r14)
	je	LBB0_7
LBB0_9:
	cmpl	$2, %r12d
	jne	LBB0_16
## %bb.10:
	movq	%r15, %rdi
	callq	_kmemleak_ignore
	jmp	LBB0_16
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_virt_to_phys
	jmp	LBB0_16
LBB0_7:
	movq	%rax, %r13
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_map_single
	movq	%rbx, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	cmpl	$1, %r12d
	jne	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_order
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_free_pages
	jmp	LBB0_15
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r13, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_unmap_single
	cmpl	$1, %r12d
	je	LBB0_13
LBB0_14:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_kmem_cache_free
LBB0_15:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ARM_V7S_TABLE_GFP_DMA,4,2      ## @ARM_V7S_TABLE_GFP_DMA
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Cannot accommodate DMA translation for IOMMU page tables\n"

	.no_dead_strip	___arm_v7s_alloc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_v7s_alloc_table
___arm_v7s_alloc_table:                 ; @__arm_v7s_alloc_table
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x2, #16]
	bl	_ARM_V7S_TABLE_SIZE
	mov	x21, x0
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, ___GFP_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ARM_V7S_TABLE_GFP_DMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARM_V7S_TABLE_GFP_DMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x21
	bl	_get_order
	mov	x1, x0
	mov	x0, x22
	bl	___get_free_pages
	b	LBB0_4
LBB0_2:
	cmp	w20, #2
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_kmem_cache_zalloc
LBB0_4:
	mov	x22, x0
	bl	_virt_to_phys
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
LBB0_6:
	cmp	w20, #2
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x22
	bl	_kmemleak_ignore
	b	LBB0_16
LBB0_8:
	mov	x0, #0
	bl	_virt_to_phys
	b	LBB0_15
LBB0_9:
	mov	x24, x0
Lloh6:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_dma_map_single
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	bl	_dma_mapping_error
	cbz	x0, LBB0_12
; %bb.10:
	cmp	w20, #1
	b.ne	LBB0_14
LBB0_11:
	mov	x0, x21
	bl	_get_order
	mov	x1, x0
	mov	x0, x22
	bl	_free_pages
	b	LBB0_15
LBB0_12:
	cmp	x25, x24
	b.eq	LBB0_6
; %bb.13:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	ldr	w3, [x26]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x21
	bl	_dma_unmap_single
	cmp	w20, #1
	b.eq	LBB0_11
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_kmem_cache_free
LBB0_15:
	mov	x22, #0
LBB0_16:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ARM_V7S_TABLE_GFP_DMA,4,2      ; @ARM_V7S_TABLE_GFP_DMA
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Cannot accommodate DMA translation for IOMMU page tables\n"

	.no_dead_strip	___arm_v7s_alloc_table
.subsections_via_symbols
