	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cavium_mdiobus_c45_addr
_cavium_mdiobus_c45_addr:               ## @cavium_mdiobus_c45_addr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_C45@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cavium_mdiobus_set_mode
	movzwl	%bx, %edi
	movq	_SMI_WR_DAT@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	callq	_oct_mdio_writeq
	shrl	$16, %ebx
	andl	$31, %ebx
	shlq	$32, %rbx
	movl	%r15d, %edi
	orq	%rbx, %rdi
	movq	_SMI_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_oct_mdio_writeq
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	___delay
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_oct_mdio_readq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C45,4,2                        ## @C45
	.comm	_SMI_WR_DAT,8,3                 ## @SMI_WR_DAT
	.comm	_SMI_CMD,8,3                    ## @SMI_CMD
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cavium_mdiobus_c45_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cavium_mdiobus_c45_addr
_cavium_mdiobus_c45_addr:               ; @cavium_mdiobus_c45_addr
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _C45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C45@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cavium_mdiobus_set_mode
	and	w0, w19, #0xffff
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _SMI_WR_DAT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SMI_WR_DAT@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_oct_mdio_writeq
	ubfx	w8, w19, #16, #5
	mov	w0, w20
	bfi	x0, x8, #32, #5
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _SMI_CMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SMI_CMD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_oct_mdio_writeq
	mov	w0, #1000
	bl	___delay
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_oct_mdio_readq
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_C45,4,2                        ; @C45
	.comm	_SMI_WR_DAT,8,3                 ; @SMI_WR_DAT
	.comm	_SMI_CMD,8,3                    ; @SMI_CMD
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cavium_mdiobus_c45_addr
.subsections_via_symbols
