	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt202x_phy_get_module_eeprom
_qt202x_phy_get_module_eeprom:          ## @qt202x_phy_get_module_eeprom
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_PHY_TYPE_QT2025C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$53248, %ecx                    ## imm = 0xD000
	movl	$32775, %r13d                   ## imm = 0x8007
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	cmoveq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	cmoveq	%rcx, %r13
	cmpl	$0, (%rsi)
	jle	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rax), %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r13), %rdx
	addq	8(%rbx), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ef4_mdio_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_QT2025C,8,3           ## @PHY_TYPE_QT2025C
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.no_dead_strip	_qt202x_phy_get_module_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt202x_phy_get_module_eeprom
_qt202x_phy_get_module_eeprom:          ; @qt202x_phy_get_module_eeprom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_TYPE_QT2025C@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_QT2025C@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #32775
	mov	w11, #53248
Lloh3:
	adrp	x12, _MDIO_MMD_PCS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MDIO_MMD_PCS@GOTPAGEOFF]
	cmp	x8, x9
	csel	x23, x11, x10, eq
Lloh5:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	csel	x8, x12, x8, eq
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	ldr	w22, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x9, x23, x24
	add	x2, x9, x8
	mov	x0, x21
	mov	x1, x22
	bl	_ef4_mdio_read
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w0, [x19, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_QT2025C,8,3           ; @PHY_TYPE_QT2025C
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.no_dead_strip	_qt202x_phy_get_module_eeprom
.subsections_via_symbols
