	.file	"extr_enetc_cbdr.c_enetc_clean_cbdr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CMD err %04x for cmd %04x\n"
	.text
	.p2align 4
	.type	enetc_clean_cbdr, @function
enetc_clean_cbdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r12d, DWORD PTR 8[rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, 8
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	lea	eax, 1[r12]
	cdq
	idiv	DWORD PTR 12[rbx]
	mov	r12d, edx
.L2:
	mov	edi, DWORD PTR 16[rbx]
	call	enetc_rd_reg@PLT
	cmp	eax, r12d
	je	.L10
	mov	rdi, QWORD PTR 0[r13]
	mov	esi, DWORD PTR 8[r13]
	mov	edx, r12d
	call	ENETC_CBD@PLT
	mov	edx, DWORD PTR [rax]
	mov	rbp, rax
	and	edx, DWORD PTR ENETC_CBD_STATUS_MASK[rip]
	je	.L3
	mov	ecx, DWORD PTR 4[rax]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r14
	call	dev_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR 8[rbx], r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	enetc_clean_cbdr, .-enetc_clean_cbdr
	.comm	ENETC_CBD_STATUS_MASK,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_clean_cbdr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CMD err %04x for cmd %04x\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enetc_clean_cbdr, %function
enetc_clean_cbdr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r8, .L11
	ldr	r4, [r0, #4]
	ldr	r9, .L11+4
	add	r7, r0, #4
	b	.L2
.L3:
	mov	r2, #8
	mov	r1, #0
	mov	r0, r5
	bl	memset
	add	r0, r4, #1
	ldr	r1, [r6, #8]
	bl	__aeabi_idivmod
	mov	r4, r1
.L2:
	ldr	r0, [r6, #12]
	bl	enetc_rd_reg
	cmp	r0, r4
	beq	.L10
	ldm	r7, {r0, r1, r2}
	mov	r3, r4
	bl	ENETC_CBD
	ldr	r3, [r8]
	ldr	r2, [r0]
	mov	r5, r0
	ands	r2, r2, r3
	beq	.L3
	ldr	r3, [r0, #4]
	mov	r1, r9
	ldr	r0, [r6]
	bl	dev_warn
	b	.L3
.L10:
	str	r4, [r6, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	ENETC_CBD_STATUS_MASK
	.word	.LC0
	.size	enetc_clean_cbdr, .-enetc_clean_cbdr
	.comm	ENETC_CBD_STATUS_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
