	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_get_phy_info               ## -- Begin function alx_get_phy_info
	.p2align	4, 0x90
_alx_get_phy_info:                      ## @alx_get_phy_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rdi), %rdx
	callq	_alx_read_phy_reg
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	addq	$4, %rdx
	movq	%rbx, %rdi
	callq	_alx_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_MDIO_DEVS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_alx_read_phy_ext
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_MDIO_DEVS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_alx_read_phy_ext
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	-20(%rbp), %eax
	shll	$16, %eax
	orl	-24(%rbp), %eax
	movl	%eax, (%rbx)
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.comm	_MDIO_DEVS1,4,2                 ## @MDIO_DEVS1
	.comm	_MDIO_DEVS2,4,2                 ## @MDIO_DEVS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_get_phy_info               ; -- Begin function alx_get_phy_info
	.p2align	2
_alx_get_phy_info:                      ; @alx_get_phy_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MII_PHYSID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_PHYSID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #8]
	bl	_alx_read_phy_reg
	cbnz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	add	x2, x8, #4
	mov	x0, x19
	bl	_alx_read_phy_reg
	cbnz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MDIO_DEVS1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_DEVS1@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #3
	bl	_alx_read_phy_ext
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MDIO_DEVS2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_DEVS2@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #3
	bl	_alx_read_phy_ext
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldp	w9, w8, [sp, #8]
	orr	w8, w8, w9, lsl #16
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.comm	_MDIO_DEVS1,4,2                 ; @MDIO_DEVS1
	.comm	_MDIO_DEVS2,4,2                 ; @MDIO_DEVS2
.subsections_via_symbols
