	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_mdio_write
_jme_mdio_write:                        ## @jme_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_JME_SMI@GOTPCREL(%rip), %rdx
	movq	_SMI_OP_WRITE@GOTPCREL(%rip), %rax
	movq	_SMI_OP_REQ@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	orl	(%rax), %ebx
	movq	_SMI_DATA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	(%rdx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SMI_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_smi_phy_addr
	orl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_smi_reg_addr
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_jwrite32
	xorl	%eax, %eax
	callq	_wmb
	movq	_JME_PHY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	$50, %eax, %ebx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	movl	$1, %r12d
	cmovlel	%ebx, %r12d
	decl	%r12d
	incl	%ebx
	movq	_JME_SMI@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_jread32
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_2
## %bb.4:
	movl	%r12d, %ebx
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jeprintk                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JME_SMI,4,2                    ## @JME_SMI
	.comm	_SMI_OP_WRITE,4,2               ## @SMI_OP_WRITE
	.comm	_SMI_OP_REQ,4,2                 ## @SMI_OP_REQ
	.comm	_SMI_DATA_SHIFT,4,2             ## @SMI_DATA_SHIFT
	.comm	_SMI_DATA_MASK,4,2              ## @SMI_DATA_MASK
	.comm	_JME_PHY_TIMEOUT,4,2            ## @JME_PHY_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy(%d) write timeout : %d\n"

	.no_dead_strip	_jme_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_mdio_write
_jme_mdio_write:                        ; @jme_mdio_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x24, _JME_SMI@GOTPAGE
Lloh1:
	ldr	x24, [x24, _JME_SMI@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh2:
	adrp	x8, _SMI_OP_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMI_OP_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _SMI_OP_REQ@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SMI_OP_REQ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _SMI_DATA_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SMI_DATA_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w22, w9
Lloh10:
	adrp	x10, _SMI_DATA_MASK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SMI_DATA_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w22, w8, w9
	mov	x0, x20
	bl	_smi_phy_addr
	orr	w22, w22, w0
	mov	x0, x19
	bl	_smi_reg_addr
	orr	w2, w22, w0
	mov	x0, x21
	mov	x1, x23
	bl	_jwrite32
	bl	_wmb
Lloh13:
	adrp	x8, _JME_PHY_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JME_PHY_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	mov	w8, #50
	mul	w8, w9, w8
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	cmp	w8, #1
	csinc	w9, w8, wzr, lt
	sub	w22, w9, #1
	add	w23, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x21
	bl	_jread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w23, w23, #1
	cmp	w23, #1
	b.gt	LBB0_2
; %bb.4:
	cbz	w22, LBB0_7
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x22, x8
	cbnz	w22, LBB0_5
LBB0_7:
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_jeprintk
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_JME_SMI,4,2                    ; @JME_SMI
	.comm	_SMI_OP_WRITE,4,2               ; @SMI_OP_WRITE
	.comm	_SMI_OP_REQ,4,2                 ; @SMI_OP_REQ
	.comm	_SMI_DATA_SHIFT,4,2             ; @SMI_DATA_SHIFT
	.comm	_SMI_DATA_MASK,4,2              ; @SMI_DATA_MASK
	.comm	_JME_PHY_TIMEOUT,4,2            ; @JME_PHY_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy(%d) write timeout : %d\n"

	.no_dead_strip	_jme_mdio_write
.subsections_via_symbols
