	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aer_irq
_aer_irq:                               ## @aer_irq
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_get_service_data
	movq	%rax, %r14
	movq	8(%rax), %r15
	movq	$0, -40(%rbp)
	movslq	(%r15), %rbx
	movq	_PCI_ERR_ROOT_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movq	_PCI_ERR_ROOT_UNCOR_RCV@GOTPCREL(%rip), %rax
	movq	_PCI_ERR_ROOT_COR_RCV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -40(%rbp)
	je	LBB0_1
## %bb.2:
	movq	_PCI_ERR_ROOT_ERR_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	addq	(%r12), %rbx
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pci_write_config_dword
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_kfifo_put
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERR_ROOT_STATUS,8,3        ## @PCI_ERR_ROOT_STATUS
	.comm	_PCI_ERR_ROOT_UNCOR_RCV,4,2     ## @PCI_ERR_ROOT_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_COR_RCV,4,2       ## @PCI_ERR_ROOT_COR_RCV
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_PCI_ERR_ROOT_ERR_SRC,8,3       ## @PCI_ERR_ROOT_ERR_SRC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_aer_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aer_irq
_aer_irq:                               ; @aer_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x0, x1
	bl	_get_service_data
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	xzr, [sp, #8]
	ldrsw	x21, [x20]
Lloh0:
	adrp	x22, _PCI_ERR_ROOT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_ERR_ROOT_STATUS@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x21
	add	x23, sp, #8
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_dword
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _PCI_ERR_ROOT_UNCOR_RCV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_ERR_ROOT_UNCOR_RCV@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _PCI_ERR_ROOT_COR_RCV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCI_ERR_ROOT_COR_RCV@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _PCI_ERR_ROOT_ERR_SRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_ERR_ROOT_ERR_SRC@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x21
	orr	x2, x23, #0x4
	mov	x0, x20
	bl	_pci_read_config_dword
	ldr	x8, [x22]
	add	x1, x8, x21
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_pci_write_config_dword
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_kfifo_put
Lloh11:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh13:
	adrp	x9, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQ_HANDLED@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERR_ROOT_STATUS,8,3        ; @PCI_ERR_ROOT_STATUS
	.comm	_PCI_ERR_ROOT_UNCOR_RCV,4,2     ; @PCI_ERR_ROOT_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_COR_RCV,4,2       ; @PCI_ERR_ROOT_COR_RCV
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_PCI_ERR_ROOT_ERR_SRC,8,3       ; @PCI_ERR_ROOT_ERR_SRC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_aer_irq
.subsections_via_symbols
