	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_int_type_0_process
_dfx_int_type_0_process:                ## @dfx_int_type_0_process
	.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	%rdi, %r12
	movq	_PI_PDQ_K_REG_TYPE_0_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	callq	_dfx_port_read_long
	movl	(%rbx), %esi
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	callq	_dfx_port_write_long
	movl	-36(%rbp), %eax
	movq	_PI_TYPE_0_STAT_M_NXM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PI_TYPE_0_STAT_M_PM_PAR_ERR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %esi
	orl	%edx, %esi
	movq	_PI_TYPE_0_STAT_M_BUS_PAR_ERR@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	testl	%eax, %esi
	je	LBB0_9
## %bb.1:
	testl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	-36(%rbp), %eax
	movl	(%r15), %ecx
LBB0_3:
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	movl	-36(%rbp), %eax
LBB0_5:
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
	jmp	LBB0_7
LBB0_9:
	movq	_PI_TYPE_0_STAT_M_XMT_FLUSH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_PI_K_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_dfx_xmt_flush
	movq	_PI_PCTRL_M_XMT_DATA_FLUSH_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dfx_hw_port_ctrl_req
	movl	-36(%rbp), %eax
LBB0_11:
	movq	_PI_TYPE_0_STAT_M_STATE_CHANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.12:
	movq	%r12, %rdi
	callq	_dfx_hw_adap_state_rd
	movq	_PI_STATE_K_HALTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.13:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_printk
	movq	%r12, %rdi
	callq	_dfx_int_pr_halt_id
LBB0_7:
	movq	_PI_K_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	$0, 16(%r12)
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_printk
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dfx_adap_init
	movq	_DFX_K_SUCCESS@GOTPCREL(%rip), %rcx
	movq	8(%r12), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	callq	_printk
	jmp	LBB0_17
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	_printk
	movq	_PI_PDQ_K_REG_HOST_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_dfx_port_write_long
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_PI_STATE_K_LINK_AVAIL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movq	_PI_K_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PI_PDQ_K_REG_TYPE_0_STATUS,4,2 ## @PI_PDQ_K_REG_TYPE_0_STATUS
	.comm	_PI_TYPE_0_STAT_M_NXM,4,2       ## @PI_TYPE_0_STAT_M_NXM
	.comm	_PI_TYPE_0_STAT_M_PM_PAR_ERR,4,2 ## @PI_TYPE_0_STAT_M_PM_PAR_ERR
	.comm	_PI_TYPE_0_STAT_M_BUS_PAR_ERR,4,2 ## @PI_TYPE_0_STAT_M_BUS_PAR_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Non-Existent Memory Access Error\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Packet Memory Parity Error\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Host Bus Parity Error\n"

	.comm	_PI_K_FALSE,8,3                 ## @PI_K_FALSE
L_.str.3:                               ## @.str.3
	.asciz	"%s: Resetting adapter...\n"

	.comm	_DFX_K_SUCCESS,8,3              ## @DFX_K_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"%s: Adapter reset failed!  Disabling adapter interrupts.\n"

	.comm	_PI_PDQ_K_REG_HOST_INT_ENB,4,2  ## @PI_PDQ_K_REG_HOST_INT_ENB
	.comm	_PI_HOST_INT_K_DISABLE_ALL_INTS,4,2 ## @PI_HOST_INT_K_DISABLE_ALL_INTS
L_.str.5:                               ## @.str.5
	.asciz	"%s: Adapter reset successful!\n"

	.comm	_PI_TYPE_0_STAT_M_XMT_FLUSH,4,2 ## @PI_TYPE_0_STAT_M_XMT_FLUSH
	.comm	_PI_PCTRL_M_XMT_DATA_FLUSH_DONE,4,2 ## @PI_PCTRL_M_XMT_DATA_FLUSH_DONE
	.comm	_PI_TYPE_0_STAT_M_STATE_CHANGE,4,2 ## @PI_TYPE_0_STAT_M_STATE_CHANGE
	.comm	_PI_STATE_K_HALTED,4,2          ## @PI_STATE_K_HALTED
L_.str.6:                               ## @.str.6
	.asciz	"%s: Controller has transitioned to HALTED state!\n"

	.comm	_PI_STATE_K_LINK_AVAIL,4,2      ## @PI_STATE_K_LINK_AVAIL
	.comm	_PI_K_TRUE,8,3                  ## @PI_K_TRUE
	.no_dead_strip	_dfx_int_type_0_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_int_type_0_process
_dfx_int_type_0_process:                ; @dfx_int_type_0_process
	.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, x0
Lloh0:
	adrp	x20, _PI_PDQ_K_REG_TYPE_0_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PI_PDQ_K_REG_TYPE_0_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_dfx_port_read_long
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_dfx_port_write_long
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _PI_TYPE_0_STAT_M_NXM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PI_TYPE_0_STAT_M_NXM@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
Lloh5:
	adrp	x21, _PI_TYPE_0_STAT_M_PM_PAR_ERR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PI_TYPE_0_STAT_M_PM_PAR_ERR@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w11, w9, w10
Lloh7:
	adrp	x20, _PI_TYPE_0_STAT_M_BUS_PAR_ERR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PI_TYPE_0_STAT_M_BUS_PAR_ERR@GOTPAGEOFF]
	ldr	w12, [x20]
	orr	w11, w11, w12
	tst	w11, w8
	b.eq	LBB0_7
; %bb.1:
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
LBB0_3:
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	w8, [sp, #12]
LBB0_5:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x9, _PI_TYPE_0_STAT_M_XMT_FLUSH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PI_TYPE_0_STAT_M_XMT_FLUSH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _PI_K_FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PI_K_FALSE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_dfx_xmt_flush
Lloh21:
	adrp	x8, _PI_PCTRL_M_XMT_DATA_FLUSH_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PI_PCTRL_M_XMT_DATA_FLUSH_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_dfx_hw_port_ctrl_req
	ldr	w8, [sp, #12]
LBB0_9:
Lloh24:
	adrp	x9, _PI_TYPE_0_STAT_M_STATE_CHANGE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PI_TYPE_0_STAT_M_STATE_CHANGE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_dfx_hw_adap_state_rd
Lloh27:
	adrp	x8, _PI_STATE_K_HALTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PI_STATE_K_HALTED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printk
	mov	x0, x19
	bl	_dfx_int_pr_halt_id
LBB0_12:
Lloh32:
	adrp	x8, _PI_K_FALSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PI_K_FALSE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	mov	x0, x19
	mov	w1, #0
	bl	_dfx_adap_init
Lloh37:
	adrp	x8, _DFX_K_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DFX_K_SUCCESS@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w1, [x9]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
	b	LBB0_15
LBB0_14:
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
Lloh44:
	adrp	x8, _PI_PDQ_K_REG_HOST_INT_ENB@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PI_PDQ_K_REG_HOST_INT_ENB@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dfx_port_write_long
LBB0_15:
	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
LBB0_16:
Lloh50:
	adrp	x8, _PI_STATE_K_LINK_AVAIL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PI_STATE_K_LINK_AVAIL@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.17:
Lloh53:
	adrp	x8, _PI_K_TRUE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PI_K_TRUE@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_PI_PDQ_K_REG_TYPE_0_STATUS,4,2 ; @PI_PDQ_K_REG_TYPE_0_STATUS
	.comm	_PI_TYPE_0_STAT_M_NXM,4,2       ; @PI_TYPE_0_STAT_M_NXM
	.comm	_PI_TYPE_0_STAT_M_PM_PAR_ERR,4,2 ; @PI_TYPE_0_STAT_M_PM_PAR_ERR
	.comm	_PI_TYPE_0_STAT_M_BUS_PAR_ERR,4,2 ; @PI_TYPE_0_STAT_M_BUS_PAR_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Non-Existent Memory Access Error\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Packet Memory Parity Error\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Host Bus Parity Error\n"

	.comm	_PI_K_FALSE,8,3                 ; @PI_K_FALSE
l_.str.3:                               ; @.str.3
	.asciz	"%s: Resetting adapter...\n"

	.comm	_DFX_K_SUCCESS,8,3              ; @DFX_K_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"%s: Adapter reset failed!  Disabling adapter interrupts.\n"

	.comm	_PI_PDQ_K_REG_HOST_INT_ENB,4,2  ; @PI_PDQ_K_REG_HOST_INT_ENB
	.comm	_PI_HOST_INT_K_DISABLE_ALL_INTS,4,2 ; @PI_HOST_INT_K_DISABLE_ALL_INTS
l_.str.5:                               ; @.str.5
	.asciz	"%s: Adapter reset successful!\n"

	.comm	_PI_TYPE_0_STAT_M_XMT_FLUSH,4,2 ; @PI_TYPE_0_STAT_M_XMT_FLUSH
	.comm	_PI_PCTRL_M_XMT_DATA_FLUSH_DONE,4,2 ; @PI_PCTRL_M_XMT_DATA_FLUSH_DONE
	.comm	_PI_TYPE_0_STAT_M_STATE_CHANGE,4,2 ; @PI_TYPE_0_STAT_M_STATE_CHANGE
	.comm	_PI_STATE_K_HALTED,4,2          ; @PI_STATE_K_HALTED
l_.str.6:                               ; @.str.6
	.asciz	"%s: Controller has transitioned to HALTED state!\n"

	.comm	_PI_STATE_K_LINK_AVAIL,4,2      ; @PI_STATE_K_LINK_AVAIL
	.comm	_PI_K_TRUE,8,3                  ; @PI_K_TRUE
	.no_dead_strip	_dfx_int_type_0_process
.subsections_via_symbols
