	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___genphy_config_aneg           ## -- Begin function __genphy_config_aneg
	.p2align	4, 0x90
___genphy_config_aneg:                  ## @__genphy_config_aneg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_genphy_config_eee_advert
	movq	%rax, %r14
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_genphy_config_advert
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	testq	%r14, %r14
	jne	LBB0_11
## %bb.5:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_restart_aneg            ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_setup_forced            ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___genphy_config_aneg           ; -- Begin function __genphy_config_aneg
	.p2align	2
___genphy_config_aneg:                  ; @__genphy_config_aneg
	.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, x1
	mov	x19, x0
	bl	_genphy_config_eee_advert
Lloh0:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_genphy_config_advert
	tbnz	w0, #31, LBB0_11
; %bb.2:
	cbnz	w21, LBB0_8
; %bb.3:
	cbnz	w0, LBB0_8
; %bb.4:
	cbnz	x20, LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
Lloh6:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _BMCR_ISOLATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMCR_ISOLATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
LBB0_8:
	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	_genphy_restart_aneg
LBB0_9:
	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	_genphy_setup_forced
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
.subsections_via_symbols
