	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htt_rx_crypto_icv_len
_ath10k_htt_rx_crypto_icv_len:          ## @ath10k_htt_rx_crypto_icv_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %edx
	xorl	%ebx, %ebx
	leal	-128(%rdx), %eax
	cmpl	$10, %eax
	ja	LBB0_5
## %bb.1:
	movl	$1984, %ecx                     ## imm = 0x7C0
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.2:
	movl	$5, %ecx
	btl	%eax, %ecx
	jb	LBB0_7
## %bb.3:
	movl	$48, %ecx
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.4:
	movq	_IEEE80211_TKIP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_7:
	movq	_IEEE80211_WEP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_warn
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_ICV_LEN,4,2      ## @IEEE80211_WEP_ICV_LEN
	.comm	_IEEE80211_TKIP_ICV_LEN,4,2     ## @IEEE80211_TKIP_ICV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported encryption type %d\n"

	.no_dead_strip	_ath10k_htt_rx_crypto_icv_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htt_rx_crypto_icv_len
_ath10k_htt_rx_crypto_icv_len:          ; @ath10k_htt_rx_crypto_icv_len
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	sub	w8, w1, #128
	cmp	w8, #10
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w8
	tst	w9, #0x7c0
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w10, #5
	tst	w9, w10
	b.ne	LBB0_6
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x30
	b.eq	LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _IEEE80211_TKIP_ICV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TKIP_ICV_LEN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _IEEE80211_WEP_ICV_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_WEP_ICV_LEN@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath10k_warn
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_ICV_LEN,4,2      ; @IEEE80211_WEP_ICV_LEN
	.comm	_IEEE80211_TKIP_ICV_LEN,4,2     ; @IEEE80211_TKIP_ICV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported encryption type %d\n"

	.no_dead_strip	_ath10k_htt_rx_crypto_icv_len
.subsections_via_symbols
