	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_get_phy_config
_alx_get_phy_config:                    ## @alx_get_phy_config
	.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	%rdi, %r14
	movq	_ALX_PHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alx_read_mem32
	movq	_ALX_PHY_CTRL_DSPRST_OUT@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_ALX_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_alx_read_mem32
	movq	_ALX_DRV_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALX_GET_FIELD
	movq	%rax, %rbx
	movq	_ALX_DRV_PHY_UNKNOWN@GOTPCREL(%rip), %r15
	cmpq	%rax, (%r15)
	je	LBB0_5
## %bb.3:
	movq	_ALX_MII_DBG_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_alx_read_phy_reg
	movq	_ALX_PHY_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rbx
	jmp	LBB0_5
LBB0_1:
	movq	_ALX_DRV_PHY_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_PHY_CTRL,4,2               ## @ALX_PHY_CTRL
	.comm	_ALX_PHY_CTRL_DSPRST_OUT,8,3    ## @ALX_PHY_CTRL_DSPRST_OUT
	.comm	_ALX_DRV_PHY_UNKNOWN,8,3        ## @ALX_DRV_PHY_UNKNOWN
	.comm	_ALX_DRV,4,2                    ## @ALX_DRV
	.comm	_ALX_DRV_PHY,4,2                ## @ALX_DRV_PHY
	.comm	_ALX_MII_DBG_ADDR,4,2           ## @ALX_MII_DBG_ADDR
	.comm	_ALX_PHY_INITED,8,3             ## @ALX_PHY_INITED
	.no_dead_strip	_alx_get_phy_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_get_phy_config
_alx_get_phy_config:                    ; @alx_get_phy_config
	.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	x8, _ALX_PHY_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALX_PHY_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_alx_read_mem32
Lloh3:
	adrp	x8, _ALX_PHY_CTRL_DSPRST_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALX_PHY_CTRL_DSPRST_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _ALX_DRV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALX_DRV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alx_read_mem32
Lloh9:
	adrp	x8, _ALX_DRV_PHY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALX_DRV_PHY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ALX_GET_FIELD
	mov	x20, x0
Lloh12:
	adrp	x21, _ALX_DRV_PHY_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ALX_DRV_PHY_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, _ALX_MII_DBG_ADDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALX_MII_DBG_ADDR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_alx_read_phy_reg
Lloh17:
	adrp	x8, _ALX_PHY_INITED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ALX_PHY_INITED@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	ldr	x10, [x21]
	cmp	x8, x9
	csel	x20, x20, x10, eq
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x8, _ALX_DRV_PHY_UNKNOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ALX_DRV_PHY_UNKNOWN@GOTPAGEOFF]
Lloh22:
	ldr	x20, [x8]
LBB0_4:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_PHY_CTRL,4,2               ; @ALX_PHY_CTRL
	.comm	_ALX_PHY_CTRL_DSPRST_OUT,8,3    ; @ALX_PHY_CTRL_DSPRST_OUT
	.comm	_ALX_DRV_PHY_UNKNOWN,8,3        ; @ALX_DRV_PHY_UNKNOWN
	.comm	_ALX_DRV,4,2                    ; @ALX_DRV
	.comm	_ALX_DRV_PHY,4,2                ; @ALX_DRV_PHY
	.comm	_ALX_MII_DBG_ADDR,4,2           ; @ALX_MII_DBG_ADDR
	.comm	_ALX_PHY_INITED,8,3             ; @ALX_PHY_INITED
	.no_dead_strip	_alx_get_phy_config
.subsections_via_symbols
