	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdiobb_read
_mdiobb_read:                           ## @mdiobb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%ecx, %edx
	callq	_mdiobb_cmd_addr
	movl	%eax, %ecx
	movq	_MDIO_C45_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MDIO_READ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mdiobb_cmd
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r15), %eax
	btl	%r14d, %eax
	jae	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_mdiobb_get_num
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movl	$65535, %r14d                   ## imm = 0xFFFF
LBB0_7:
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_MDIO_C45_READ,4,2              ## @MDIO_C45_READ
	.comm	_MDIO_READ,4,2                  ## @MDIO_READ
	.no_dead_strip	_mdiobb_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdiobb_read
_mdiobb_read:                           ; @mdiobb_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	x3, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x3
	bl	_mdiobb_cmd_addr
	mov	x3, x0
Lloh3:
	adrp	x8, _MDIO_C45_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_C45_READ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _MDIO_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_READ@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mdiobb_cmd
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_mdiobb_get_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #16
	bl	_mdiobb_get_num
	mov	x20, x0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	w20, #65535
LBB0_7:
	mov	x0, x19
	bl	_mdiobb_get_bit
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_MDIO_C45_READ,4,2              ; @MDIO_C45_READ
	.comm	_MDIO_READ,4,2                  ; @MDIO_READ
	.no_dead_strip	_mdiobb_read
.subsections_via_symbols
