	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_phy_reset                   ## -- Begin function t3_phy_reset
	.p2align	4, 0x90
_t3_phy_reset:                          ## @t3_phy_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CTRL1_LPOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_t3_mdio_change_bits
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.2:
	decl	%r12d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	%eax, -44(%rbp)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	-44(%rbp), %eax
	subl	$1, %r12d
	setb	%cl
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	je	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	negl	%eax
	sbbl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_CTRL1_LPOWER,4,2          ## @MDIO_CTRL1_LPOWER
	.comm	_MDIO_CTRL1_RESET,4,2           ## @MDIO_CTRL1_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_phy_reset                   ; -- Begin function t3_phy_reset
	.p2align	2
_t3_phy_reset:                          ; @t3_phy_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MDIO_CTRL1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _MDIO_CTRL1_LPOWER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_CTRL1_LPOWER@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x23, _MDIO_CTRL1_RESET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MDIO_CTRL1_RESET@GOTPAGEOFF]
	ldr	w4, [x23]
	bl	_t3_mdio_change_bits
	cbz	w21, LBB0_8
; %bb.1:
	cbnz	w0, LBB0_8
; %bb.2:
	sub	w9, w21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_t3_mdio_read
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	ands	w8, w9, w8
	str	w8, [sp, #12]
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w9, w21, #1
	cbnz	w21, LBB0_3
LBB0_7:
	cmp	w8, #0
	csetm	w0, ne
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_CTRL1_LPOWER,4,2          ; @MDIO_CTRL1_LPOWER
	.comm	_MDIO_CTRL1_RESET,4,2           ; @MDIO_CTRL1_RESET
.subsections_via_symbols
