	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_adjust_link
_temac_adjust_link:                     ## @temac_adjust_link
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rbx), %r15
	movl	4(%r15), %ebx
	addl	%ebx, %ebx
	orl	(%r15), %ebx
	orl	8(%r15), %ebx
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_spin_lock_irqsave
	movq	_XTE_EMCFG_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_temac_indirect_in32_locked
	movq	_XTE_EMCFG_LINKSPD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.4:
	movq	_XTE_EMCFG_LINKSPD_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_XTE_EMCFG_LINKSPD_10@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_XTE_EMCFG_LINKSPD_100@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %edx
LBB0_8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_temac_indirect_out32_locked
	movl	4(%r14), %edi
	callq	_spin_unlock_irqrestore
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XTE_EMCFG_OFFSET,4,2           ## @XTE_EMCFG_OFFSET
	.comm	_XTE_EMCFG_LINKSPD_MASK,4,2     ## @XTE_EMCFG_LINKSPD_MASK
	.comm	_XTE_EMCFG_LINKSPD_1000,4,2     ## @XTE_EMCFG_LINKSPD_1000
	.comm	_XTE_EMCFG_LINKSPD_100,4,2      ## @XTE_EMCFG_LINKSPD_100
	.comm	_XTE_EMCFG_LINKSPD_10,4,2       ## @XTE_EMCFG_LINKSPD_10
	.no_dead_strip	_temac_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temac_adjust_link
_temac_adjust_link:                     ; @temac_adjust_link
	.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
	mov	x20, x0
	bl	_netdev_priv
	ldr	x20, [x20]
	ldp	w8, w9, [x20]
	orr	w8, w8, w9, lsl #1
	ldr	w9, [x20, #8]
	orr	w21, w8, w9
	ldr	w8, [x0]
	cmp	w8, w21
	b.ne	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	w0, [x0, #4]
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _XTE_EMCFG_OFFSET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XTE_EMCFG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_temac_indirect_in32_locked
Lloh2:
	adrp	x8, _XTE_EMCFG_LINKSPD_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.5:
Lloh5:
	adrp	x8, _XTE_EMCFG_LINKSPD_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_1000@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _XTE_EMCFG_LINKSPD_10@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_10@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _XTE_EMCFG_LINKSPD_100@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_100@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_temac_indirect_out32_locked
	ldr	w0, [x19, #4]
	bl	_spin_unlock_irqrestore
	str	w21, [x19]
	mov	x0, x20
	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	_phy_print_status
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XTE_EMCFG_OFFSET,4,2           ; @XTE_EMCFG_OFFSET
	.comm	_XTE_EMCFG_LINKSPD_MASK,4,2     ; @XTE_EMCFG_LINKSPD_MASK
	.comm	_XTE_EMCFG_LINKSPD_1000,4,2     ; @XTE_EMCFG_LINKSPD_1000
	.comm	_XTE_EMCFG_LINKSPD_100,4,2      ; @XTE_EMCFG_LINKSPD_100
	.comm	_XTE_EMCFG_LINKSPD_10,4,2       ; @XTE_EMCFG_LINKSPD_10
	.no_dead_strip	_temac_adjust_link
.subsections_via_symbols
