	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_mdiobus_read
_lan78xx_mdiobus_read:                  ## @lan78xx_mdiobus_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, %r12d
	movl	%esi, %r13d
	movq	(%rdi), %r15
	movl	(%r15), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_lan78xx_phy_wait_not_busy
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_MII_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_mii_access
	movq	_MII_ACC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_lan78xx_write_reg
	movq	%r15, %rdi
	callq	_lan78xx_phy_wait_not_busy
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_lan78xx_read_reg
	movzwl	-44(%rbp), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r15), %edi
	callq	_usb_autopm_put_interface
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_READ,4,2                   ## @MII_READ
	.comm	_MII_ACC,4,2                    ## @MII_ACC
	.comm	_MII_DATA,4,2                   ## @MII_DATA
	.no_dead_strip	_lan78xx_mdiobus_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_mdiobus_read
_lan78xx_mdiobus_read:                  ; @lan78xx_mdiobus_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x23, x1
	ldr	x19, [x0]
	ldr	w0, [x19]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_lan78xx_phy_wait_not_busy
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MII_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_READ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_mii_access
	mov	x2, x0
Lloh3:
	adrp	x8, _MII_ACC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ACC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan78xx_write_reg
	mov	x0, x19
	bl	_lan78xx_phy_wait_not_busy
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MII_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
	ldrh	w21, [sp, #12]
	b	LBB0_6
LBB0_4:
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_READ,4,2                   ; @MII_READ
	.comm	_MII_ACC,4,2                    ; @MII_ACC
	.comm	_MII_DATA,4,2                   ; @MII_DATA
	.no_dead_strip	_lan78xx_mdiobus_read
.subsections_via_symbols
