	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_bmcr_reset
_tg3_bmcr_reset:                        ## @tg3_bmcr_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
	movq	%rdi, %r13
	movq	_BMCR_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, -44(%rbp)
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_tg3_writephy
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$5000, %ebx                     ## imm = 0x1388
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_tg3_readphy
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movl	$40, %edi
	callq	_udelay
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jg	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tg3_bmcr_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_bmcr_reset
_tg3_bmcr_reset:                        ; @tg3_bmcr_reset
	.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	x20, _BMCR_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BMCR_RESET@GOTPAGEOFF]
	ldr	w2, [x20]
	str	w2, [sp, #12]
Lloh2:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_tg3_writephy
	cbz	w0, LBB0_3
LBB0_1:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	mov	w22, #5000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_readphy
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_4
	b	LBB0_1
LBB0_7:
	mov	w0, #40
	bl	_udelay
	cmp	w22, #0
	b.le	LBB0_1
; %bb.8:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tg3_bmcr_reset
.subsections_via_symbols
