	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unimac_mdio_write
_unimac_mdio_write:                     ## @unimac_mdio_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%ecx, %eax
	movq	(%rdi), %rbx
	movq	_MDIO_PMD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_MDIO_REG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_MDIO_WR@GOTPCREL(%rip), %rcx
	movzwl	%ax, %eax
	orl	(%rcx), %eax
	orl	%eax, %esi
	orl	%edx, %esi
	movq	_MDIO_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_unimac_mdio_writel
	movq	%rbx, %rdi
	callq	_unimac_mdio_start
	movq	%rbx, %rax
	movl	8(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_WR,4,2                    ## @MDIO_WR
	.comm	_MDIO_PMD_SHIFT,4,2             ## @MDIO_PMD_SHIFT
	.comm	_MDIO_REG_SHIFT,4,2             ## @MDIO_REG_SHIFT
	.comm	_MDIO_CMD,4,2                   ## @MDIO_CMD
	.no_dead_strip	_unimac_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unimac_mdio_write
_unimac_mdio_write:                     ; @unimac_mdio_write
	.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	x19, [x0]
Lloh0:
	adrp	x8, _MDIO_WR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_WR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MDIO_PMD_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDIO_PMD_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w1, w9
Lloh6:
	adrp	x10, _MDIO_REG_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MDIO_REG_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w10, w2, w10
	and	w11, w3, #0xffff
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w1, w8, w10
Lloh9:
	adrp	x8, _MDIO_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_unimac_mdio_writel
	mov	x0, x19
	bl	_unimac_mdio_start
	ldr	x1, [x19]
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_WR,4,2                    ; @MDIO_WR
	.comm	_MDIO_PMD_SHIFT,4,2             ; @MDIO_PMD_SHIFT
	.comm	_MDIO_REG_SHIFT,4,2             ; @MDIO_REG_SHIFT
	.comm	_MDIO_CMD,4,2                   ; @MDIO_CMD
	.no_dead_strip	_unimac_mdio_write
.subsections_via_symbols
