	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt202x_phy_init
_qt202x_phy_init:                       ## @qt202x_phy_init
	.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, %rbx
	callq	_qt202x_reset_phy
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	jmp	LBB0_4
LBB0_2:
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ef4_mdio_read_id
	movl	%eax, %r15d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_ef4_mdio_id_oui
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_ef4_mdio_id_model
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_ef4_mdio_id_rev
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r13
	callq	_netif_info
	addq	$16, %rsp
	movq	(%rbx), %rax
	movq	_PHY_TYPE_QT2025C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_qt2025c_firmware_id
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY init failed\n"

	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
L_.str.1:                               ## @.str.1
	.asciz	"PHY ID reg %x (OUI %06x model %02x revision %x)\n"

	.comm	_PHY_TYPE_QT2025C,8,3           ## @PHY_TYPE_QT2025C
	.no_dead_strip	_qt202x_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt202x_phy_init
_qt202x_phy_init:                       ; @qt202x_phy_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_qt202x_reset_phy
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _MDIO_MMD_PHYXS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ef4_mdio_read_id
	mov	x21, x0
Lloh8:
	adrp	x8, _probe@GOTPAGE
Lloh9:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	w23, [x20, #8]
	bl	_ef4_mdio_id_oui
	mov	x24, x0
	mov	x0, x21
	bl	_ef4_mdio_id_model
	mov	x25, x0
	mov	x0, x21
	bl	_ef4_mdio_id_rev
	mov	x7, x0
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x4, x21
	mov	x5, x24
	mov	x6, x25
	bl	_netif_info
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _PHY_TYPE_QT2025C@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHY_TYPE_QT2025C@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_qt2025c_firmware_id
LBB0_4:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY init failed\n"

	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
l_.str.1:                               ; @.str.1
	.asciz	"PHY ID reg %x (OUI %06x model %02x revision %x)\n"

	.comm	_PHY_TYPE_QT2025C,8,3           ; @PHY_TYPE_QT2025C
	.no_dead_strip	_qt202x_phy_init
.subsections_via_symbols
