	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_mbox_activity_changed
_ath6kl_htc_mbox_activity_changed:      ## @ath6kl_htc_mbox_activity_changed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r15
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %rbx
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_8
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r12
	callq	_spin_lock_bh
	movl	12(%r15,%rbx,8), %ecx
	movq	_HTC_EP_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	testl	%ecx, %eax
	jne	LBB0_9
## %bb.3:
	orl	%ecx, %eax
	jmp	LBB0_6
LBB0_8:
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_4:
	testl	%ecx, %eax
	je	LBB0_9
## %bb.5:
	notl	%eax
	andl	%ecx, %eax
LBB0_6:
	leaq	(%r15,%rbx,8), %rcx
	addq	$12, %rcx
	movl	%eax, (%rcx)
	leaq	(%r15,%rbx,8), %rdi
	addq	$8, %rdi
	callq	_get_queue_depth
	movl	%eax, 16(%r15,%rbx,8)
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %edx
	leaq	4(%r12), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rcx
	callq	_ath6kl_dbg
	movl	8(%r12), %edi
	movq	_HTC_CREDIT_DIST_ACTIVITY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_ath6kl_credit_distribute
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_10:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htc_chk_ep_txq                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_EP_ACTIVE,4,2              ## @HTC_EP_ACTIVE
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htc tx activity ctxt 0x%p dist 0x%p\n"

	.comm	_HTC_CREDIT_DIST_ACTIVITY_CHANGE,4,2 ## @HTC_CREDIT_DIST_ACTIVITY_CHANGE
	.no_dead_strip	_ath6kl_htc_mbox_activity_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_htc_mbox_activity_changed
_ath6kl_htc_mbox_activity_changed:      ; @ath6kl_htc_mbox_activity_changed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #16]
	mov	w8, #24
	umull	x8, w1, w8
	ldr	x8, [x21, x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	mov	w22, w1
	bl	_spin_lock_bh
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w9, [x8, #12]!
Lloh0:
	adrp	x10, _HTC_EP_ACTIVE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HTC_EP_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w11, w10, w9
	cbz	w20, LBB0_5
; %bb.2:
	cbnz	w11, LBB0_9
; %bb.3:
	orr	w9, w10, w9
	b	LBB0_7
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WARN_ON
LBB0_5:
	cbz	w11, LBB0_9
; %bb.6:
	bic	w9, w9, w10
LBB0_7:
	str	w9, [x8]
	mov	w8, #24
	madd	x21, x22, x8, x21
	add	x0, x21, #8
	bl	_get_queue_depth
	str	w0, [x21, #16]
Lloh3:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	add	x21, x19, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_ath6kl_dbg
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _HTC_CREDIT_DIST_ACTIVITY_CHANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTC_CREDIT_DIST_ACTIVITY_CHANGE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_ath6kl_credit_distribute
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	w20, LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_htc_chk_ep_txq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_EP_ACTIVE,4,2              ; @HTC_EP_ACTIVE
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htc tx activity ctxt 0x%p dist 0x%p\n"

	.comm	_HTC_CREDIT_DIST_ACTIVITY_CHANGE,4,2 ; @HTC_CREDIT_DIST_ACTIVITY_CHANGE
	.no_dead_strip	_ath6kl_htc_mbox_activity_changed
.subsections_via_symbols
