	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmmu_domain_setup_context
_ipmmu_domain_setup_context:            ## @ipmmu_domain_setup_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	movq	_IMTTLBR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ipmmu_ctx_write_root
	movq	_IMTTUBR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipmmu_ctx_write_root
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_IMTTBCR_SL0_LVL_1@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_IMTTBCR_SL0_TWOBIT_LVL_1@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	_IMTTBCR_SH0_INNER_SHAREABLE@GOTPCREL(%rip), %rax
	movq	_IMTTBCR_ORGN0_WB_WA@GOTPCREL(%rip), %rcx
	movq	_IMTTBCR_IRGN0_WB_WA@GOTPCREL(%rip), %rsi
	orl	(%rax), %edx
	orl	(%rcx), %edx
	orl	(%rsi), %edx
LBB0_5:
	movq	_IMTTBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IMTTBCR_EAE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ipmmu_ctx_write_root
	movq	_IMMAIR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ipmmu_ctx_write_root
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_IMBUSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipmmu_ctx_read_root
	movq	_IMBUSCR_DVM@GOTPCREL(%rip), %rcx
	movq	_IMBUSCR_BUSSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipmmu_ctx_write_root
LBB0_7:
	movq	_IMSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipmmu_ctx_read_root
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ipmmu_ctx_write_root
	movq	_IMCTR@GOTPCREL(%rip), %rax
	movq	_IMCTR_INTEN@GOTPCREL(%rip), %rcx
	movq	_IMCTR_FLUSH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_IMCTR_MMUEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ipmmu_ctx_write_all            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMTTLBR0,4,2                   ## @IMTTLBR0
	.comm	_IMTTUBR0,4,2                   ## @IMTTUBR0
	.comm	_IMTTBCR_SL0_TWOBIT_LVL_1,4,2   ## @IMTTBCR_SL0_TWOBIT_LVL_1
	.comm	_IMTTBCR_SL0_LVL_1,4,2          ## @IMTTBCR_SL0_LVL_1
	.comm	_IMTTBCR_SH0_INNER_SHAREABLE,4,2 ## @IMTTBCR_SH0_INNER_SHAREABLE
	.comm	_IMTTBCR_ORGN0_WB_WA,4,2        ## @IMTTBCR_ORGN0_WB_WA
	.comm	_IMTTBCR_IRGN0_WB_WA,4,2        ## @IMTTBCR_IRGN0_WB_WA
	.comm	_IMTTBCR,4,2                    ## @IMTTBCR
	.comm	_IMTTBCR_EAE,4,2                ## @IMTTBCR_EAE
	.comm	_IMMAIR0,4,2                    ## @IMMAIR0
	.comm	_IMBUSCR,4,2                    ## @IMBUSCR
	.comm	_IMBUSCR_DVM,4,2                ## @IMBUSCR_DVM
	.comm	_IMBUSCR_BUSSEL_MASK,4,2        ## @IMBUSCR_BUSSEL_MASK
	.comm	_IMSTR,4,2                      ## @IMSTR
	.comm	_IMCTR,4,2                      ## @IMCTR
	.comm	_IMCTR_INTEN,4,2                ## @IMCTR_INTEN
	.comm	_IMCTR_FLUSH,4,2                ## @IMCTR_FLUSH
	.comm	_IMCTR_MMUEN,4,2                ## @IMCTR_MMUEN
	.no_dead_strip	_ipmmu_domain_setup_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmmu_domain_setup_context
_ipmmu_domain_setup_context:            ; @ipmmu_domain_setup_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
	ldr	x8, [x0, #8]
	ldr	w2, [x8]
Lloh0:
	adrp	x8, _IMTTLBR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMTTLBR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ipmmu_ctx_write_root
Lloh3:
	adrp	x8, _IMTTUBR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMTTUBR0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmmu_ctx_write_root
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _IMTTBCR_SL0_LVL_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMTTBCR_SL0_LVL_1@GOTPAGEOFF]
Lloh8:
	adrp	x10, _IMTTBCR_SL0_TWOBIT_LVL_1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IMTTBCR_SL0_TWOBIT_LVL_1@GOTPAGEOFF]
	ldr	x8, [x8]
	ldp	x12, x11, [x8, #8]
	cmp	x11, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	cbz	x12, LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _IMTTBCR_SH0_INNER_SHAREABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IMTTBCR_SH0_INNER_SHAREABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _IMTTBCR_ORGN0_WB_WA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IMTTBCR_ORGN0_WB_WA@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _IMTTBCR_IRGN0_WB_WA@GOTPAGE
Lloh17:
	ldr	x11, [x11, _IMTTBCR_IRGN0_WB_WA@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
LBB0_2:
Lloh19:
	adrp	x9, _IMTTBCR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IMTTBCR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
Lloh22:
	adrp	x9, _IMTTBCR_EAE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IMTTBCR_EAE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ipmmu_ctx_write_root
Lloh25:
	adrp	x8, _IMMAIR0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IMMAIR0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ipmmu_ctx_write_root
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh28:
	adrp	x8, _IMBUSCR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IMBUSCR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ipmmu_ctx_read_root
Lloh31:
	adrp	x8, _IMBUSCR_DVM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IMBUSCR_DVM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _IMBUSCR_BUSSEL_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IMBUSCR_BUSSEL_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_ipmmu_ctx_write_root
LBB0_4:
Lloh37:
	adrp	x8, _IMSTR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IMSTR@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ipmmu_ctx_read_root
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ipmmu_ctx_write_root
Lloh40:
	adrp	x8, _IMCTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IMCTR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _IMCTR_INTEN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IMCTR_INTEN@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _IMCTR_FLUSH@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IMCTR_FLUSH@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
Lloh49:
	adrp	x10, _IMCTR_MMUEN@GOTPAGE
Lloh50:
	ldr	x10, [x10, _IMCTR_MMUEN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh51:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipmmu_ctx_write_all
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IMTTLBR0,4,2                   ; @IMTTLBR0
	.comm	_IMTTUBR0,4,2                   ; @IMTTUBR0
	.comm	_IMTTBCR_SL0_TWOBIT_LVL_1,4,2   ; @IMTTBCR_SL0_TWOBIT_LVL_1
	.comm	_IMTTBCR_SL0_LVL_1,4,2          ; @IMTTBCR_SL0_LVL_1
	.comm	_IMTTBCR_SH0_INNER_SHAREABLE,4,2 ; @IMTTBCR_SH0_INNER_SHAREABLE
	.comm	_IMTTBCR_ORGN0_WB_WA,4,2        ; @IMTTBCR_ORGN0_WB_WA
	.comm	_IMTTBCR_IRGN0_WB_WA,4,2        ; @IMTTBCR_IRGN0_WB_WA
	.comm	_IMTTBCR,4,2                    ; @IMTTBCR
	.comm	_IMTTBCR_EAE,4,2                ; @IMTTBCR_EAE
	.comm	_IMMAIR0,4,2                    ; @IMMAIR0
	.comm	_IMBUSCR,4,2                    ; @IMBUSCR
	.comm	_IMBUSCR_DVM,4,2                ; @IMBUSCR_DVM
	.comm	_IMBUSCR_BUSSEL_MASK,4,2        ; @IMBUSCR_BUSSEL_MASK
	.comm	_IMSTR,4,2                      ; @IMSTR
	.comm	_IMCTR,4,2                      ; @IMCTR
	.comm	_IMCTR_INTEN,4,2                ; @IMCTR_INTEN
	.comm	_IMCTR_FLUSH,4,2                ; @IMCTR_FLUSH
	.comm	_IMCTR_MMUEN,4,2                ; @IMCTR_MMUEN
	.no_dead_strip	_ipmmu_domain_setup_context
.subsections_via_symbols
