	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function miiport_read
_miiport_read:                          ## @miiport_read
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$-1, %esi
	movl	$32, %edx
	callq	_mii_send_bits
	shll	$5, %ebx
	orl	%r15d, %ebx
	orl	$6144, %ebx                     ## imm = 0x1800
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$14, %edx
	callq	_mii_send_bits
	movq	%r14, %rdi
	callq	_mii_getbit
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %ebx
	shll	$2, %r15d
	addl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r12d
	shll	$2, %r15d
	addl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	shll	$2, %ebx
	addl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r12d
	orl	%r15d, %r12d
	orl	%ebx, %r12d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	shll	$2, %r12d
	addl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	shll	$2, %ebx
	addl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r12d
	orl	%r15d, %r12d
	orl	%ebx, %r12d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	shll	$2, %r12d
	addl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r13d
	orl	%r15d, %r13d
	orl	%r12d, %r13d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	shll	$2, %r13d
	addl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	addl	%ebx, %ebx
	movq	%r14, %rdi
	callq	_mii_getbit
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	callq	_mii_getbit
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_miiport_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function miiport_read
_miiport_read:                          ; @miiport_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #-1
	mov	w2, #32
	bl	_mii_send_bits
	orr	w8, w20, w21, lsl #5
	orr	w1, w8, #0x1800
	mov	x0, x19
	mov	w2, #14
	bl	_mii_send_bits
	mov	x0, x19
	bl	_mii_getbit
	cbz	w0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mii_getbit
	mov	x20, x0
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	lsl	w8, w20, #2
	orr	w20, w8, w0, lsl #1
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20
	mov	x0, x19
	bl	_mii_getbit
	orr	w20, w0, w20, lsl #1
	mov	x0, x19
	bl	_mii_getbit
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_miiport_read
.subsections_via_symbols
