	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_os_link_fault               ## -- Begin function t3_os_link_fault
	.p2align	4, 0x90
_t3_os_link_fault:                      ## @t3_os_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
	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, %r13
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_disable_tx_fifo_drain
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_t3_xgm_intr_disable
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_t3_read_reg
	movq	_A_XGM_INT_CAUSE@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	addq	(%rax), %rsi
	movq	_F_XGM_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_t3_write_reg
	movq	_A_XGM_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	addq	(%rax), %rsi
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movl	%ecx, %edx
	callq	_t3_set_reg_field
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_t3_xgm_intr_enable
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t3_mac_enable
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_enable_tx_fifo_drain
LBB0_4:
	movq	%r14, %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	_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
	.comm	_MAC_DIRECTION_TX,4,2           ## @MAC_DIRECTION_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_os_link_fault               ; -- Begin function t3_os_link_fault
	.p2align	2
_t3_os_link_fault:                      ; @t3_os_link_fault
	.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, 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_carrier_ok
	cmp	w0, w22
	b.ne	LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	cbz	w22, LBB0_4
; %bb.3:
	bl	_netif_carrier_on
	mov	x0, x20
	mov	x1, x21
	bl	_disable_tx_fifo_drain
	ldr	w1, [x21]
	mov	x0, x20
	bl	_t3_xgm_intr_disable
Lloh0:
	adrp	x8, _A_XGM_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x22, x21
	ldr	x9, [x22, #8]!
	add	x1, x9, x8
	mov	x0, x20
	bl	_t3_read_reg
Lloh3:
	adrp	x8, _A_XGM_INT_CAUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_XGM_INT_CAUSE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
Lloh6:
	adrp	x23, _F_XGM_INT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _F_XGM_INT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_t3_write_reg
Lloh8:
	adrp	x8, _A_XGM_INT_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _A_XGM_INT_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x2
	bl	_t3_set_reg_field
	ldr	w1, [x21]
	mov	x0, x20
	bl	_t3_xgm_intr_enable
Lloh11:
	adrp	x8, _MAC_DIRECTION_TX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_t3_mac_enable
	b	LBB0_5
LBB0_4:
	bl	_netif_carrier_off
	mov	x0, x20
	mov	x1, x21
	bl	_enable_tx_fifo_drain
LBB0_5:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
.subsections_via_symbols
