	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_os_link_changed             ## -- Begin function t3_os_link_changed
	.p2align	4, 0x90
_t3_os_link_changed:                    ## @t3_os_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	%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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r13
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r13, %rdi
	callq	_netif_carrier_ok
	cmpl	%ebx, %eax
	jne	LBB0_2
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	16(%r15), %r12
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_disable_tx_fifo_drain
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t3_mac_enable
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_t3_xgm_intr_disable
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rax
	movq	16(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	_A_XGM_INT_CAUSE@GOTPCREL(%rip), %rax
	movq	16(%r15), %rsi
	addq	(%rax), %rsi
	movq	_F_XGM_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_t3_write_reg
	movq	_A_XGM_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	16(%r15), %rsi
	addq	(%rax), %rsi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_t3_set_reg_field
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_t3_xgm_intr_enable
	movq	%r13, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_7
LBB0_4:
	movq	%r13, %rdi
	callq	_netif_carrier_off
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_t3_xgm_intr_disable
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rbx
	movq	16(%r15), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	_A_XGM_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	16(%r15), %rsi
	addq	(%rax), %rsi
	movq	_F_XGM_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_t3_set_reg_field
	movq	%r14, %rdi
	callq	_is_10G
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	8(%r15), %rdi
	movq	8(%r15), %rax
	movl	$1, %esi
	callq	*(%rax)
LBB0_6:
	movq	16(%r15), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t3_mac_disable
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_t3_link_start
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_enable_tx_fifo_drain
LBB0_7:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_link_report                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_A_XGM_INT_STATUS,8,3           ## @A_XGM_INT_STATUS
	.comm	_A_XGM_INT_CAUSE,8,3            ## @A_XGM_INT_CAUSE
	.comm	_F_XGM_INT,4,2                  ## @F_XGM_INT
	.comm	_A_XGM_INT_ENABLE,8,3           ## @A_XGM_INT_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_os_link_changed             ; -- Begin function t3_os_link_changed
	.p2align	2
_t3_os_link_changed:                    ; @t3_os_link_changed
	.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	x23, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_netif_carrier_ok
	cmp	w0, w23
	b.ne	LBB0_3
LBB0_2:
	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
LBB0_3:
	add	x22, x21, #16
	cbz	w23, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_disable_tx_fifo_drain
Lloh0:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t3_mac_enable
	ldr	w1, [x21, #24]
	mov	x0, x20
	bl	_t3_xgm_intr_disable
Lloh3:
	adrp	x8, _A_XGM_INT_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_XGM_INT_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
Lloh6:
	adrp	x8, _A_XGM_INT_CAUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_XGM_INT_CAUSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
Lloh9:
	adrp	x22, _F_XGM_INT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _F_XGM_INT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_t3_write_reg
Lloh11:
	adrp	x8, _A_XGM_INT_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _A_XGM_INT_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, x2
	bl	_t3_set_reg_field
	ldr	w1, [x21, #24]
	mov	x0, x20
	bl	_t3_xgm_intr_enable
	mov	x0, x19
	bl	_netif_carrier_on
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w1, [x21, #24]
	mov	x0, x20
	bl	_t3_xgm_intr_disable
Lloh14:
	adrp	x23, _A_XGM_INT_STATUS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _A_XGM_INT_STATUS@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
Lloh16:
	adrp	x8, _A_XGM_INT_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _A_XGM_INT_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
Lloh19:
	adrp	x8, _F_XGM_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_XGM_INT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_t3_set_reg_field
	mov	x0, x20
	bl	_is_10G
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	ldr	x8, [x0, #8]!
	ldr	x8, [x8]
	mov	w1, #1
	blr	x8
LBB0_7:
	ldr	x8, [x23]
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
Lloh22:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t3_mac_disable
	add	x0, x21, #8
	mov	x1, x22
	mov	x2, x21
	bl	_t3_link_start
	mov	x0, x20
	mov	x1, x21
	bl	_enable_tx_fifo_drain
LBB0_8:
	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	_link_report
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_A_XGM_INT_STATUS,8,3           ; @A_XGM_INT_STATUS
	.comm	_A_XGM_INT_CAUSE,8,3            ; @A_XGM_INT_CAUSE
	.comm	_F_XGM_INT,4,2                  ; @F_XGM_INT
	.comm	_A_XGM_INT_ENABLE,8,3           ; @A_XGM_INT_ENABLE
.subsections_via_symbols
