	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_intr_handler
_mac_intr_handler:                      ## @mac_intr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_adap2pinfo
	movq	%rax, %r15
	movq	_A_XGM_INT_CAUSE@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	_F_RXFIFO_OVERFLOW@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_M_TXFIFO_PRTY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V_TXFIFO_PRTY_ERR
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	incl	36(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_CH_ALERT
LBB0_2:
	movq	_M_RXFIFO_PRTY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V_RXFIFO_PRTY_ERR
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	incl	32(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_CH_ALERT
LBB0_4:
	movq	_F_TXFIFO_UNDERRUN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	28(%r15)
LBB0_6:
	testl	%ebx, (%r13)
	je	LBB0_8
## %bb.7:
	incl	24(%r15)
LBB0_8:
	movq	_M_SERDES_LOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V_SERDES_LOS
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	incl	20(%r15)
LBB0_10:
	movq	_F_XAUIPCSCTCERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	incl	16(%r15)
LBB0_12:
	movq	_F_XAUIPCSALIGNCHANGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	incl	12(%r15)
LBB0_14:
	movq	_F_XGM_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ebx, %edx
	je	LBB0_16
## %bb.15:
	movq	_A_XGM_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_t3_set_reg_field
	incl	8(%r15)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_t3_os_link_fault_handler
LBB0_16:
	movq	_XGM_INTR_FATAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_t3_fatal_err
LBB0_18:
	movq	(%r15), %rsi
	movq	_A_XGM_INT_CAUSE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_t3_write_reg
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_XGM_INT_CAUSE,8,3            ## @A_XGM_INT_CAUSE
	.comm	_F_RXFIFO_OVERFLOW,4,2          ## @F_RXFIFO_OVERFLOW
	.comm	_M_TXFIFO_PRTY_ERR,4,2          ## @M_TXFIFO_PRTY_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port%d: MAC TX FIFO parity error\n"

	.comm	_M_RXFIFO_PRTY_ERR,4,2          ## @M_RXFIFO_PRTY_ERR
L_.str.1:                               ## @.str.1
	.asciz	"port%d: MAC RX FIFO parity error\n"

	.comm	_F_TXFIFO_UNDERRUN,4,2          ## @F_TXFIFO_UNDERRUN
	.comm	_M_SERDES_LOS,4,2               ## @M_SERDES_LOS
	.comm	_F_XAUIPCSCTCERR,4,2            ## @F_XAUIPCSCTCERR
	.comm	_F_XAUIPCSALIGNCHANGE,4,2       ## @F_XAUIPCSALIGNCHANGE
	.comm	_F_XGM_INT,4,2                  ## @F_XGM_INT
	.comm	_A_XGM_INT_ENABLE,8,3           ## @A_XGM_INT_ENABLE
	.comm	_XGM_INTR_FATAL,4,2             ## @XGM_INTR_FATAL
	.no_dead_strip	_mac_intr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_intr_handler
_mac_intr_handler:                      ; @mac_intr_handler
	.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	x22, x1
	mov	x19, x0
	bl	_adap2pinfo
	mov	x20, x0
Lloh0:
	adrp	x23, _A_XGM_INT_CAUSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _A_XGM_INT_CAUSE@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x0]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
Lloh2:
	adrp	x24, _F_RXFIFO_OVERFLOW@GOTPAGE
Lloh3:
	ldr	x24, [x24, _F_RXFIFO_OVERFLOW@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w21, w0, w8
Lloh4:
	adrp	x8, _M_TXFIFO_PRTY_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_TXFIFO_PRTY_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_V_TXFIFO_PRTY_ERR
	tst	w0, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_CH_ALERT
LBB0_2:
Lloh9:
	adrp	x8, _M_RXFIFO_PRTY_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_RXFIFO_PRTY_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_V_RXFIFO_PRTY_ERR
	tst	w0, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_CH_ALERT
LBB0_4:
Lloh14:
	adrp	x8, _F_TXFIFO_UNDERRUN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_TXFIFO_UNDERRUN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
LBB0_6:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
LBB0_8:
Lloh17:
	adrp	x8, _M_SERDES_LOS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_SERDES_LOS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_V_SERDES_LOS
	tst	w0, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_10:
Lloh20:
	adrp	x8, _F_XAUIPCSCTCERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _F_XAUIPCSCTCERR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_12:
Lloh23:
	adrp	x8, _F_XAUIPCSALIGNCHANGE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_XAUIPCSALIGNCHANGE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_14:
Lloh26:
	adrp	x8, _F_XGM_INT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _F_XGM_INT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	tst	w2, w21
	b.eq	LBB0_16
; %bb.15:
Lloh29:
	adrp	x8, _A_XGM_INT_ENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _A_XGM_INT_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	x0, x19
	mov	w3, #0
	bl	_t3_set_reg_field
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_t3_os_link_fault_handler
LBB0_16:
Lloh32:
	adrp	x8, _XGM_INTR_FATAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XGM_INTR_FATAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_t3_fatal_err
LBB0_18:
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x21
	bl	_t3_write_reg
	cmp	w21, #0
	cset	w0, ne
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_A_XGM_INT_CAUSE,8,3            ; @A_XGM_INT_CAUSE
	.comm	_F_RXFIFO_OVERFLOW,4,2          ; @F_RXFIFO_OVERFLOW
	.comm	_M_TXFIFO_PRTY_ERR,4,2          ; @M_TXFIFO_PRTY_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port%d: MAC TX FIFO parity error\n"

	.comm	_M_RXFIFO_PRTY_ERR,4,2          ; @M_RXFIFO_PRTY_ERR
l_.str.1:                               ; @.str.1
	.asciz	"port%d: MAC RX FIFO parity error\n"

	.comm	_F_TXFIFO_UNDERRUN,4,2          ; @F_TXFIFO_UNDERRUN
	.comm	_M_SERDES_LOS,4,2               ; @M_SERDES_LOS
	.comm	_F_XAUIPCSCTCERR,4,2            ; @F_XAUIPCSCTCERR
	.comm	_F_XAUIPCSALIGNCHANGE,4,2       ; @F_XAUIPCSALIGNCHANGE
	.comm	_F_XGM_INT,4,2                  ; @F_XGM_INT
	.comm	_A_XGM_INT_ENABLE,8,3           ; @A_XGM_INT_ENABLE
	.comm	_XGM_INTR_FATAL,4,2             ; @XGM_INTR_FATAL
	.no_dead_strip	_mac_intr_handler
.subsections_via_symbols
