	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_cac_event_rx
_ath6kl_wmi_cac_event_rx:               ## @ath6kl_wmi_cac_event_rx
	.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
	cmpl	$31, %edx
	jbe	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	(%rsi), %rsi
	movq	_WMM_NUM_AC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jae	LBB0_3
## %bb.4:
	movq	%rcx, %r15
	movq	%rdi, %r14
	movq	8(%r12), %rax
	movq	_CAC_INDICATION_ADMISSION_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	16(%r12), %rcx
	movq	_IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_7:
	movq	_CAC_INDICATION_NO_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.8:
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %r13d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %r13d
	jb	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %eax
	shrl	%cl, %eax
	testb	$2, %al
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %eax
	shrl	%cl, %eax
	testb	$4, %al
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %eax
	shrl	%cl, %eax
	testb	$8, %al
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$4, %ecx
	cmpl	$32, %ecx
	jne	LBB0_9
	jmp	LBB0_22
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_CAC_INDICATION_DELETE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	_IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	andl	%eax, (%rcx,%rdx,4)
	setne	%r15b
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	testb	%r15b, %r15b
	jne	LBB0_22
## %bb.21:
	movl	12(%r14), %edi
	movq	(%r12), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_ath6kl_indicate_tx_activity
	movb	(%r12), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, 8(%r14)
	jmp	LBB0_22
LBB0_6:
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%r15), %esi
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	jmp	LBB0_18
LBB0_16:
	incl	%ecx
	jmp	LBB0_17
LBB0_15:
	addl	$2, %ecx
	jmp	LBB0_17
LBB0_14:
	addl	$3, %ecx
LBB0_17:
	movl	(%r15), %esi
	movq	(%r12), %rdx
	movq	%r14, %rdi
LBB0_18:
	callq	_ath6kl_wmi_delete_pstream_cmd
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WMM_NUM_AC,8,3                 ## @WMM_NUM_AC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid AC: %d\n"

	.comm	_CAC_INDICATION_ADMISSION_RESP,8,3 ## @CAC_INDICATION_ADMISSION_RESP
	.comm	_IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED,8,3 ## @IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED
	.comm	_IEEE80211_WMM_IE_TSPEC_TID_SHIFT,4,2 ## @IEEE80211_WMM_IE_TSPEC_TID_SHIFT
	.comm	_IEEE80211_WMM_IE_TSPEC_TID_MASK,4,2 ## @IEEE80211_WMM_IE_TSPEC_TID_MASK
	.comm	_CAC_INDICATION_NO_RESP,8,3     ## @CAC_INDICATION_NO_RESP
	.comm	_CAC_INDICATION_DELETE,8,3      ## @CAC_INDICATION_DELETE
	.no_dead_strip	_ath6kl_wmi_cac_event_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_cac_event_rx
_ath6kl_wmi_cac_event_rx:               ; @ath6kl_wmi_cac_event_rx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w2, #31
	b.ls	LBB0_9
; %bb.1:
	mov	x20, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _WMM_NUM_AC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMM_NUM_AC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.hs	LBB0_8
; %bb.2:
	mov	x21, x3
	mov	x19, x0
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _CAC_INDICATION_ADMISSION_RESP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAC_INDICATION_ADMISSION_RESP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x20, #16]
Lloh6:
	adrp	x10, _IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
LBB0_4:
Lloh9:
	adrp	x9, _CAC_INDICATION_NO_RESP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAC_INDICATION_NO_RESP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w23, [x8, x9, lsl #2]
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	w3, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w23, w3
	tbnz	w8, #0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w3, w3, #1
	cmp	w3, #32
	b.ne	LBB0_6
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh17:
	adrp	x9, _CAC_INDICATION_DELETE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAC_INDICATION_DELETE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
Lloh20:
	adrp	x8, _IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh23:
	adrp	x9, _IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w23, w8, w9
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_bh
	mov	w22, #1
	lsl	w8, w22, w23
	ldr	x9, [x19]
	ldr	x10, [x20]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w23, w11, w8
	str	w23, [x9, x10]
	mov	x0, x21
	bl	_spin_unlock_bh
	cbz	w23, LBB0_16
LBB0_13:
	mov	w0, #0
	b	LBB0_10
LBB0_14:
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
Lloh26:
	adrp	x8, _IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_WMM_IE_TSPEC_TID_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh29:
	adrp	x9, _IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IEEE80211_WMM_IE_TSPEC_TID_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	and	w3, w8, w9
LBB0_15:
	ldr	w1, [x21]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_ath6kl_wmi_delete_pstream_cmd
	mov	w0, #0
	b	LBB0_10
LBB0_16:
	ldr	w0, [x19, #12]
	ldr	x1, [x20]
	mov	w2, #0
	bl	_ath6kl_indicate_tx_activity
	mov	w0, #0
	ldr	w8, [x20]
	lsl	w8, w22, w8
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WMM_NUM_AC,8,3                 ; @WMM_NUM_AC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid AC: %d\n"

	.comm	_CAC_INDICATION_ADMISSION_RESP,8,3 ; @CAC_INDICATION_ADMISSION_RESP
	.comm	_IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED,8,3 ; @IEEE80211_TSPEC_STATUS_ADMISS_ACCEPTED
	.comm	_IEEE80211_WMM_IE_TSPEC_TID_SHIFT,4,2 ; @IEEE80211_WMM_IE_TSPEC_TID_SHIFT
	.comm	_IEEE80211_WMM_IE_TSPEC_TID_MASK,4,2 ; @IEEE80211_WMM_IE_TSPEC_TID_MASK
	.comm	_CAC_INDICATION_NO_RESP,8,3     ; @CAC_INDICATION_NO_RESP
	.comm	_CAC_INDICATION_DELETE,8,3      ; @CAC_INDICATION_DELETE
	.no_dead_strip	_ath6kl_wmi_cac_event_rx
.subsections_via_symbols
