	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_status
_xgbe_phy_status:                       ## @xgbe_phy_status
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_XGBE_LINK_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_netif_carrier_off
	movq	$0, 16(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_xgbe_phy_adjust_link
	jmp	LBB0_15
LBB0_2:
	movq	8(%rbx), %r15
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rax, 16(%rbx)
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_xgbe_phy_config_aneg
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	cmpq	%r12, %r15
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_xgbe_phy_aneg_done
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_xgbe_phy_status_result
	movq	_XGBE_LINK_INIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_10:
	movl	(%rbx), %edi
	callq	_netif_carrier_on
	jmp	LBB0_14
LBB0_11:
	movq	_XGBE_LINK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_xgbe_check_link_timeout
	cmpq	%r12, %r15
	je	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_xgbe_phy_status_result
	movl	(%rbx), %edi
	callq	_netif_carrier_off
	jmp	LBB0_14
LBB0_7:
	movq	%rbx, %rdi
	callq	_xgbe_check_link_timeout
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_LINK_ERR,4,2              ## @XGBE_LINK_ERR
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_XGBE_LINK_INIT,4,2             ## @XGBE_LINK_INIT
	.no_dead_strip	_xgbe_phy_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_status
_xgbe_phy_status:                       ; @xgbe_phy_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _XGBE_LINK_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGBE_LINK_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_netif_carrier_off
	str	xzr, [x19, #16]
LBB0_2:
	mov	x0, x19
	bl	_xgbe_phy_adjust_link
	b	LBB0_5
LBB0_3:
	ldr	x21, [x19, #8]
Lloh3:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	x8, [x19, #24]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	str	x0, [x19, #16]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_xgbe_phy_config_aneg
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	cbz	x0, LBB0_12
; %bb.7:
	cmp	x21, x22
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_xgbe_phy_aneg_done
	cbz	w0, LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_xgbe_phy_status_result
Lloh6:
	adrp	x21, _XGBE_LINK_INIT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _XGBE_LINK_INIT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
LBB0_11:
	ldr	w0, [x19]
	bl	_netif_carrier_on
	b	LBB0_2
LBB0_12:
Lloh8:
	adrp	x8, _XGBE_LINK_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XGBE_LINK_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_xgbe_check_link_timeout
	cmp	x21, x22
	b.eq	LBB0_5
LBB0_14:
	mov	x0, x19
	bl	_xgbe_phy_status_result
	ldr	w0, [x19]
	bl	_netif_carrier_off
	b	LBB0_2
LBB0_15:
	mov	x0, x19
	bl	_xgbe_check_link_timeout
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_LINK_ERR,4,2              ; @XGBE_LINK_ERR
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_XGBE_LINK_INIT,4,2             ; @XGBE_LINK_INIT
	.no_dead_strip	_xgbe_phy_status
.subsections_via_symbols
