	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_link_changed                ## -- Begin function t3_link_changed
	.p2align	4, 0x90
_t3_link_changed:                       ## @t3_link_changed
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_adap2pinfo
	movq	%rax, %rbx
	leaq	56(%rax), %rdi
	leaq	40(%rax), %r12
	movq	56(%rax), %rax
	leaq	-36(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	*(%rax)
	cmpl	$0, 8(%rbx)
	jne	LBB0_5
## %bb.1:
	cmpl	$0, -36(%rbp)
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_t3_xgm_intr_enable
	leaq	-60(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	callq	_t3_gate_rx_traffic
	movq	_A_XGM_RX_CTRL@GOTPCREL(%rip), %rax
	movq	(%r12), %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
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	_F_LINKFAULTCHANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	incl	48(%rbx)
	movl	$1, (%rbx)
LBB0_4:
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	%r12, %rdi
	callq	_t3_open_rx_traffic
LBB0_5:
	movl	12(%rbx), %ecx
	movq	_PAUSE_AUTONEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_6
## %bb.7:
	movl	-40(%rbp), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_PAUSE_RX@GOTPCREL(%rip), %rdx
	movq	_PAUSE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
LBB0_8:
	andl	%ecx, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %ecx
	cmpl	8(%rbx), %ecx
	jne	LBB0_12
## %bb.9:
	movl	-48(%rbp), %ecx
	cmpl	16(%rbx), %ecx
	jne	LBB0_20
## %bb.10:
	movl	-44(%rbp), %ecx
	cmpl	20(%rbx), %ecx
	jne	LBB0_20
## %bb.11:
	cmpl	24(%rbx), %eax
	jne	LBB0_20
	jmp	LBB0_32
LBB0_12:
	cmpq	$0, (%r15)
	jle	LBB0_20
## %bb.13:
	movq	%r15, %rdi
	callq	_uses_xaui
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	cmpl	$0, -36(%rbp)
	je	LBB0_15
## %bb.17:
	movq	%r12, %rdi
	callq	_t3b_pcs_reset
	movq	_A_XGM_XAUI_ACT_CTRL@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	addq	(%rax), %rsi
	cmpl	$0, -36(%rbp)
	je	LBB0_16
## %bb.18:
	movq	_F_TXACTENABLE@GOTPCREL(%rip), %rax
	movq	_F_RXEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	jmp	LBB0_19
LBB0_15:
	movq	_A_XGM_XAUI_ACT_CTRL@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	addq	(%rax), %rsi
LBB0_16:
	xorl	%edx, %edx
LBB0_19:
	movq	%r15, %rdi
	callq	_t3_write_reg
LBB0_20:
	movl	-36(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-48(%rbp), %esi
	movl	%esi, %ecx
	testl	%esi, %esi
	jns	LBB0_22
## %bb.21:
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_22:
	movl	%ecx, 16(%rbx)
	movl	-44(%rbp), %edx
	movl	%edx, %ecx
	testl	%edx, %edx
	jns	LBB0_24
## %bb.23:
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_24:
	movl	%ecx, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	testl	%esi, %esi
	js	LBB0_28
## %bb.26:
	movq	32(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.27:
	movl	-40(%rbp), %ecx
	movq	%r12, %rdi
	callq	_t3_mac_set_speed_duplex_fc
	movl	-40(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	-36(%rbp), %eax
LBB0_28:
	testl	%eax, %eax
	je	LBB0_29
LBB0_30:
	xorl	%edx, %edx
	cmpl	$0, (%rbx)
	sete	%dl
	jmp	LBB0_31
LBB0_29:
	xorl	%edx, %edx
LBB0_31:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movl	-40(%rbp), %r9d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_t3_os_link_changed
LBB0_32:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_PAUSE_AUTONEG,4,2              ## @PAUSE_AUTONEG
	.comm	_PAUSE_RX,4,2                   ## @PAUSE_RX
	.comm	_PAUSE_TX,4,2                   ## @PAUSE_TX
	.comm	_A_XGM_XAUI_ACT_CTRL,8,3        ## @A_XGM_XAUI_ACT_CTRL
	.comm	_F_TXACTENABLE,4,2              ## @F_TXACTENABLE
	.comm	_F_RXEN,4,2                     ## @F_RXEN
	.comm	_SPEED_INVALID,4,2              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_link_changed                ; -- Begin function t3_link_changed
	.p2align	2
_t3_link_changed:                       ; @t3_link_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	bl	_adap2pinfo
	mov	x21, x0
	add	x22, x0, #40
	ldr	x8, [x0, #56]!
	ldr	x8, [x8]
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	blr	x8
	ldr	w8, [x21, #8]
	ldr	w9, [sp, #28]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_t3_xgm_intr_enable
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x22
	bl	_t3_gate_rx_traffic
Lloh0:
	adrp	x8, _A_XGM_RX_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_RX_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	mov	w2, #0
	bl	_t3_write_reg
Lloh3:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t3_mac_enable
Lloh6:
	adrp	x8, _A_XGM_INT_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_XGM_INT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
Lloh9:
	adrp	x8, _F_LINKFAULTCHANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_LINKFAULTCHANGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x21, #48]
	add	w8, w8, #1
	str	w8, [x21, #48]
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	ldp	w2, w1, [sp, #8]
	ldr	w3, [sp, #4]
	mov	x0, x22
	bl	_t3_open_rx_traffic
LBB0_4:
Lloh12:
	adrp	x8, _PAUSE_AUTONEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAUSE_AUTONEG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PAUSE_RX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PAUSE_RX@GOTPAGEOFF]
Lloh17:
	adrp	x10, _PAUSE_TX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PAUSE_TX@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldp	w11, w10, [x21, #8]
	tst	w8, w10
	ldr	w8, [sp, #16]
	csel	w8, w9, w8, eq
	and	w8, w8, w10
	str	w8, [sp, #16]
	ldr	w9, [sp, #28]
	cmp	w9, w11
	b.ne	LBB0_8
; %bb.5:
	ldr	w9, [sp, #24]
	ldr	w10, [x21, #16]
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.6:
	ldr	w9, [sp, #20]
	ldr	w10, [x21, #20]
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.7:
	ldr	w9, [x21, #24]
	cmp	w8, w9
	b.ne	LBB0_16
	b	LBB0_24
LBB0_8:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_uses_xaui
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x0, x22
	bl	_t3b_pcs_reset
	ldr	w8, [sp, #28]
Lloh21:
	adrp	x9, _A_XGM_XAUI_ACT_CTRL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _A_XGM_XAUI_ACT_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x10, [x22]
	add	x1, x10, x9
	cbz	w8, LBB0_14
; %bb.12:
Lloh24:
	adrp	x8, _F_TXACTENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _F_TXACTENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _F_RXEN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _F_RXEN@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _A_XGM_XAUI_ACT_CTRL@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
LBB0_14:
	mov	w2, #0
LBB0_15:
	mov	x0, x20
	bl	_t3_write_reg
LBB0_16:
	ldp	w1, w8, [sp, #24]
	str	w8, [x21, #8]
Lloh33:
	adrp	x9, _SPEED_INVALID@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SPEED_INVALID@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w1, #0
	csel	w9, w9, w1, lt
Lloh36:
	adrp	x10, _DUPLEX_INVALID@GOTPAGE
Lloh37:
	ldr	x10, [x10, _DUPLEX_INVALID@GOTPAGEOFF]
	ldr	w2, [sp, #20]
Lloh38:
	ldr	w10, [x10]
	cmp	w2, #0
	csel	w10, w10, w2, lt
	stp	w9, w10, [x21, #16]
	cbz	w8, LBB0_20
; %bb.17:
	tbnz	w1, #31, LBB0_20
; %bb.18:
	ldr	x8, [x21, #32]
Lloh39:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
	ldr	w3, [sp, #16]
	mov	x0, x22
	bl	_t3_mac_set_speed_duplex_fc
	ldr	w8, [sp, #16]
	str	w8, [x21, #24]
	ldr	w8, [sp, #28]
LBB0_20:
	cbz	w8, LBB0_22
LBB0_21:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w2, eq
	b	LBB0_23
LBB0_22:
	mov	w2, #0
LBB0_23:
	ldp	w4, w3, [sp, #20]
	ldr	w5, [sp, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_t3_os_link_changed
LBB0_24:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.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	_PAUSE_AUTONEG,4,2              ; @PAUSE_AUTONEG
	.comm	_PAUSE_RX,4,2                   ; @PAUSE_RX
	.comm	_PAUSE_TX,4,2                   ; @PAUSE_TX
	.comm	_A_XGM_XAUI_ACT_CTRL,8,3        ; @A_XGM_XAUI_ACT_CTRL
	.comm	_F_TXACTENABLE,4,2              ; @F_TXACTENABLE
	.comm	_F_RXEN,4,2                     ; @F_RXEN
	.comm	_SPEED_INVALID,4,2              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
.subsections_via_symbols
