	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_relinquish_implicit_pstream_credits
_ath6kl_wmi_relinquish_implicit_pstream_credits: ## @ath6kl_wmi_relinquish_implicit_pstream_credits
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	(%r15), %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_WMM_NUM_AC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	notl	%r13d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	andl	%r13d, %r12d
	movl	8(%r15), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ath6kl_indicate_tx_activity
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_WMM_NUM_AC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	btl	%ebx, %r12d
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %r14d
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	%r12d, (%r15)
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMM_NUM_AC,4,2                 ## @WMM_NUM_AC
	.no_dead_strip	_ath6kl_wmi_relinquish_implicit_pstream_credits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_relinquish_implicit_pstream_credits
_ath6kl_wmi_relinquish_implicit_pstream_credits: ; @ath6kl_wmi_relinquish_implicit_pstream_credits
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w22, [x20]
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh0:
	adrp	x23, _WMM_NUM_AC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WMM_NUM_AC@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	mov	w24, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w25, w24, w21
	tst	w25, w22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x20, #16]
	ldr	w26, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_spin_unlock_bh
	cbnz	w26, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bic	w22, w22, w25
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_ath6kl_indicate_tx_activity
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_spin_lock_bh
	str	w22, [x20]
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WMM_NUM_AC,4,2                 ; @WMM_NUM_AC
	.no_dead_strip	_ath6kl_wmi_relinquish_implicit_pstream_credits
.subsections_via_symbols
