	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8xxxu_init_phy_regs         ## -- Begin function rtl8xxxu_init_phy_regs
	.p2align	4, 0x90
_rtl8xxxu_init_phy_regs:                ## @rtl8xxxu_init_phy_regs
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %esi
	movl	4(%rbx), %edx
	xorl	%r14d, %r14d
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	cmpl	$-1, %edx
	je	LBB0_7
LBB0_2:
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_rtl8xxxu_write32
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	-4(%rbx), %esi
	movl	(%rbx), %edx
	addq	$8, %rbx
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %edx
	jne	LBB0_3
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize PHY\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8xxxu_init_phy_regs         ; -- Begin function rtl8xxxu_init_phy_regs
	.p2align	2
_rtl8xxxu_init_phy_regs:                ; @rtl8xxxu_init_phy_regs
	.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	x8, x1
	ldr	w1, [x1]
	ldr	w2, [x8, #4]
	mov	w20, #65535
	cmp	w1, w20
	ccmn	w2, #1, #0, eq
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	add	x21, x8, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rtl8xxxu_write32
	cmp	w0, #4
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	ldp	w1, w2, [x21, #-4]
	add	x21, x21, #8
	cmp	w1, w20
	ccmn	w2, #1, #0, eq
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize PHY\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
