	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_adjust_link
_sxgbe_adjust_link:                     ## @sxgbe_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), %r14
	testq	%r14, %r14
	je	LBB0_20
## %bb.1:
	movq	%rax, %r15
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.2:
	movl	(%r14), %r8d
	xorl	%r12d, %r12d
	cmpl	(%r15), %r8d
	je	LBB0_11
## %bb.3:
	cmpl	$128, %r8d
	je	LBB0_7
## %bb.4:
	cmpl	$130, %r8d
	je	LBB0_8
## %bb.5:
	cmpl	$129, %r8d
	jne	LBB0_9
## %bb.6:
	movq	_SXGBE_SPEED_10G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$129, %eax
	jmp	LBB0_10
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$0, 4(%r15)
	je	LBB0_14
## %bb.15:
	movl	$0, 4(%r15)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_16
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_7:
	movq	_SXGBE_SPEED_2_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_SXGBE_SPEED_1G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$130, %eax
	jmp	LBB0_10
LBB0_9:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_netif_err
	movl	(%r14), %eax
	movl	$255, %esi
LBB0_10:
	movl	%eax, (%r15)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	8(%r15), %edi
	callq	*(%rax)
	movl	$1, %r12d
LBB0_11:
	cmpl	$0, 4(%r15)
	jne	LBB0_17
## %bb.12:
	movl	$1, 4(%r15)
LBB0_16:
	movl	$1, %r12d
LBB0_17:
	movq	%r15, %rdi
	callq	_netif_msg_link
	testl	%r12d, %eax
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_phy_print_status
LBB0_19:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sxgbe_eee_adjust               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SXGBE_SPEED_10G,4,2            ## @SXGBE_SPEED_10G
	.comm	_SXGBE_SPEED_2_5G,4,2           ## @SXGBE_SPEED_2_5G
	.comm	_SXGBE_SPEED_1G,4,2             ## @SXGBE_SPEED_1G
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speed (%d) not supported\n"

	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_sxgbe_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_adjust_link
_sxgbe_adjust_link:                     ; @sxgbe_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	x21, x0
	bl	_netdev_priv
	ldr	x20, [x21]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w4, [x20]
	ldr	w8, [x19]
	cmp	w4, w8
	b.ne	LBB0_7
; %bb.3:
	mov	w21, #0
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_17
	b	LBB0_16
LBB0_4:
	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_5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.6:
Lloh0:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, wzr, [x19]
	mov	w21, #1
	b	LBB0_17
LBB0_7:
	cmp	w4, #128
	b.eq	LBB0_12
; %bb.8:
	cmp	w4, #130
	b.eq	LBB0_13
; %bb.9:
	cmp	w4, #129
	b.ne	LBB0_14
; %bb.10:
Lloh3:
	adrp	x8, _SXGBE_SPEED_10G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SXGBE_SPEED_10G@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #129
	b	LBB0_15
LBB0_11:
	mov	w21, #0
	b	LBB0_17
LBB0_12:
Lloh6:
	adrp	x8, _SXGBE_SPEED_2_5G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SXGBE_SPEED_2_5G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w8, #128
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x8, _SXGBE_SPEED_1G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SXGBE_SPEED_1G@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w8, #130
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _link@GOTPAGE
Lloh13:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netif_err
	ldr	w8, [x20]
	mov	w1, #255
LBB0_15:
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	blr	x8
	mov	w21, #1
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_17
LBB0_16:
	mov	w21, #1
	str	w21, [x19, #4]
LBB0_17:
	mov	x0, x19
	bl	_netif_msg_link
	tst	w0, w21
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_phy_print_status
LBB0_19:
	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	_sxgbe_eee_adjust
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SXGBE_SPEED_10G,4,2            ; @SXGBE_SPEED_10G
	.comm	_SXGBE_SPEED_2_5G,4,2           ; @SXGBE_SPEED_2_5G
	.comm	_SXGBE_SPEED_1G,4,2             ; @SXGBE_SPEED_1G
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed (%d) not supported\n"

	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_sxgbe_adjust_link
.subsections_via_symbols
