	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_temac_adjust_link              ## -- Begin function temac_adjust_link
	.p2align	4, 0x90
_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	%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
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %r14
	movl	4(%r14), %ebx
	addl	%ebx, %ebx
	orl	(%r14), %ebx
	orl	8(%r14), %ebx
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	%ebx, (%r12)
	je	LBB0_9
## %bb.1:
	movq	_XTE_EMCFG_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_temac_indirect_in32
	movq	_XTE_EMCFG_LINKSPD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %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	(%r13), %esi
	movq	%r12, %rdi
	callq	_temac_indirect_out32
	movl	%ebx, (%r12)
	movq	%r14, %rdi
	callq	_phy_print_status
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## 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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_temac_adjust_link              ; -- Begin function temac_adjust_link
	.p2align	2
_temac_adjust_link:                     ; @temac_adjust_link
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldp	w8, w9, [x19]
	orr	w8, w8, w9, lsl #1
	ldr	w9, [x19, #8]
	orr	w22, w8, w9
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, w22
	b.eq	LBB0_9
; %bb.1:
Lloh0:
	adrp	x23, _XTE_EMCFG_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XTE_EMCFG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_temac_indirect_in32
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, [x19]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _XTE_EMCFG_LINKSPD_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_1000@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _XTE_EMCFG_LINKSPD_10@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_10@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _XTE_EMCFG_LINKSPD_100@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XTE_EMCFG_LINKSPD_100@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_8:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_temac_indirect_out32
	str	w22, [x20]
	mov	x0, x19
	bl	_phy_print_status
LBB0_9:
	mov	x0, x21
	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	_mutex_unlock
	.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
.subsections_via_symbols
