	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_gerror_handler
_arm_smmu_gerror_handler:               ## @arm_smmu_gerror_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, %r15
	movq	_ARM_SMMU_GERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movq	_ARM_SMMU_GERRORN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	xorl	%r14d, %ebx
	movq	_GERROR_ERR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_GERROR_SFM_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_arm_smmu_device_disable
LBB0_4:
	movq	_GERROR_MSI_GERROR_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_6:
	movq	_GERROR_MSI_PRIQ_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_8:
	movq	_GERROR_MSI_EVTQ_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	8(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_10:
	movq	_GERROR_MSI_CMDQ_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movl	8(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_12:
	movq	_GERROR_PRIQ_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	8(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
LBB0_14:
	movq	_GERROR_EVTQ_ABT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.15:
	movl	8(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
LBB0_16:
	movq	_GERROR_CMDQ_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_arm_smmu_cmdq_skip_err
LBB0_18:
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_SMMU_GERROR,8,3            ## @ARM_SMMU_GERROR
	.comm	_ARM_SMMU_GERRORN,8,3           ## @ARM_SMMU_GERRORN
	.comm	_GERROR_ERR_MASK,4,2            ## @GERROR_ERR_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected global error reported (0x%08x), this could be serious\n"

	.comm	_GERROR_SFM_ERR,4,2             ## @GERROR_SFM_ERR
L_.str.1:                               ## @.str.1
	.asciz	"device has entered Service Failure Mode!\n"

	.comm	_GERROR_MSI_GERROR_ABT_ERR,4,2  ## @GERROR_MSI_GERROR_ABT_ERR
L_.str.2:                               ## @.str.2
	.asciz	"GERROR MSI write aborted\n"

	.comm	_GERROR_MSI_PRIQ_ABT_ERR,4,2    ## @GERROR_MSI_PRIQ_ABT_ERR
L_.str.3:                               ## @.str.3
	.asciz	"PRIQ MSI write aborted\n"

	.comm	_GERROR_MSI_EVTQ_ABT_ERR,4,2    ## @GERROR_MSI_EVTQ_ABT_ERR
L_.str.4:                               ## @.str.4
	.asciz	"EVTQ MSI write aborted\n"

	.comm	_GERROR_MSI_CMDQ_ABT_ERR,4,2    ## @GERROR_MSI_CMDQ_ABT_ERR
L_.str.5:                               ## @.str.5
	.asciz	"CMDQ MSI write aborted\n"

	.comm	_GERROR_PRIQ_ABT_ERR,4,2        ## @GERROR_PRIQ_ABT_ERR
L_.str.6:                               ## @.str.6
	.asciz	"PRIQ write aborted -- events may have been lost\n"

	.comm	_GERROR_EVTQ_ABT_ERR,4,2        ## @GERROR_EVTQ_ABT_ERR
L_.str.7:                               ## @.str.7
	.asciz	"EVTQ write aborted -- events may have been lost\n"

	.comm	_GERROR_CMDQ_ERR,4,2            ## @GERROR_CMDQ_ERR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_arm_smmu_gerror_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_gerror_handler
_arm_smmu_gerror_handler:               ; @arm_smmu_gerror_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ARM_SMMU_GERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARM_SMMU_GERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x21, _ARM_SMMU_GERRORN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ARM_SMMU_GERRORN@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	eor	w22, w0, w20
Lloh5:
	adrp	x8, _GERROR_ERR_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GERROR_ERR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w22, w8
	b.eq	LBB0_18
; %bb.1:
	ldr	w0, [x19, #8]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh10:
	adrp	x8, _GERROR_SFM_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GERROR_SFM_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_arm_smmu_device_disable
LBB0_3:
Lloh15:
	adrp	x8, _GERROR_MSI_GERROR_ABT_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GERROR_MSI_GERROR_ABT_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_5:
Lloh20:
	adrp	x8, _GERROR_MSI_PRIQ_ABT_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GERROR_MSI_PRIQ_ABT_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_7:
Lloh25:
	adrp	x8, _GERROR_MSI_EVTQ_ABT_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GERROR_MSI_EVTQ_ABT_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_warn
LBB0_9:
Lloh30:
	adrp	x8, _GERROR_MSI_CMDQ_ABT_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GERROR_MSI_CMDQ_ABT_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
LBB0_11:
Lloh35:
	adrp	x8, _GERROR_PRIQ_ABT_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GERROR_PRIQ_ABT_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19, #8]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
LBB0_13:
Lloh40:
	adrp	x8, _GERROR_EVTQ_ABT_ERR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GERROR_EVTQ_ABT_ERR@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x19, #8]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
LBB0_15:
Lloh45:
	adrp	x8, _GERROR_CMDQ_ERR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _GERROR_CMDQ_ERR@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_arm_smmu_cmdq_skip_err
LBB0_17:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh48:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh50:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_SMMU_GERROR,8,3            ; @ARM_SMMU_GERROR
	.comm	_ARM_SMMU_GERRORN,8,3           ; @ARM_SMMU_GERRORN
	.comm	_GERROR_ERR_MASK,4,2            ; @GERROR_ERR_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected global error reported (0x%08x), this could be serious\n"

	.comm	_GERROR_SFM_ERR,4,2             ; @GERROR_SFM_ERR
l_.str.1:                               ; @.str.1
	.asciz	"device has entered Service Failure Mode!\n"

	.comm	_GERROR_MSI_GERROR_ABT_ERR,4,2  ; @GERROR_MSI_GERROR_ABT_ERR
l_.str.2:                               ; @.str.2
	.asciz	"GERROR MSI write aborted\n"

	.comm	_GERROR_MSI_PRIQ_ABT_ERR,4,2    ; @GERROR_MSI_PRIQ_ABT_ERR
l_.str.3:                               ; @.str.3
	.asciz	"PRIQ MSI write aborted\n"

	.comm	_GERROR_MSI_EVTQ_ABT_ERR,4,2    ; @GERROR_MSI_EVTQ_ABT_ERR
l_.str.4:                               ; @.str.4
	.asciz	"EVTQ MSI write aborted\n"

	.comm	_GERROR_MSI_CMDQ_ABT_ERR,4,2    ; @GERROR_MSI_CMDQ_ABT_ERR
l_.str.5:                               ; @.str.5
	.asciz	"CMDQ MSI write aborted\n"

	.comm	_GERROR_PRIQ_ABT_ERR,4,2        ; @GERROR_PRIQ_ABT_ERR
l_.str.6:                               ; @.str.6
	.asciz	"PRIQ write aborted -- events may have been lost\n"

	.comm	_GERROR_EVTQ_ABT_ERR,4,2        ; @GERROR_EVTQ_ABT_ERR
l_.str.7:                               ; @.str.7
	.asciz	"EVTQ write aborted -- events may have been lost\n"

	.comm	_GERROR_CMDQ_ERR,4,2            ; @GERROR_CMDQ_ERR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_arm_smmu_gerror_handler
.subsections_via_symbols
