	.file	"extr_enetc_cbdr.c_enetc_send_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enetc_send_cmd, @function
enetc_send_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 16[rdi]
	xor	edi, edi
	mov	ebx, DWORD PTR ENETC_CBDR_TIMEOUT[rip]
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	enetc_cbd_unused@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L17
.L4:
	mov	r12d, DWORD PTR 0[rbp]
	movdqu	xmm0, XMMWORD PTR 0[rbp]
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 16[rbp]
	mov	edi, r12d
	movups	XMMWORD PTR [rsp], xmm0
	mov	DWORD PTR 16[rsp], eax
	call	ENETC_CBD@PLT
	mov	edx, DWORD PTR 0[r13]
	mov	edi, DWORD PTR 12[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	DWORD PTR [rax], edx
	lea	eax, 1[r12]
	cdq
	idiv	DWORD PTR 4[rbp]
	mov	DWORD PTR 0[rbp], edx
	mov	esi, edx
	mov	r12d, edx
	call	enetc_wr_reg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, 10
	call	udelay@PLT
	sub	ebx, 10
	je	.L7
.L6:
	mov	edi, DWORD PTR 8[rbp]
	call	enetc_rd_reg@PLT
	cmp	eax, r12d
	jne	.L18
	test	ebx, ebx
	je	.L7
	mov	rdi, rbp
	call	enetc_clean_cbdr@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	enetc_clean_cbdr@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	enetc_send_cmd, .-enetc_send_cmd
	.comm	ENETC_CBDR_TIMEOUT,4,4
	.comm	EIO,4,4
	.comm	EBUSY,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_enetc_cbdr.c_enetc_send_cmd.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enetc_send_cmd, %function
enetc_send_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #16]
	ldr	r3, .L19
	clz	r0, r0
	sub	sp, sp, #8
	lsr	r0, r0, #5
	mov	r6, r1
	ldr	r4, [r3]
	bl	unlikely
	subs	r7, r0, #0
	beq	.L2
	ldr	r3, .L19+4
	ldr	r0, [r3]
	rsb	r7, r0, #0
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	enetc_cbd_unused
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L17
.L4:
	ldm	r5, {r0, r1, r2, r3}
	ldr	ip, [r5, #16]
	str	r0, [sp, #4]
	str	ip, [sp]
	mov	r8, r0
	bl	ENETC_CBD
	mov	r3, r0
	ldr	r2, [r6]
	ldr	r1, [r5, #4]
	add	r0, r8, #1
	str	r2, [r3]
	bl	__aeabi_idivmod
	ldr	r0, [r5, #12]
	str	r1, [r5]
	mov	r6, r1
	bl	enetc_wr_reg
	b	.L6
.L18:
	mov	r0, #10
	bl	udelay
	subs	r4, r4, #10
	beq	.L7
.L6:
	ldr	r0, [r5, #8]
	bl	enetc_rd_reg
	cmp	r0, r6
	bne	.L18
	cmp	r4, #0
	beq	.L7
	mov	r0, r5
	bl	enetc_clean_cbdr
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	rsb	r7, r0, #0
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r5
	bl	enetc_clean_cbdr
	b	.L4
.L20:
	.align	2
.L19:
	.word	ENETC_CBDR_TIMEOUT
	.word	EIO
	.word	EBUSY
	.size	enetc_send_cmd, .-enetc_send_cmd
	.comm	ENETC_CBDR_TIMEOUT,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
