	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_phy_reset
_b44_phy_reset:                         ## @b44_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_B44_FLAG_EXTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_b44_writephy
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_b44_readphy
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %ecx
	movl	$0, %eax
	testl	%ecx, -28(%rbp)
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ## @B44_FLAG_EXTERNAL_PHY
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY Reset would not complete\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_b44_phy_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_phy_reset
_b44_phy_reset:                         ; @b44_phy_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x20, _BMCR_RESET@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BMCR_RESET@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_b44_writephy
	cbnz	w0, LBB0_6
; %bb.3:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_b44_readphy
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ; @B44_FLAG_EXTERNAL_PHY
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY Reset would not complete\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_b44_phy_reset
.subsections_via_symbols
