	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_qp_aff_irq_handler
_ehea_qp_aff_irq_handler:               ## @ehea_qp_aff_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	(%rsi), %edi
	callq	_ehea_poll_eq
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_EHEA_AER_RESTYPE_QP@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EHEA_EQE_QP_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_EHEA_BMASK_GET
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rax
	movl	4(%r13), %edi
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_ehea_error_data
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EHEA_AER_RESET_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -56(%rbp)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EHEA_AERR_RESET_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -48(%rbp)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	callq	_ehea_poll_eq
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r13, %rdi
	callq	_ehea_schedule_port_reset
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_EQE_QP_TOKEN,4,2          ## @EHEA_EQE_QP_TOKEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QP aff_err: entry=0x%llx, token=0x%x\n"

	.comm	_EHEA_AER_RESTYPE_QP,8,3        ## @EHEA_AER_RESTYPE_QP
	.comm	_EHEA_AER_RESET_MASK,8,3        ## @EHEA_AER_RESET_MASK
	.comm	_EHEA_AERR_RESET_MASK,8,3       ## @EHEA_AERR_RESET_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Resetting port\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ehea_qp_aff_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_qp_aff_irq_handler
_ehea_qp_aff_irq_handler:               ; @ehea_qp_aff_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	w0, [x1]
	bl	_ehea_poll_eq
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _EHEA_EQE_QP_TOKEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EHEA_EQE_QP_TOKEN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EHEA_AER_RESTYPE_QP@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EHEA_AER_RESTYPE_QP@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _EHEA_AER_RESET_MASK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EHEA_AER_RESET_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EHEA_AERR_RESET_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EHEA_AERR_RESET_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x21]
	bl	_EHEA_BMASK_GET
	mov	x22, x0
	ldr	w8, [x21]
	stp	x8, x0, [sp]
	mov	x0, x20
	bl	_pr_err
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x19, #4]
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_ehea_error_data
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x26]
	tst	x9, x8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x27]
	tst	x9, x8
	b.eq	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #1
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	bl	_ehea_poll_eq
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.7:
	cbz	w23, LBB0_9
; %bb.8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_ehea_schedule_port_reset
LBB0_9:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_EQE_QP_TOKEN,4,2          ; @EHEA_EQE_QP_TOKEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP aff_err: entry=0x%llx, token=0x%x\n"

	.comm	_EHEA_AER_RESTYPE_QP,8,3        ; @EHEA_AER_RESTYPE_QP
	.comm	_EHEA_AER_RESET_MASK,8,3        ; @EHEA_AER_RESET_MASK
	.comm	_EHEA_AERR_RESET_MASK,8,3       ; @EHEA_AERR_RESET_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Resetting port\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ehea_qp_aff_irq_handler
.subsections_via_symbols
