	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_tlb_inv_context
_arm_smmu_tlb_inv_context:              ## @arm_smmu_tlb_inv_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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	(%rdi), %rax
	movq	_ARM_SMMU_DOMAIN_S1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_CMDQ_OP_TLBI_NH_ASID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%rbx), %ecx
	movl	%ecx, -32(%rbp)
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	_CMDQ_OP_TLBI_S12_VMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
LBB0_3:
	movl	%eax, -24(%rbp)
	movq	%rcx, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_arm_smmu_cmdq_issue_cmd
	movq	%r14, %rdi
	callq	_arm_smmu_cmdq_issue_sync
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_arm_smmu_atc_inv_domain
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_SMMU_DOMAIN_S1,8,3         ## @ARM_SMMU_DOMAIN_S1
	.comm	_CMDQ_OP_TLBI_NH_ASID,4,2       ## @CMDQ_OP_TLBI_NH_ASID
	.comm	_CMDQ_OP_TLBI_S12_VMALL,4,2     ## @CMDQ_OP_TLBI_S12_VMALL
	.no_dead_strip	_arm_smmu_tlb_inv_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_tlb_inv_context
_arm_smmu_tlb_inv_context:              ; @arm_smmu_tlb_inv_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ARM_SMMU_DOMAIN_S1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARM_SMMU_DOMAIN_S1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x9, _CMDQ_OP_TLBI_NH_ASID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMDQ_OP_TLBI_NH_ASID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	str	w10, [sp, #16]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _CMDQ_OP_TLBI_S12_VMALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMDQ_OP_TLBI_S12_VMALL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x19, #8]
LBB0_3:
	str	w9, [sp, #24]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_arm_smmu_cmdq_issue_cmd
	mov	x0, x20
	bl	_arm_smmu_cmdq_issue_sync
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_arm_smmu_atc_inv_domain
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_SMMU_DOMAIN_S1,8,3         ; @ARM_SMMU_DOMAIN_S1
	.comm	_CMDQ_OP_TLBI_NH_ASID,4,2       ; @CMDQ_OP_TLBI_NH_ASID
	.comm	_CMDQ_OP_TLBI_S12_VMALL,4,2     ; @CMDQ_OP_TLBI_S12_VMALL
	.no_dead_strip	_arm_smmu_tlb_inv_context
.subsections_via_symbols
