	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htc_process_credit_report
_ath10k_htc_process_credit_report:      ## @ath10k_htc_process_credit_report
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	testb	$15, %r15b
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_ath10k_warn
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpl	$16, %r15d
	jl	LBB0_8
## %bb.3:
	shrl	$4, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	decl	%r15d
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	_ATH10K_HTC_EP_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %r13
	movq	8(%rbx), %r8
	movq	%rcx, %r12
	shlq	$4, %r12
	movl	8(%r13,%r12), %r9d
	addl	%r8d, %r9d
	movl	%r9d, 8(%r13,%r12)
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	callq	_ath10k_dbg
	cmpq	$0, (%r13,%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r12, %r13
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	8(%r14), %rdi
	callq	*(%r13)
	movq	%r14, %rdi
	callq	_spin_lock_bh
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Uneven credit report len %d"

	.comm	_ATH10K_HTC_EP_COUNT,8,3        ## @ATH10K_HTC_EP_COUNT
	.comm	_ATH10K_DBG_HTC,4,2             ## @ATH10K_DBG_HTC
L_.str.1:                               ## @.str.1
	.asciz	"htc ep %d got %d credits (total %d)\n"

	.no_dead_strip	_ath10k_htc_process_credit_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htc_process_credit_report
_ath10k_htc_process_credit_report:      ; @ath10k_htc_process_credit_report
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	tst	w2, #0xf
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_ath10k_warn
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_bh
	cmp	w22, #16
	b.lt	LBB0_8
; %bb.3:
	lsr	w23, w22, #4
Lloh2:
	adrp	x24, _ATH10K_HTC_EP_COUNT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ATH10K_HTC_EP_COUNT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ATH10K_DBG_HTC@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #16
	subs	w23, w23, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x20]
	ldr	x8, [x24]
	cmp	x3, x8
	b.hs	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	x4, [x20, #8]
	add	x26, x8, x3, lsl #4
	ldr	w8, [x26, #8]
	add	w5, w8, w4
	str	w5, [x26, #8]
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_ath10k_dbg
	ldr	x8, [x26]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	x8, [x26]
	ldr	x0, [x19, #8]
	blr	x8
	mov	x0, x19
	bl	_spin_lock_bh
	b	LBB0_4
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Uneven credit report len %d"

	.comm	_ATH10K_HTC_EP_COUNT,8,3        ; @ATH10K_HTC_EP_COUNT
	.comm	_ATH10K_DBG_HTC,4,2             ; @ATH10K_DBG_HTC
l_.str.1:                               ; @.str.1
	.asciz	"htc ep %d got %d credits (total %d)\n"

	.no_dead_strip	_ath10k_htc_process_credit_report
.subsections_via_symbols
