	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_iommu_fault_handler        ## -- Begin function msm_iommu_fault_handler
	.p2align	4, 0x90
_msm_iommu_fault_handler:               ## @msm_iommu_fault_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_msm_iommu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	8(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r12, %rdi
	callq	___enable_clocks
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.4:
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.4(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	callq	_GET_FSR
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	callq	_print_ctx_regs
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	movl	$1073741839, %edx               ## imm = 0x4000000F
	callq	_SET_FSR
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	___disable_clocks
LBB0_9:
	movq	_msm_iommu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msm_iommu_lock,4,2             ## @msm_iommu_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid device ID in context interrupt handler\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected IOMMU page fault!\n"

L_.str.2:                               ## @.str.2
	.asciz	"base = %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fault occurred in context %d.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Interesting registers:\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_iommu_fault_handler        ; -- Begin function msm_iommu_fault_handler
	.p2align	2
_msm_iommu_fault_handler:               ; @msm_iommu_fault_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x0, _msm_iommu_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _msm_iommu_lock@GOTPAGEOFF]
	bl	_spin_lock
	cbz	x19, LBB0_7
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	___enable_clocks
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w20, #0
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_GET_FSR
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x20, [sp]
	mov	x0, x21
	bl	_pr_err
	mov	x0, x22
	bl	_pr_err
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_print_ctx_regs
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	w2, #15
	movk	w2, #16384, lsl #16
	bl	_SET_FSR
	b	LBB0_4
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	___disable_clocks
LBB0_9:
Lloh12:
	adrp	x0, _msm_iommu_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _msm_iommu_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_msm_iommu_lock,4,2             ; @msm_iommu_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid device ID in context interrupt handler\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected IOMMU page fault!\n"

l_.str.2:                               ; @.str.2
	.asciz	"base = %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fault occurred in context %d.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Interesting registers:\n"

.subsections_via_symbols
