	.file	"extr_htc_mbox.c_htc_proc_cred_rpt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"credit report ep %d credits %d\n"
	.text
	.p2align 4
	.type	htc_proc_cred_rpt, @function
htc_proc_cred_rpt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	spin_lock_bh@PLT
	test	ebx, ebx
	jle	.L2
	lea	r13d, -1[rbx]
	mov	DWORD PTR 12[rsp], 0
	xor	ebp, ebp
	add	r13, 1
	sal	r13, 4
	add	r13, r15
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rax, DWORD PTR ENDPOINT_0[rip]
	cmp	eax, r12d
	je	.L20
	add	DWORD PTR 32[rbx], edx
	add	DWORD PTR 28[rbx], 1
.L5:
	cmp	rcx, rax
	je	.L21
.L7:
	add	DWORD PTR 8[rbx], edx
	mov	DWORD PTR 12[rsp], 1
.L8:
	mov	rdi, rbx
	add	r15, 16
	call	get_queue_depth@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	ebx, DWORD PTR -8[r15]
	add	ebx, ebp
	mov	ebp, ebx
	cmp	r13, r15
	je	.L22
.L9:
	mov	rdx, QWORD PTR [r15]
	cmp	rdx, QWORD PTR ENDPOINT_MAX[rip]
	jnb	.L23
	mov	rcx, QWORD PTR 8[r15]
	mov	edi, DWORD PTR ATH6KL_DBG_CREDIT[rip]
	lea	rbx, [rdx+rdx*2]
	lea	rsi, .LC0[rip]
	sal	rbx, 4
	add	rbx, QWORD PTR 16[r14]
	call	ath6kl_dbg@PLT
	mov	rcx, QWORD PTR [r15]
	mov	eax, r12d
	mov	rdx, QWORD PTR 8[r15]
	add	DWORD PTR 16[rbx], 1
	add	DWORD PTR 44[rbx], edx
	cmp	rax, rcx
	jne	.L4
	movsx	rax, DWORD PTR ENDPOINT_0[rip]
	add	DWORD PTR 40[rbx], edx
	add	DWORD PTR 20[rbx], 1
	cmp	rcx, rax
	jne	.L7
.L21:
	add	DWORD PTR 12[rbx], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	add	DWORD PTR 36[rbx], edx
	add	DWORD PTR 24[rbx], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, 1
	call	WARN_ON@PLT
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	spin_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L11
	mov	edi, DWORD PTR 8[r14]
	mov	edx, DWORD PTR HTC_CREDIT_DIST_SEND_COMPLETE[rip]
	lea	rsi, 4[r14]
	call	ath6kl_credit_distribute@PLT
.L11:
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	test	ebx, ebx
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L24:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	htc_chk_ep_txq@PLT
	.cfi_endproc
.LFE0:
	.size	htc_proc_cred_rpt, .-htc_proc_cred_rpt
	.comm	HTC_CREDIT_DIST_SEND_COMPLETE,4,4
	.comm	ENDPOINT_MAX,8,8
	.comm	ENDPOINT_0,4,4
	.comm	ATH6KL_DBG_CREDIT,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_htc_mbox.c_htc_proc_cred_rpt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"credit report ep %d credits %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	htc_proc_cred_rpt, %function
htc_proc_cred_rpt:
	@ 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, r2
	sub	sp, sp, #12
	mov	r5, r1
	mov	r8, r3
	mov	r9, r0
	str	r2, [sp]
	bl	spin_lock_bh
	cmp	r4, #0
	ble	.L2
	mov	r3, #0
	ldr	r10, .L25
	mov	r7, r3
	mov	r6, r3
	ldr	fp, .L25+4
	str	r3, [sp, #4]
	add	r5, r5, #8
	b	.L9
.L4:
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L20
	ldr	ip, [r4, #32]
	ldr	r2, [r4, #28]
	add	ip, ip, r1
	add	r2, r2, #1
	cmp	r0, r3
	str	ip, [r4, #32]
	str	r2, [r4, #28]
	beq	.L21
.L7:
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [r4, #8]
	add	r1, r3, r1
	str	r1, [r4, #8]
.L8:
	mov	r0, r4
	bl	get_queue_depth
	ldr	r2, [sp]
	ldr	r3, [r5, #-4]
	add	r6, r6, #1
	cmp	r2, r6
	str	r0, [r4, #4]
	add	r7, r7, r3
	add	r5, r5, #8
	beq	.L22
.L9:
	ldr	r2, [r5, #-8]
	ldr	r3, [r10]
	add	r1, r2, r2, lsl #1
	cmp	r2, r3
	bcs	.L23
	ldr	r4, [r9, #12]
	ldr	r0, .L25+12
	add	r4, r4, r1, lsl #4
	ldr	r3, [r5, #-4]
	mov	r1, fp
	ldr	r0, [r0]
	bl	ath6kl_dbg
	ldmdb	r5, {r0, r1}
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #44]
	add	r2, r2, #1
	add	r3, r3, r1
	cmp	r0, r8
	str	r2, [r4, #16]
	str	r3, [r4, #44]
	bne	.L4
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #40]
	add	r3, r3, #1
	str	r3, [r4, #20]
	ldr	r3, .L25+8
	add	r2, r2, r1
	ldr	r3, [r3]
	str	r2, [r4, #40]
	cmp	r0, r3
	bne	.L7
.L21:
	ldr	r3, [r4, #12]
	add	r1, r3, r1
	str	r1, [r4, #12]
	b	.L8
.L20:
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #24]
	add	r2, r2, r1
	add	r3, r3, #1
	str	r2, [r4, #36]
	str	r3, [r4, #24]
	b	.L7
.L23:
	mov	r0, #1
	bl	WARN_ON
.L2:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_bh
.L22:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L25+16
	ldr	r0, [r9, #8]
	ldr	r2, [r3]
	add	r1, r9, #4
	bl	ath6kl_credit_distribute
.L11:
	mov	r0, r9
	bl	spin_unlock_bh
	cmp	r7, #0
	bne	.L24
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	htc_chk_ep_txq
.L26:
	.align	2
.L25:
	.word	ENDPOINT_MAX
	.word	.LC0
	.word	ENDPOINT_0
	.word	ATH6KL_DBG_CREDIT
	.word	HTC_CREDIT_DIST_SEND_COMPLETE
	.size	htc_proc_cred_rpt, .-htc_proc_cred_rpt
	.comm	HTC_CREDIT_DIST_SEND_COMPLETE,4,4
	.comm	ENDPOINT_MAX,4,4
	.comm	ENDPOINT_0,4,4
	.comm	ATH6KL_DBG_CREDIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
