	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_link_timer
_gem_link_timer:                        ## @gem_link_timer
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_link_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	cmpq	$0, 72(%rax)
	je	LBB0_1
## %bb.22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %rbx
	movq	80(%rax), %r14
	movq	(%rax), %rax
	movq	_phy_serialink@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_phy_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	callq	_found_mii_phy
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	leaq	24(%rbx), %r15
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	8(%rbx), %rax
	movq	_link_force_try@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.10:
	cmpq	$0, 56(%rbx)
	je	LBB0_20
## %bb.11:
	movq	_link_force_ret@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	40(%rbx), %eax
	movl	%eax, 48(%rbx)
	movl	$5, 16(%rbx)
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
LBB0_13:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	24(%rbx), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	jmp	LBB0_21
LBB0_3:
	movq	_PCS_MIISTAT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	64(%rbx), %rdi
	callq	_readl
	movq	_PCS_MIISTAT_LS@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	addq	64(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r12)
	je	LBB0_21
LBB0_5:
	movq	_link_up@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%rbx)
	je	LBB0_21
## %bb.6:
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%rbx, %rdi
	callq	_gem_set_link_modes
	jmp	LBB0_21
LBB0_14:
	movq	8(%rbx), %rax
	movq	_link_up@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.23:
	movq	_link_down@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gem_schedule_reset             ## TAILCALL
LBB0_15:
	movl	16(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	cmpl	$10, %eax
	jl	LBB0_21
## %bb.16:
	movq	%rbx, %rdi
	callq	_found_mii_phy
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rbx, %rdi
	callq	_gem_mdio_link_not_up
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_21
LBB0_20:
	movq	_link_up@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_21
## %bb.18:
	movq	%rcx, 8(%rbx)
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%rbx, %rdi
	callq	_gem_set_link_modes
	testq	%rax, %rax
	je	LBB0_21
LBB0_19:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gem_begin_auto_negotiation     ## TAILCALL
LBB0_21:
	addq	$20, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_link_timer,4,2                 ## @link_timer
	.comm	_phy_serialink,8,3              ## @phy_serialink
	.comm	_phy_serdes,8,3                 ## @phy_serdes
	.comm	_PCS_MIISTAT,8,3                ## @PCS_MIISTAT
	.comm	_PCS_MIISTAT_LS,4,2             ## @PCS_MIISTAT_LS
	.comm	_link_up,8,3                    ## @link_up
	.comm	_link_force_try,8,3             ## @link_force_try
	.comm	_link_force_ret,8,3             ## @link_force_ret
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got link after fallback, retrying autoneg once...\n"

	.comm	_link_down,8,3                  ## @link_down
	.comm	_link,4,2                       ## @link
L_.str.1:                               ## @.str.1
	.asciz	"Link down\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_gp,8,3                         ## @gp
	.no_dead_strip	_gem_link_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_link_timer
_gem_link_timer:                        ; @gem_link_timer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _link_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _link_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #80]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _phy_serialink@GOTPAGE
Lloh4:
	ldr	x9, [x9, _phy_serialink@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _phy_serdes@GOTPAGE
Lloh7:
	ldr	x10, [x10, _phy_serdes@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #64]
Lloh9:
	adrp	x21, _PCS_MIISTAT@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PCS_MIISTAT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x22, _PCS_MIISTAT_LS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PCS_MIISTAT_LS@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19, #64]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_22
LBB0_5:
	ldr	x9, [x19, #8]
Lloh13:
	adrp	x8, _link_up@GOTPAGE
Lloh14:
	ldr	x8, [x8, _link_up@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_22
; %bb.6:
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_gem_set_link_modes
	b	LBB0_22
LBB0_7:
	mov	x0, x19
	bl	_found_mii_phy
	cbz	x0, LBB0_14
; %bb.8:
	add	x21, x19, #24
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _link_force_try@GOTPAGE
Lloh17:
	ldr	x9, [x9, _link_force_try@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.10:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_19
; %bb.11:
Lloh19:
	adrp	x8, _link_force_ret@GOTPAGE
Lloh20:
	ldr	x8, [x8, _link_force_ret@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x19, #40]
	str	w8, [x19, #48]
	mov	w8, #5
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_13
; %bb.12:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
LBB0_13:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x19, #24]
	mov	x0, x21
	blr	x8
	b	LBB0_22
LBB0_14:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _link_up@GOTPAGE
Lloh25:
	ldr	x9, [x9, _link_up@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _link_down@GOTPAGE
Lloh28:
	ldr	x8, [x8, _link_down@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh30:
	adrp	x8, _link@GOTPAGE
Lloh31:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x3, l_.str.1@PAGE
Lloh34:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_info
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gem_schedule_reset
LBB0_16:
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	cmp	w8, #10
	b.lt	LBB0_22
; %bb.17:
	mov	x0, x19
	bl	_found_mii_phy
	cbz	x0, LBB0_21
; %bb.18:
	mov	x0, x19
	bl	_gem_mdio_link_not_up
	cbnz	w0, LBB0_21
	b	LBB0_22
LBB0_19:
Lloh35:
	adrp	x9, _link_up@GOTPAGE
Lloh36:
	ldr	x9, [x9, _link_up@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.20:
	str	x9, [x19, #8]
	mov	x0, x20
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_gem_set_link_modes
	cbz	x0, LBB0_22
LBB0_21:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gem_begin_auto_negotiation
LBB0_22:
	add	x0, x19, #20
Lloh38:
	adrp	x8, _jiffies@GOTPAGE
Lloh39:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh40:
	adrp	x9, _HZ@GOTPAGE
Lloh41:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	ldr	w9, [x9]
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #2
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_link_timer,4,2                 ; @link_timer
	.comm	_phy_serialink,8,3              ; @phy_serialink
	.comm	_phy_serdes,8,3                 ; @phy_serdes
	.comm	_PCS_MIISTAT,8,3                ; @PCS_MIISTAT
	.comm	_PCS_MIISTAT_LS,4,2             ; @PCS_MIISTAT_LS
	.comm	_link_up,8,3                    ; @link_up
	.comm	_link_force_try,8,3             ; @link_force_try
	.comm	_link_force_ret,8,3             ; @link_force_ret
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got link after fallback, retrying autoneg once...\n"

	.comm	_link_down,8,3                  ; @link_down
	.comm	_link,4,2                       ; @link
l_.str.1:                               ; @.str.1
	.asciz	"Link down\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_gp,8,3                         ; @gp
	.no_dead_strip	_gem_link_timer
.subsections_via_symbols
