	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_translate_rx_status
_iwlagn_translate_rx_status:            ## @iwlagn_translate_rx_status
	.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
	movq	_RX_RES_STATUS_STATION_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
	notl	%eax
	movq	_RX_RES_STATUS_NO_STATION_INFO_MISMATCH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%ecx, %esi
	xorl	%ebx, %ebx
	testl	%eax, %ecx
	cmovel	%esi, %ebx
	movq	_RX_RES_STATUS_SEC_TYPE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	orl	%ecx, %ebx
	movq	_RX_RES_STATUS_SEC_TYPE_NONE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_13
## %bb.1:
	movq	_RX_RES_STATUS_SEC_TYPE_ERR@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_13
## %bb.2:
	movq	_RX_MPDU_RES_STATUS_DEC_DONE_MSK@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_13
## %bb.3:
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.5:
	movq	_RX_MPDU_RES_STATUS_MIC_OK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_9
LBB0_6:
	movq	_RX_RES_STATUS_DECRYPT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_RX_MPDU_RES_STATUS_TTAK_OK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_11
LBB0_8:
	movq	_RX_MPDU_RES_STATUS_ICV_OK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_6
LBB0_9:
	movq	_RX_RES_STATUS_BAD_ICV_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_RX_RES_STATUS_BAD_KEY_TTAK@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_IWL_DEBUG_RX
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RES_STATUS_STATION_FOUND,4,2 ## @RX_RES_STATUS_STATION_FOUND
	.comm	_RX_RES_STATUS_NO_STATION_INFO_MISMATCH,4,2 ## @RX_RES_STATUS_NO_STATION_INFO_MISMATCH
	.comm	_RX_RES_STATUS_SEC_TYPE_MSK,4,2 ## @RX_RES_STATUS_SEC_TYPE_MSK
	.comm	_RX_RES_STATUS_SEC_TYPE_NONE,4,2 ## @RX_RES_STATUS_SEC_TYPE_NONE
	.comm	_RX_RES_STATUS_SEC_TYPE_ERR,4,2 ## @RX_RES_STATUS_SEC_TYPE_ERR
	.comm	_RX_MPDU_RES_STATUS_DEC_DONE_MSK,4,2 ## @RX_MPDU_RES_STATUS_DEC_DONE_MSK
	.comm	_RX_MPDU_RES_STATUS_MIC_OK,4,2  ## @RX_MPDU_RES_STATUS_MIC_OK
	.comm	_RX_RES_STATUS_BAD_ICV_MIC,4,2  ## @RX_RES_STATUS_BAD_ICV_MIC
	.comm	_RX_RES_STATUS_DECRYPT_OK,4,2   ## @RX_RES_STATUS_DECRYPT_OK
	.comm	_RX_MPDU_RES_STATUS_TTAK_OK,4,2 ## @RX_MPDU_RES_STATUS_TTAK_OK
	.comm	_RX_RES_STATUS_BAD_KEY_TTAK,4,2 ## @RX_RES_STATUS_BAD_KEY_TTAK
	.comm	_RX_MPDU_RES_STATUS_ICV_OK,4,2  ## @RX_MPDU_RES_STATUS_ICV_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decrypt_in:0x%x  decrypt_out = 0x%x\n"

	.no_dead_strip	_iwlagn_translate_rx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_translate_rx_status
_iwlagn_translate_rx_status:            ; @iwlagn_translate_rx_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _RX_RES_STATUS_STATION_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_RES_STATUS_STATION_FOUND@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RX_RES_STATUS_NO_STATION_INFO_MISMATCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_RES_STATUS_NO_STATION_INFO_MISMATCH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bics	wzr, w8, w1
Lloh6:
	adrp	x8, _RX_RES_STATUS_SEC_TYPE_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_RES_STATUS_SEC_TYPE_MSK@GOTPAGEOFF]
	csel	w9, w9, wzr, eq
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w1
	orr	w19, w9, w8
Lloh9:
	adrp	x9, _RX_RES_STATUS_SEC_TYPE_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RX_RES_STATUS_SEC_TYPE_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _RX_RES_STATUS_SEC_TYPE_ERR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RX_RES_STATUS_SEC_TYPE_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_9
; %bb.1:
	mov	x2, x1
Lloh15:
	adrp	x9, _RX_MPDU_RES_STATUS_DEC_DONE_MSK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RX_MPDU_RES_STATUS_DEC_DONE_MSK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	bics	wzr, w9, w1
	b.ne	LBB0_9
; %bb.2:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.4:
Lloh18:
	adrp	x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_MIC_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh20:
	adrp	x8, _RX_MPDU_RES_STATUS_TTAK_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_TTAK_OK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_10
LBB0_6:
Lloh23:
	adrp	x8, _RX_MPDU_RES_STATUS_ICV_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RX_MPDU_RES_STATUS_ICV_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _RX_RES_STATUS_DECRYPT_OK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RX_RES_STATUS_DECRYPT_OK@GOTPAGEOFF]
Lloh27:
	adrp	x10, _RX_RES_STATUS_BAD_ICV_MIC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RX_RES_STATUS_BAD_ICV_MIC@GOTPAGEOFF]
	tst	w8, w2
	csel	x8, x10, x9, eq
LBB0_8:
	ldr	w8, [x8]
	orr	w19, w8, w19
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_IWL_DEBUG_RX
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh31:
	adrp	x8, _RX_RES_STATUS_BAD_KEY_TTAK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RX_RES_STATUS_BAD_KEY_TTAK@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RES_STATUS_STATION_FOUND,4,2 ; @RX_RES_STATUS_STATION_FOUND
	.comm	_RX_RES_STATUS_NO_STATION_INFO_MISMATCH,4,2 ; @RX_RES_STATUS_NO_STATION_INFO_MISMATCH
	.comm	_RX_RES_STATUS_SEC_TYPE_MSK,4,2 ; @RX_RES_STATUS_SEC_TYPE_MSK
	.comm	_RX_RES_STATUS_SEC_TYPE_NONE,4,2 ; @RX_RES_STATUS_SEC_TYPE_NONE
	.comm	_RX_RES_STATUS_SEC_TYPE_ERR,4,2 ; @RX_RES_STATUS_SEC_TYPE_ERR
	.comm	_RX_MPDU_RES_STATUS_DEC_DONE_MSK,4,2 ; @RX_MPDU_RES_STATUS_DEC_DONE_MSK
	.comm	_RX_MPDU_RES_STATUS_MIC_OK,4,2  ; @RX_MPDU_RES_STATUS_MIC_OK
	.comm	_RX_RES_STATUS_BAD_ICV_MIC,4,2  ; @RX_RES_STATUS_BAD_ICV_MIC
	.comm	_RX_RES_STATUS_DECRYPT_OK,4,2   ; @RX_RES_STATUS_DECRYPT_OK
	.comm	_RX_MPDU_RES_STATUS_TTAK_OK,4,2 ; @RX_MPDU_RES_STATUS_TTAK_OK
	.comm	_RX_RES_STATUS_BAD_KEY_TTAK,4,2 ; @RX_RES_STATUS_BAD_KEY_TTAK
	.comm	_RX_MPDU_RES_STATUS_ICV_OK,4,2  ; @RX_MPDU_RES_STATUS_ICV_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decrypt_in:0x%x  decrypt_out = 0x%x\n"

	.no_dead_strip	_iwlagn_translate_rx_status
.subsections_via_symbols
