	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asix_get_phyid
_asix_get_phyid:                        ## @asix_get_phyid
	.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, %r15
	movl	$100, %ebx
	movq	_MII_PHYSID1@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_mdelay
	decl	%ebx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movl	(%r13), %edx
	callq	_asix_mdio_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_4
	jmp	LBB0_7
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	je	LBB0_9
LBB0_7:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	shll	$16, %r12d
	movzwl	%ax, %r14d
	orl	%r12d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.no_dead_strip	_asix_get_phyid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asix_get_phyid
_asix_get_phyid:                        ; @asix_get_phyid
	.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
	mov	x19, x0
	mov	w21, #100
Lloh0:
	adrp	x22, _MII_PHYSID1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_PHYSID1@GOTPAGEOFF]
	mov	w23, #65535
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19]
	ldr	w2, [x22]
	bl	_asix_mdio_read
	tbnz	w0, #31, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	cmp	w0, w23
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_mdelay
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.4:
	cmp	w20, #0
	mov	w8, #65535
	ccmp	w20, w8, #4, ne
	b.eq	LBB0_7
LBB0_5:
	ldp	w1, w0, [x19]
Lloh2:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_asix_mdio_read
	tbnz	w0, #31, LBB0_7
; %bb.6:
	bfi	w0, w20, #16, #16
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.no_dead_strip	_asix_get_phyid
.subsections_via_symbols
