	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_link_fault                  ## -- Begin function t3_link_fault
	.p2align	4, 0x90
_t3_link_fault:                         ## @t3_link_fault
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_adap2pinfo
	movq	%rax, %rbx
	leaq	32(%rax), %r12
	movq	%rax, %r14
	addq	$24, %r14
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r12, %rdi
	callq	_t3_gate_rx_traffic
	cmpq	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_uses_xaui
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_A_XGM_XAUI_ACT_CTRL@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
LBB0_3:
	movq	_A_XGM_RX_CTRL@GOTPCREL(%rip), %rax
	movq	32(%rbx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t3_mac_enable
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	%r12, %rdi
	callq	_t3_open_rx_traffic
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rax
	movq	32(%rbx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, %r13d
	movq	_F_LINKFAULTCHANGE@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	24(%rbx), %rax
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:
	movl	$0, 8(%rbx)
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_t3_os_link_fault
	cmpl	$0, -44(%rbp)
	je	LBB0_13
## %bb.5:
	incl	40(%rbx)
	jmp	LBB0_13
LBB0_6:
	cmpl	$0, -44(%rbp)
	movl	$0, %edx
	je	LBB0_8
## %bb.7:
	movq	_A_XGM_XAUI_ACT_CTRL@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	addq	(%rax), %rsi
	movq	_F_TXACTENABLE@GOTPCREL(%rip), %rax
	movq	_F_RXEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movl	-44(%rbp), %edx
LBB0_8:
	movq	$0, (%rbx)
	movzbl	%dl, %eax
	movl	%eax, 8(%rbx)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, 12(%rbx)
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movl	%eax, 16(%rbx)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_t3_os_link_fault
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_XGM_XAUI_ACT_CTRL,8,3        ## @A_XGM_XAUI_ACT_CTRL
	.comm	_A_XGM_RX_CTRL,8,3              ## @A_XGM_RX_CTRL
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_A_XGM_INT_STATUS,8,3           ## @A_XGM_INT_STATUS
	.comm	_F_LINKFAULTCHANGE,4,2          ## @F_LINKFAULTCHANGE
	.comm	_SPEED_INVALID,4,2              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_F_TXACTENABLE,4,2              ## @F_TXACTENABLE
	.comm	_F_RXEN,4,2                     ## @F_RXEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_link_fault                  ; -- Begin function t3_link_fault
	.p2align	2
_t3_link_fault:                         ; @t3_link_fault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
	bl	_adap2pinfo
	mov	x19, x0
	add	x22, x0, #32
	add	x23, x0, #24
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x22
	bl	_t3_gate_rx_traffic
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_uses_xaui
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	mov	w2, #0
	bl	_t3_write_reg
LBB0_3:
Lloh3:
	adrp	x8, _A_XGM_RX_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_XGM_RX_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	mov	x0, x21
	mov	w2, #0
	bl	_t3_write_reg
Lloh6:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t3_mac_enable
	ldp	w2, w1, [sp, #8]
	ldr	w3, [sp, #4]
	mov	x0, x22
	bl	_t3_open_rx_traffic
Lloh9:
	adrp	x8, _A_XGM_INT_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _A_XGM_INT_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	mov	x0, x21
	bl	_t3_read_reg
Lloh12:
	adrp	x8, _F_LINKFAULTCHANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F_LINKFAULTCHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w24, w8, w0
	ldp	w8, w9, [x19, #8]
	stp	w9, w8, [sp, #24]
	ldp	w8, w9, [x19, #16]
	stp	w9, w8, [sp, #16]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x23
	blr	x8
	cbz	w24, LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _SPEED_INVALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_INVALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #8]
Lloh18:
	adrp	x8, _DUPLEX_INVALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_t3_os_link_fault
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_10
; %bb.5:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	b	LBB0_10
LBB0_6:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh24:
	adrp	x10, _F_TXACTENABLE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _F_TXACTENABLE@GOTPAGEOFF]
	add	x1, x9, x8
Lloh26:
	ldr	w8, [x10]
Lloh27:
	adrp	x9, _F_RXEN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _F_RXEN@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_t3_write_reg
	ldr	w2, [sp, #28]
	b	LBB0_9
LBB0_8:
	mov	w2, #0
LBB0_9:
	str	xzr, [x19]
	ldr	w8, [sp, #24]
Lloh30:
	adrp	x9, _SPEED_INVALID@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPEED_INVALID@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, w8, lt
	and	w9, w2, #0xff
	stp	w9, w8, [x19, #8]
	ldr	w8, [sp, #20]
Lloh33:
	adrp	x9, _DUPLEX_INVALID@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, w8, lt
	str	w8, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_t3_os_link_fault
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_A_XGM_XAUI_ACT_CTRL,8,3        ; @A_XGM_XAUI_ACT_CTRL
	.comm	_A_XGM_RX_CTRL,8,3              ; @A_XGM_RX_CTRL
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_A_XGM_INT_STATUS,8,3           ; @A_XGM_INT_STATUS
	.comm	_F_LINKFAULTCHANGE,4,2          ; @F_LINKFAULTCHANGE
	.comm	_SPEED_INVALID,4,2              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_F_TXACTENABLE,4,2              ; @F_TXACTENABLE
	.comm	_F_RXEN,4,2                     ; @F_RXEN
.subsections_via_symbols
