	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_proc_cred_rpt
_htc_proc_cred_rpt:                     ## @htc_proc_cred_rpt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_spin_lock_bh
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, 40(%r14,%rbx)
	leaq	(%r14,%rbx), %rdx
	addq	$20, %rdx
	movl	%r15d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	incl	(%rdx)
	movq	_ENDPOINT_0@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	leaq	8(%r14,%rbx), %rcx
	leaq	12(%r14,%rbx), %rdx
	cmovneq	%rcx, %rdx
	movl	$1, %ecx
	cmovnel	%ecx, %r15d
	leaq	(%r14,%rbx), %rdi
	addl	%eax, (%rdx)
	callq	_get_queue_depth
	movl	%eax, 4(%r14,%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	addl	8(%r12), %ebx
	addq	$16, %r12
	decl	%r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %r15d
	movq	(%r12), %r13
	movq	_ENDPOINT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %r14
	movq	_ATH6KL_DBG_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_ath6kl_dbg
	leaq	(,%r13,2), %rbx
	addq	%r13, %rbx
	shlq	$4, %rbx
	incl	16(%r14,%rbx)
	movl	8(%r12), %eax
	addl	%eax, 44(%r14,%rbx)
	movq	(%r12), %rcx
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	_ENDPOINT_0@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	movl	%r15d, %r13d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, 36(%r14,%rbx)
	leaq	(%r14,%rbx), %rdx
	addq	$24, %rdx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, 32(%r14,%rbx)
	leaq	(%r14,%rbx), %rdx
	addq	$28, %rdx
	jmp	LBB0_10
LBB0_3:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_4:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	movl	8(%r14), %edi
	leaq	4(%r14), %rsi
	movq	_HTC_CREDIT_DIST_SEND_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ath6kl_credit_distribute
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htc_chk_ep_txq                 ## TAILCALL
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENDPOINT_MAX,8,3               ## @ENDPOINT_MAX
	.comm	_ATH6KL_DBG_CREDIT,4,2          ## @ATH6KL_DBG_CREDIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"credit report ep %d credits %d\n"

	.comm	_ENDPOINT_0,4,2                 ## @ENDPOINT_0
	.comm	_HTC_CREDIT_DIST_SEND_COMPLETE,4,2 ## @HTC_CREDIT_DIST_SEND_COMPLETE
	.no_dead_strip	_htc_proc_cred_rpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_proc_cred_rpt
_htc_proc_cred_rpt:                     ; @htc_proc_cred_rpt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_spin_lock_bh
	cmp	w21, #0
	b.le	LBB0_10
; %bb.1:
	mov	w26, #0
	mov	w25, #0
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	w28, w20
	mov	w27, #48
Lloh0:
	adrp	x23, _ENDPOINT_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENDPOINT_0@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x10, x24, x27, x20
	ldr	w11, [x10, #40]
	add	w11, w11, w8
	str	w11, [x10, #40]
	add	x10, x10, #20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	ldrsw	x10, [x23]
	madd	x24, x24, x27, x20
	add	x11, x24, #8
	add	x12, x24, #12
	cmp	x9, x10
	csel	x9, x12, x11, eq
	csinc	w26, w26, wzr, eq
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	mov	x0, x24
	bl	_get_queue_depth
	str	w0, [x24, #4]
	ldr	w8, [x22, #8]
	add	w25, w25, w8
	add	x22, x22, #16
	subs	w21, w21, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x22]
Lloh2:
	adrp	x8, _ENDPOINT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENDPOINT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x24, x8
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x19, #16]
Lloh5:
	adrp	x8, _ATH6KL_DBG_CREDIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH6KL_DBG_CREDIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x3, [x22, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_ath6kl_dbg
	madd	x9, x24, x27, x20
	ldr	w8, [x9, #16]
	add	w8, w8, #1
	str	w8, [x9, #16]
	ldr	w8, [x22, #8]
	ldr	w10, [x9, #44]
	add	w10, w10, w8
	str	w10, [x9, #44]
	ldr	x9, [x22]
	cmp	x9, x28
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x23]
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w10, w11
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x10, x24, x27, x20
	ldr	w11, [x10, #36]
	add	w11, w11, w8
	str	w11, [x10, #36]
	add	x10, x10, #24
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x10, x24, x27, x20
	ldr	w11, [x10, #32]
	add	w11, w11, w8
	str	w11, [x10, #32]
	add	x10, x10, #28
	b	LBB0_3
LBB0_9:
	mov	w0, #1
	bl	_WARN_ON
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_bh
LBB0_11:
	cbz	w26, LBB0_13
; %bb.12:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
Lloh10:
	adrp	x8, _HTC_CREDIT_DIST_SEND_COMPLETE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HTC_CREDIT_DIST_SEND_COMPLETE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_ath6kl_credit_distribute
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	w25, LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_htc_chk_ep_txq
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENDPOINT_MAX,8,3               ; @ENDPOINT_MAX
	.comm	_ATH6KL_DBG_CREDIT,4,2          ; @ATH6KL_DBG_CREDIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"credit report ep %d credits %d\n"

	.comm	_ENDPOINT_0,4,2                 ; @ENDPOINT_0
	.comm	_HTC_CREDIT_DIST_SEND_COMPLETE,4,2 ; @HTC_CREDIT_DIST_SEND_COMPLETE
	.no_dead_strip	_htc_proc_cred_rpt
.subsections_via_symbols
