	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_soft_reset              ## -- Begin function genphy_soft_reset
	.p2align	4, 0x90
_genphy_soft_reset:                     ## @genphy_soft_reset
	.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
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movq	(%rdi), %rdx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	(%rax), %ecx
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_modify
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_phy_poll_reset
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rcx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_genphy_setup_forced            ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_soft_reset              ; -- Begin function genphy_soft_reset
	.p2align	2
_genphy_soft_reset:                     ; @genphy_soft_reset
	.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
Lloh0:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _BMCR_ANRESTART@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w3, w9, w8
Lloh9:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BMCR_ISOLATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMCR_ISOLATE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_phy_modify
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_phy_poll_reset
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_setup_forced
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
.subsections_via_symbols
