	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_hw_error
_sky2_hw_error:                         ## @sky2_hw_error
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	%esi, %r13d
	movq	(%rax,%r13,8), %r14
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_info
LBB0_2:
	movq	_Y2_IS_PAR_RD1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_5:
	movq	_B3_RI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_RAM_BUFFER
	movq	_RI_CLR_RD_PERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write16
LBB0_6:
	movq	_Y2_IS_PAR_WR1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_9:
	movq	_B3_RI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_RAM_BUFFER
	movq	_RI_CLR_WR_PERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write16
LBB0_10:
	movq	_Y2_IS_PAR_MAC1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_13:
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	movq	_GMF_CLI_TX_PE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
LBB0_14:
	movq	_Y2_IS_PAR_RX1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.15:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_17:
	movq	_rxqaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	_BMU_CLR_IRQ_PAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
LBB0_18:
	movq	_Y2_IS_TCP_TXA1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_22
## %bb.19:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_21:
	movq	_txqaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	_BMU_CLR_IRQ_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write32                   ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw error interrupt status 0x%x\n"

	.comm	_Y2_IS_PAR_RD1,4,2              ## @Y2_IS_PAR_RD1
L_.str.1:                               ## @.str.1
	.asciz	"ram data read parity error\n"

	.comm	_B3_RI_CTRL,4,2                 ## @B3_RI_CTRL
	.comm	_RI_CLR_RD_PERR,4,2             ## @RI_CLR_RD_PERR
	.comm	_Y2_IS_PAR_WR1,4,2              ## @Y2_IS_PAR_WR1
L_.str.2:                               ## @.str.2
	.asciz	"ram data write parity error\n"

	.comm	_RI_CLR_WR_PERR,4,2             ## @RI_CLR_WR_PERR
	.comm	_Y2_IS_PAR_MAC1,4,2             ## @Y2_IS_PAR_MAC1
L_.str.3:                               ## @.str.3
	.asciz	"MAC parity error\n"

	.comm	_TX_GMF_CTRL_T,4,2              ## @TX_GMF_CTRL_T
	.comm	_GMF_CLI_TX_PE,4,2              ## @GMF_CLI_TX_PE
	.comm	_Y2_IS_PAR_RX1,4,2              ## @Y2_IS_PAR_RX1
L_.str.4:                               ## @.str.4
	.asciz	"RX parity error\n"

	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_BMU_CLR_IRQ_PAR,4,2            ## @BMU_CLR_IRQ_PAR
	.comm	_Y2_IS_TCP_TXA1,4,2             ## @Y2_IS_TCP_TXA1
L_.str.5:                               ## @.str.5
	.asciz	"TCP segmentation error\n"

	.comm	_txqaddr,8,3                    ## @txqaddr
	.comm	_BMU_CLR_IRQ_TCP,4,2            ## @BMU_CLR_IRQ_TCP
	.no_dead_strip	_sky2_hw_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_hw_error
_sky2_hw_error:                         ; @sky2_hw_error
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8, w1, uxtw #3]
	bl	_net_ratelimit
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_info
LBB0_2:
Lloh2:
	adrp	x8, _Y2_IS_PAR_RD1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Y2_IS_PAR_RD1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x23, _B3_RI_CTRL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B3_RI_CTRL@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.3:
	bl	_net_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_RAM_BUFFER
	mov	x1, x0
Lloh9:
	adrp	x8, _RI_CLR_RD_PERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RI_CLR_RD_PERR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write16
LBB0_6:
Lloh12:
	adrp	x8, _Y2_IS_PAR_WR1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Y2_IS_PAR_WR1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.7:
	bl	_net_ratelimit
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_9:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_RAM_BUFFER
	mov	x1, x0
Lloh17:
	adrp	x8, _RI_CLR_WR_PERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RI_CLR_WR_PERR@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write16
LBB0_10:
	mov	w23, w22
Lloh20:
	adrp	x8, _Y2_IS_PAR_MAC1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Y2_IS_PAR_MAC1@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.11:
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.12:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_13:
Lloh25:
	adrp	x8, _TX_GMF_CTRL_T@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TX_GMF_CTRL_T@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SK_REG
	mov	x1, x0
Lloh28:
	adrp	x8, _GMF_CLI_TX_PE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GMF_CLI_TX_PE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
LBB0_14:
Lloh31:
	adrp	x8, _Y2_IS_PAR_RX1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _Y2_IS_PAR_RX1@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x22, _Q_CSR@GOTPAGE
Lloh35:
	ldr	x22, [x22, _Q_CSR@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.15:
	bl	_net_ratelimit
	cbz	x0, LBB0_17
; %bb.16:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_17:
Lloh38:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x22]
	bl	_Q_ADDR
	mov	x1, x0
Lloh41:
	adrp	x8, _BMU_CLR_IRQ_PAR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BMU_CLR_IRQ_PAR@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write32
LBB0_18:
Lloh44:
	adrp	x8, _Y2_IS_TCP_TXA1@GOTPAGE
Lloh45:
	ldr	x8, [x8, _Y2_IS_TCP_TXA1@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_22
; %bb.19:
	bl	_net_ratelimit
	cbz	x0, LBB0_21
; %bb.20:
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_21:
Lloh49:
	adrp	x8, _txqaddr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _txqaddr@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x22]
	bl	_Q_ADDR
	mov	x1, x0
Lloh52:
	adrp	x8, _BMU_CLR_IRQ_TCP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _BMU_CLR_IRQ_TCP@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sky2_write32
LBB0_22:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw error interrupt status 0x%x\n"

	.comm	_Y2_IS_PAR_RD1,4,2              ; @Y2_IS_PAR_RD1
l_.str.1:                               ; @.str.1
	.asciz	"ram data read parity error\n"

	.comm	_B3_RI_CTRL,4,2                 ; @B3_RI_CTRL
	.comm	_RI_CLR_RD_PERR,4,2             ; @RI_CLR_RD_PERR
	.comm	_Y2_IS_PAR_WR1,4,2              ; @Y2_IS_PAR_WR1
l_.str.2:                               ; @.str.2
	.asciz	"ram data write parity error\n"

	.comm	_RI_CLR_WR_PERR,4,2             ; @RI_CLR_WR_PERR
	.comm	_Y2_IS_PAR_MAC1,4,2             ; @Y2_IS_PAR_MAC1
l_.str.3:                               ; @.str.3
	.asciz	"MAC parity error\n"

	.comm	_TX_GMF_CTRL_T,4,2              ; @TX_GMF_CTRL_T
	.comm	_GMF_CLI_TX_PE,4,2              ; @GMF_CLI_TX_PE
	.comm	_Y2_IS_PAR_RX1,4,2              ; @Y2_IS_PAR_RX1
l_.str.4:                               ; @.str.4
	.asciz	"RX parity error\n"

	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_BMU_CLR_IRQ_PAR,4,2            ; @BMU_CLR_IRQ_PAR
	.comm	_Y2_IS_TCP_TXA1,4,2             ; @Y2_IS_TCP_TXA1
l_.str.5:                               ; @.str.5
	.asciz	"TCP segmentation error\n"

	.comm	_txqaddr,8,3                    ; @txqaddr
	.comm	_BMU_CLR_IRQ_TCP,4,2            ; @BMU_CLR_IRQ_TCP
	.no_dead_strip	_sky2_hw_error
.subsections_via_symbols
