	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mii_getbit
_mii_getbit:                            ## @mii_getbit
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PhyCtrl@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_readb
	movl	%eax, %ebx
	andl	$248, %ebx
	movq	_MII_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writeb
	xorl	%eax, %eax
	callq	_mii_delay
	movq	_MII_CLK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writeb
	xorl	%eax, %eax
	callq	_mii_delay
	movq	%r14, %rdi
	callq	_readb
	shrl	%eax
	andl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PhyCtrl,8,3                    ## @PhyCtrl
	.comm	_MII_READ,4,2                   ## @MII_READ
	.comm	_MII_CLK,4,2                    ## @MII_CLK
	.no_dead_strip	_mii_getbit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mii_getbit
_mii_getbit:                            ; @mii_getbit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PhyCtrl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PhyCtrl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x19, x9, x8
	mov	x0, x19
	bl	_readb
	and	w8, w0, #0xf8
Lloh3:
	adrp	x9, _MII_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x20
	mov	x1, x19
	bl	_writeb
	bl	_mii_delay
Lloh6:
	adrp	x8, _MII_CLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_CLK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w20
	mov	x1, x19
	bl	_writeb
	bl	_mii_delay
	mov	x0, x19
	bl	_readb
	ubfx	w0, w0, #1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PhyCtrl,8,3                    ; @PhyCtrl
	.comm	_MII_READ,4,2                   ; @MII_READ
	.comm	_MII_CLK,4,2                    ; @MII_CLK
	.no_dead_strip	_mii_getbit
.subsections_via_symbols
