	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_set_decrypted_flag          ## -- Begin function il_set_decrypted_flag
	.p2align	4, 0x90
_il_set_decrypted_flag:                 ## @il_set_decrypted_flag
	.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	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	callq	_le16_to_cpu
	movq	_RXON_FILTER_DIS_DECRYPT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	testl	%ecx, (%rbx)
	je	LBB0_1
LBB0_12:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_IEEE80211_FCTL_PROTECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_D_RX
	movq	_RX_RES_STATUS_SEC_TYPE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.5:
	movq	_RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	jmp	LBB0_6
LBB0_9:
	movq	_RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	movq	_RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_RX_RES_STATUS_BAD_KEY_TTAK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_12
LBB0_10:
	movq	_RX_RES_STATUS_BAD_ICV_MIC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_6
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RX
	movl	$-1, %r12d
	jmp	LBB0_12
LBB0_6:
	movq	_RX_RES_STATUS_DECRYPT_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_12
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_D_RX
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_RXON_FILTER_DIS_DECRYPT_MSK,4,2 ## @RXON_FILTER_DIS_DECRYPT_MSK
	.comm	_IEEE80211_FCTL_PROTECTED,4,2   ## @IEEE80211_FCTL_PROTECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decrypt_res:0x%x\n"

	.comm	_RX_RES_STATUS_SEC_TYPE_MSK,4,2 ## @RX_RES_STATUS_SEC_TYPE_MSK
	.comm	_RX_RES_STATUS_DECRYPT_TYPE_MSK,4,2 ## @RX_RES_STATUS_DECRYPT_TYPE_MSK
	.comm	_RX_RES_STATUS_BAD_KEY_TTAK,4,2 ## @RX_RES_STATUS_BAD_KEY_TTAK
	.comm	_RX_RES_STATUS_BAD_ICV_MIC,4,2  ## @RX_RES_STATUS_BAD_ICV_MIC
L_.str.1:                               ## @.str.1
	.asciz	"Packet destroyed\n"

	.comm	_RX_RES_STATUS_DECRYPT_OK,4,2   ## @RX_RES_STATUS_DECRYPT_OK
L_.str.2:                               ## @.str.2
	.asciz	"hw decrypt successfully!!!\n"

	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_set_decrypted_flag          ; -- Begin function il_set_decrypted_flag
	.p2align	2
_il_set_decrypted_flag:                 ; @il_set_decrypted_flag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w0, [x1]
	bl	_le16_to_cpu
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _RXON_FILTER_DIS_DECRYPT_MSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXON_FILTER_DIS_DECRYPT_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
Lloh3:
	adrp	x8, _IEEE80211_FCTL_PROTECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FCTL_PROTECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_RX
Lloh8:
	adrp	x8, _RX_RES_STATUS_SEC_TYPE_MSK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_RES_STATUS_SEC_TYPE_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_1
; %bb.7:
Lloh11:
	adrp	x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w20
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w20
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RX_RES_STATUS_DECRYPT_TYPE_MSK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh20:
	adrp	x9, _RX_RES_STATUS_BAD_KEY_TTAK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RX_RES_STATUS_BAD_KEY_TTAK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_1
LBB0_10:
Lloh23:
	adrp	x9, _RX_RES_STATUS_BAD_ICV_MIC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RX_RES_STATUS_BAD_ICV_MIC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_RX
	mov	w0, #-1
	b	LBB0_2
LBB0_12:
Lloh28:
	adrp	x9, _RX_RES_STATUS_DECRYPT_OK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_RES_STATUS_DECRYPT_OK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_1
; %bb.13:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_RX
	mov	w0, #0
Lloh33:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RXON_FILTER_DIS_DECRYPT_MSK,4,2 ; @RXON_FILTER_DIS_DECRYPT_MSK
	.comm	_IEEE80211_FCTL_PROTECTED,4,2   ; @IEEE80211_FCTL_PROTECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decrypt_res:0x%x\n"

	.comm	_RX_RES_STATUS_SEC_TYPE_MSK,4,2 ; @RX_RES_STATUS_SEC_TYPE_MSK
	.comm	_RX_RES_STATUS_DECRYPT_TYPE_MSK,4,2 ; @RX_RES_STATUS_DECRYPT_TYPE_MSK
	.comm	_RX_RES_STATUS_BAD_KEY_TTAK,4,2 ; @RX_RES_STATUS_BAD_KEY_TTAK
	.comm	_RX_RES_STATUS_BAD_ICV_MIC,4,2  ; @RX_RES_STATUS_BAD_ICV_MIC
l_.str.1:                               ; @.str.1
	.asciz	"Packet destroyed\n"

	.comm	_RX_RES_STATUS_DECRYPT_OK,4,2   ; @RX_RES_STATUS_DECRYPT_OK
l_.str.2:                               ; @.str.2
	.asciz	"hw decrypt successfully!!!\n"

	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
.subsections_via_symbols
