	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_mii_reg
_test_mii_reg:                          ## @test_mii_reg
	.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	%r8, %r13
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	jns	LBB0_2
## %bb.1:
	movabsq	$-6640827866535438581, %rcx     ## imm = 0xA3D70A3D70A3D70B
	movq	%r13, %rax
	imulq	%rcx
	addq	%r13, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$6, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	_DE4X5_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_mii_rd
	andl	%r14d, %eax
	xorl	%ecx, %ecx
	negl	%r15d
	sbbl	%ecx, %ecx
	xorl	%eax, %ecx
	testl	%r14d, %ecx
	je	LBB0_5
## %bb.3:
	decq	(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_TIMER_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$100, %eax
	jmp	LBB0_6
LBB0_5:
	movq	$-1, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DE4X5_MII,4,2                  ## @DE4X5_MII
	.comm	_TIMER_CB,4,2                   ## @TIMER_CB
	.no_dead_strip	_test_mii_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_mii_reg
_test_mii_reg:                          ; @test_mii_reg
	.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	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_2
; %bb.1:
	mov	x8, #55051
	movk	x8, #28835, lsl #16
	movk	x8, #2621, lsl #32
	movk	x8, #41943, lsl #48
	smulh	x8, x23, x8
	add	x8, x8, x23
	asr	x9, x8, #6
	add	x8, x9, x8, lsr #63
	str	x8, [x19]
LBB0_2:
	ldp	x9, x8, [x19, #8]
	ldr	w1, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _DE4X5_MII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DE4X5_MII@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_mii_rd
	and	w0, w0, w20
	cmp	w21, #0
	cinv	w8, w0, ne
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _TIMER_CB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIMER_CB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #100
	orr	w0, w8, w9
	b	LBB0_6
LBB0_5:
	mov	x8, #-1
	str	x8, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DE4X5_MII,4,2                  ; @DE4X5_MII
	.comm	_TIMER_CB,4,2                   ; @TIMER_CB
	.no_dead_strip	_test_mii_reg
.subsections_via_symbols
