	.file	"extr_if_my.c_my_send_cmd_to_phy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	my_send_cmd_to_phy, @function
my_send_cmd_to_phy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, 32
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	MY_LOCK_ASSERT@PLT
	mov	esi, DWORD PTR MY_MANAGEMENT[rip]
	mov	rdi, r12
	call	CSR_READ_4@PLT
	mov	rbx, QWORD PTR MY_MASK_MIIR_MII_MDO[rip]
	add	rbx, QWORD PTR MY_MASK_MIIR_MII_WRITE[rip]
	and	eax, 4294967280
	or	rbx, rax
	mov	r15, rbx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbx, QWORD PTR MY_MASK_MIIR_MII_MDC[rip]
	mov	esi, DWORD PTR MY_MANAGEMENT[rip]
	mov	rdi, r12
	not	rbx
	and	r15, rbx
	mov	rdx, r15
	call	CSR_WRITE_4@PLT
	or	r15, QWORD PTR MY_MASK_MIIR_MII_MDC[rip]
	mov	esi, DWORD PTR MY_MANAGEMENT[rip]
	mov	rdi, r12
	mov	rdx, r15
	call	CSR_WRITE_4@PLT
	sub	ebp, 1
	jne	.L2
	mov	eax, DWORD PTR [r12]
	sal	r13d, 2
	mov	ebp, 32768
	or	r13d, r14d
	sal	eax, 7
	or	r13d, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR MY_MASK_MIIR_MII_MDO[rip]
	mov	rbx, QWORD PTR MY_MASK_MIIR_MII_MDC[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR MY_MANAGEMENT[rip]
	add	rbx, rax
	not	rbx
	and	r15, rbx
	or	rax, r15
	test	r13d, ebp
	cmovne	r15, rax
	sar	ebp
	mov	rdx, r15
	call	CSR_WRITE_4@PLT
	mov	esi, DWORD PTR MY_MANAGEMENT[rip]
	or	r15, QWORD PTR MY_MASK_MIIR_MII_MDC[rip]
	mov	rdi, r12
	mov	rdx, r15
	call	CSR_WRITE_4@PLT
	mov	edi, 30
	call	DELAY@PLT
	cmp	ebp, 2
	je	.L14
	test	ebp, ebp
	jne	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	DWORD PTR MY_OP_READ[rip], r14d
	jne	.L8
	mov	rax, QWORD PTR MY_MASK_MIIR_MII_WRITE[rip]
	not	rax
	and	r15, rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	my_send_cmd_to_phy, .-my_send_cmd_to_phy
	.comm	MY_OP_READ,4,4
	.comm	MY_MASK_MIIR_MII_WRITE,8,8
	.comm	MY_MASK_MIIR_MII_MDO,8,8
	.comm	MY_MASK_MIIR_MII_MDC,8,8
	.comm	MY_MANAGEMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_my.c_my_send_cmd_to_phy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_send_cmd_to_phy, %function
my_send_cmd_to_phy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r5, .L16
	sub	sp, sp, #12
	mov	r7, r2
	str	r1, [sp, #4]
	bl	MY_LOCK_ASSERT
	mov	r0, r4
	ldr	r1, [r5]
	bl	CSR_READ_4
	mov	r10, #32
	ldr	r3, .L16+4
	ldr	r8, .L16+8
	ldr	r2, [r3]
	ldr	r3, [r8]
	bic	r0, r0, #15
	add	r2, r2, r3
	ldr	r6, .L16+12
	orr	r9, r2, r0
.L2:
	ldr	r2, [r6]
	ldr	r1, [r5]
	bic	r9, r9, r2
	mov	r2, r9
	mov	r0, r4
	bl	CSR_WRITE_4
	ldr	r2, [r6]
	mov	r0, r4
	orr	r9, r9, r2
	mov	r2, r9
	ldr	r1, [r5]
	bl	CSR_WRITE_4
	subs	r10, r10, #1
	bne	.L2
	mov	fp, #32768
	ldr	r3, [sp, #4]
	ldr	r1, [r4]
	orr	r7, r3, r7, lsl #2
	ldr	r10, .L16+16
	orr	r7, r7, r1, lsl #7
.L8:
	ldr	r2, [r8]
	ldr	r3, [r6]
	tst	r7, fp
	add	r3, r2, r3
	bic	r9, r9, r3
	orrne	r9, r9, r2
	mov	r2, r9
	ldr	r1, [r5]
	mov	r0, r4
	bl	CSR_WRITE_4
	ldr	r2, [r6]
	ldr	r1, [r5]
	orr	r9, r9, r2
	mov	r2, r9
	mov	r0, r4
	bl	CSR_WRITE_4
	asr	fp, fp, #1
	mov	r0, #30
	bl	DELAY
	cmp	fp, #2
	beq	.L15
	cmp	fp, #0
	bne	.L8
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, [r10]
	ldr	r2, [sp, #4]
	cmp	r3, r2
	ldreq	r3, .L16+4
	ldreq	r3, [r3]
	biceq	r9, r9, r3
	b	.L8
.L17:
	.align	2
.L16:
	.word	MY_MANAGEMENT
	.word	MY_MASK_MIIR_MII_WRITE
	.word	MY_MASK_MIIR_MII_MDO
	.word	MY_MASK_MIIR_MII_MDC
	.word	MY_OP_READ
	.size	my_send_cmd_to_phy, .-my_send_cmd_to_phy
	.comm	MY_OP_READ,4,4
	.comm	MY_MASK_MIIR_MII_WRITE,4,4
	.comm	MY_MASK_MIIR_MII_MDO,4,4
	.comm	MY_MASK_MIIR_MII_MDC,4,4
	.comm	MY_MANAGEMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
