	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_adjust_link
_xgbe_phy_adjust_link:                  ## @xgbe_phy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_10
## %bb.1:
	movl	64(%rbx), %eax
	movl	%eax, 88(%rbx)
	movq	40(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	callq	*80(%rbx)
	movl	$1, %eax
LBB0_3:
	movq	48(%rbx), %rcx
	cmpq	%rcx, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	callq	*72(%rbx)
	movl	$1, %eax
LBB0_5:
	movq	56(%rbx), %rcx
	cmpq	%rcx, 16(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	32(%rbx), %rcx
	cmpq	%rcx, 24(%rbx)
	jne	LBB0_9
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.11:
	movq	$0, 24(%rbx)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_12
LBB0_8:
	movq	%rcx, 16(%rbx)
	movq	32(%rbx), %rcx
	cmpq	%rcx, 24(%rbx)
	je	LBB0_12
LBB0_9:
	leaq	24(%rbx), %rax
	movq	%rcx, (%rax)
LBB0_12:
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_xgbe_phy_print_status          ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.no_dead_strip	_xgbe_phy_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_adjust_link
_xgbe_phy_adjust_link:                  ; @xgbe_phy_adjust_link
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #64]
	str	w8, [x19, #88]
	ldr	x9, [x19]
	ldr	x8, [x19, #40]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w8, #0
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.4:
Lloh0:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #16]
	b	LBB0_13
LBB0_5:
	str	x8, [x19]
	ldr	x8, [x19, #80]
	mov	x0, x19
	blr	x8
	mov	w8, #1
LBB0_6:
	ldr	x10, [x19, #8]
	ldr	x9, [x19, #48]
	cmp	x10, x9
	b.eq	LBB0_8
; %bb.7:
	str	x9, [x19, #8]
	ldr	x8, [x19, #72]
	mov	x0, x19
	blr	x8
	mov	w8, #1
LBB0_8:
	ldr	x9, [x19, #16]
	ldr	x10, [x19, #56]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.9:
	mov	x9, x19
	ldp	x11, x10, [x9, #24]!
	cmp	x11, x10
	b.ne	LBB0_12
; %bb.10:
	cbnz	w8, LBB0_13
	b	LBB0_15
LBB0_11:
	mov	x9, x19
	ldr	x8, [x9, #24]!
	stur	x10, [x9, #-8]
	ldr	x10, [x9, #8]
	cmp	x8, x10
	b.eq	LBB0_13
LBB0_12:
	str	x10, [x9]
LBB0_13:
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xgbe_phy_print_status
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.no_dead_strip	_xgbe_phy_adjust_link
.subsections_via_symbols
