	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_set_mac80211_rx_flag
_iwl_mvm_set_mac80211_rx_flag:          ## @iwl_mvm_set_mac80211_rx_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	%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
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rdi, %r13
	movl	(%rsi), %edi
	callq	_ieee80211_has_protected
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	movq	_RX_MPDU_RES_STATUS_SEC_ENC_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	andl	%ebx, %eax
	movq	_RX_MPDU_RES_STATUS_SEC_NO_ENC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.2:
	movq	_RX_MPDU_RES_STATUS_SEC_ENC_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.3:
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	8(%r13), %rdi
	movq	_IWL_UCODE_TLV_API_DEPRECATE_TTAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_RX_MPDU_RES_STATUS_TTAK_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_21
LBB0_7:
	movq	_IEEE80211_TKIP_IV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_RX_MPDU_RES_STATUS_SEC_ENC_MSK@GOTPCREL(%rip), %rdx
LBB0_8:
	movq	_RX_MPDU_RES_STATUS_ICV_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.9:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	andl	(%rdx), %ebx
	cmpl	$128, %ebx
	jne	LBB0_21
## %bb.10:
	movq	_IEEE80211_WEP_IV_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	cmpl	$0, (%r13)
	jne	LBB0_21
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_IWL_ERR
	jmp	LBB0_21
LBB0_13:
	movq	_RX_MPDU_RES_STATUS_MIC_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.14:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_21
LBB0_15:
	movq	_RX_MPDU_RES_STATUS_MIC_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.16:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	_IEEE80211_CCMP_HDR_LEN@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_21
LBB0_20:
	movl	$-1, %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_RX_MPDU_RES_STATUS_SEC_ENC_MSK,4,2 ## @RX_MPDU_RES_STATUS_SEC_ENC_MSK
	.comm	_RX_MPDU_RES_STATUS_SEC_NO_ENC,4,2 ## @RX_MPDU_RES_STATUS_SEC_NO_ENC
	.comm	_RX_MPDU_RES_STATUS_SEC_ENC_ERR,4,2 ## @RX_MPDU_RES_STATUS_SEC_ENC_ERR
	.comm	_RX_MPDU_RES_STATUS_MIC_OK,4,2  ## @RX_MPDU_RES_STATUS_MIC_OK
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_IEEE80211_CCMP_HDR_LEN,4,2     ## @IEEE80211_CCMP_HDR_LEN
	.comm	_IWL_UCODE_TLV_API_DEPRECATE_TTAK,4,2 ## @IWL_UCODE_TLV_API_DEPRECATE_TTAK
	.comm	_RX_MPDU_RES_STATUS_TTAK_OK,4,2 ## @RX_MPDU_RES_STATUS_TTAK_OK
	.comm	_IEEE80211_TKIP_IV_LEN,4,2      ## @IEEE80211_TKIP_IV_LEN
	.comm	_RX_MPDU_RES_STATUS_ICV_OK,4,2  ## @RX_MPDU_RES_STATUS_ICV_OK
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ## @IEEE80211_WEP_IV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled alg: 0x%x\n"

	.no_dead_strip	_iwl_mvm_set_mac80211_rx_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_set_mac80211_rx_flag
_iwl_mvm_set_mac80211_rx_flag:          ; @iwl_mvm_set_mac80211_rx_flag
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x0
	ldr	w0, [x1]
	bl	_ieee80211_has_protected
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _RX_MPDU_RES_STATUS_SEC_ENC_MSK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_MPDU_RES_STATUS_SEC_ENC_MSK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w21
Lloh2:
	adrp	x9, _RX_MPDU_RES_STATUS_SEC_NO_ENC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_MPDU_RES_STATUS_SEC_NO_ENC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _RX_MPDU_RES_STATUS_SEC_ENC_ERR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RX_MPDU_RES_STATUS_SEC_ENC_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.5:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x0, [x22, #8]
Lloh10:
	adrp	x8, _IWL_UCODE_TLV_API_DEPRECATE_TTAK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_DEPRECATE_TTAK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbnz	w0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _RX_MPDU_RES_STATUS_TTAK_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_TTAK_OK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
LBB0_8:
Lloh16:
	adrp	x8, _IEEE80211_TKIP_IV_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_TKIP_IV_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
Lloh19:
	adrp	x8, _RX_MPDU_RES_STATUS_ICV_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_ICV_OK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.10:
Lloh22:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x23]
	and	w8, w8, w21
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.11:
	mov	w0, #0
Lloh25:
	adrp	x8, _IEEE80211_WEP_IV_LEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IEEE80211_WEP_IV_LEN@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.13:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_IWL_ERR
	b	LBB0_2
LBB0_14:
Lloh29:
	adrp	x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.15:
	mov	w0, #0
Lloh32:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_3
LBB0_16:
Lloh35:
	adrp	x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.17:
	mov	w0, #0
Lloh38:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh41:
	adrp	x8, _IEEE80211_CCMP_HDR_LEN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IEEE80211_CCMP_HDR_LEN@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_19:
	mov	w0, #-1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_RX_MPDU_RES_STATUS_SEC_ENC_MSK,4,2 ; @RX_MPDU_RES_STATUS_SEC_ENC_MSK
	.comm	_RX_MPDU_RES_STATUS_SEC_NO_ENC,4,2 ; @RX_MPDU_RES_STATUS_SEC_NO_ENC
	.comm	_RX_MPDU_RES_STATUS_SEC_ENC_ERR,4,2 ; @RX_MPDU_RES_STATUS_SEC_ENC_ERR
	.comm	_RX_MPDU_RES_STATUS_MIC_OK,4,2  ; @RX_MPDU_RES_STATUS_MIC_OK
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_IEEE80211_CCMP_HDR_LEN,4,2     ; @IEEE80211_CCMP_HDR_LEN
	.comm	_IWL_UCODE_TLV_API_DEPRECATE_TTAK,4,2 ; @IWL_UCODE_TLV_API_DEPRECATE_TTAK
	.comm	_RX_MPDU_RES_STATUS_TTAK_OK,4,2 ; @RX_MPDU_RES_STATUS_TTAK_OK
	.comm	_IEEE80211_TKIP_IV_LEN,4,2      ; @IEEE80211_TKIP_IV_LEN
	.comm	_RX_MPDU_RES_STATUS_ICV_OK,4,2  ; @RX_MPDU_RES_STATUS_ICV_OK
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ; @IEEE80211_WEP_IV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled alg: 0x%x\n"

	.no_dead_strip	_iwl_mvm_set_mac80211_rx_flag
.subsections_via_symbols
