	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmmu_domain_init_context
_ipmmu_domain_init_context:             ## @ipmmu_domain_init_context
	.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
	movq	_IO_PGTABLE_QUIRK_ARM_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_SZ_1G@GOTPCREL(%rip), %rax
	movq	_SZ_2M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rdi)
	movabsq	$171798691872, %rax             ## imm = 0x2800000020
	movq	%rax, 28(%rdi)
	movq	_ipmmu_flush_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rdi)
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movl	%eax, 68(%rbx)
	movl	$1, 64(%rbx)
	movl	$0, 36(%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rsi
	callq	_ipmmu_domain_allocate_context
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	24(%rbx), %rsi
	movl	%eax, (%rbx)
	movq	_ARM_32_LPAE_S1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rdx
	callq	_alloc_io_pgtable_ops
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_ipmmu_domain_setup_context
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	callq	_ipmmu_domain_free_context
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ## @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_SZ_1G,4,2                      ## @SZ_1G
	.comm	_SZ_2M,4,2                      ## @SZ_2M
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.comm	_ipmmu_flush_ops,4,2            ## @ipmmu_flush_ops
	.comm	_ARM_32_LPAE_S1,4,2             ## @ARM_32_LPAE_S1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ipmmu_domain_init_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ipmmu_domain_init_context
lCPI0_0:
	.long	32                              ; 0x20
	.long	40                              ; 0x28
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ipmmu_domain_init_context:             ; @ipmmu_domain_init_context
	.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, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SZ_1G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SZ_1G@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SZ_2M@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SZ_2M@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _SZ_4K@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SZ_4K@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x20, x0
	str	w9, [x20, #24]!
	str	w8, [x0, #56]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x0, #28]
Lloh14:
	adrp	x8, _ipmmu_flush_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ipmmu_flush_ops@GOTPAGEOFF]
	str	x8, [x0, #48]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	w8, #1
	stp	w8, w0, [x19, #64]
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	stp	wzr, w8, [x19, #36]
	mov	x1, x19
	bl	_ipmmu_domain_allocate_context
	tbnz	w0, #31, LBB0_4
; %bb.1:
	str	w0, [x19]
Lloh16:
	adrp	x8, _ARM_32_LPAE_S1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARM_32_LPAE_S1@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_alloc_io_pgtable_ops
	str	w0, [x19, #16]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ipmmu_domain_setup_context
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w1, [x19]
	bl	_ipmmu_domain_free_context
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ; @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_SZ_1G,4,2                      ; @SZ_1G
	.comm	_SZ_2M,4,2                      ; @SZ_2M
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.comm	_ipmmu_flush_ops,4,2            ; @ipmmu_flush_ops
	.comm	_ARM_32_LPAE_S1,4,2             ; @ARM_32_LPAE_S1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ipmmu_domain_init_context
.subsections_via_symbols
