	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00debug_update_crypto      ## -- Begin function rt2x00debug_update_crypto
	.p2align	4, 0x90
_rt2x00debug_update_crypto:             ## @rt2x00debug_update_crypto
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movq	_CIPHER_TKIP_NO_MIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_CIPHER_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_CIPHER_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movq	_CIPHER_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_5
## %bb.4:
	movl	4(%rsi), %ecx
	movq	(%rdi), %rdx
	decl	%eax
	movq	_RX_CRYPTO_SUCCESS@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	sete	%dil
	movq	(%rdx), %rdx
	shlq	$4, %rax
	addl	%edi, (%rdx,%rax)
	movq	_RX_CRYPTO_FAIL_ICV@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	sete	%dil
	addl	%edi, 4(%rdx,%rax)
	movq	_RX_CRYPTO_FAIL_MIC@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	sete	%dil
	addl	%edi, 8(%rdx,%rax)
	movq	_RX_CRYPTO_FAIL_KEY@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	sete	%dil
	addl	%edi, 12(%rdx,%rax)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIPHER_TKIP_NO_MIC,4,2         ## @CIPHER_TKIP_NO_MIC
	.comm	_CIPHER_TKIP,4,2                ## @CIPHER_TKIP
	.comm	_CIPHER_NONE,4,2                ## @CIPHER_NONE
	.comm	_CIPHER_MAX,4,2                 ## @CIPHER_MAX
	.comm	_RX_CRYPTO_SUCCESS,4,2          ## @RX_CRYPTO_SUCCESS
	.comm	_RX_CRYPTO_FAIL_ICV,4,2         ## @RX_CRYPTO_FAIL_ICV
	.comm	_RX_CRYPTO_FAIL_MIC,4,2         ## @RX_CRYPTO_FAIL_MIC
	.comm	_RX_CRYPTO_FAIL_KEY,4,2         ## @RX_CRYPTO_FAIL_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00debug_update_crypto      ; -- Begin function rt2x00debug_update_crypto
	.p2align	2
_rt2x00debug_update_crypto:             ; @rt2x00debug_update_crypto
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CIPHER_TKIP_NO_MIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CIPHER_TKIP_NO_MIC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CIPHER_TKIP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CIPHER_TKIP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, w8, eq
Lloh6:
	adrp	x9, _CIPHER_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CIPHER_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CIPHER_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CIPHER_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #2, ne
	b.hs	LBB0_2
; %bb.1:
	ldr	w9, [x1, #4]
	ldr	x10, [x0]
	sub	w8, w8, #1
Lloh12:
	adrp	x11, _RX_CRYPTO_SUCCESS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _RX_CRYPTO_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w9, w11
	ldr	x10, [x10]
	add	x8, x10, w8, uxtw #4
	ldp	w10, w11, [x8]
	cinc	w10, w10, eq
	str	w10, [x8]
Lloh15:
	adrp	x10, _RX_CRYPTO_FAIL_ICV@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RX_CRYPTO_FAIL_ICV@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w10
	cinc	w10, w11, eq
	str	w10, [x8, #4]
Lloh18:
	adrp	x10, _RX_CRYPTO_FAIL_MIC@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RX_CRYPTO_FAIL_MIC@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	ldp	w10, w11, [x8, #8]
	cinc	w10, w10, eq
	str	w10, [x8, #8]
Lloh21:
	adrp	x10, _RX_CRYPTO_FAIL_KEY@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RX_CRYPTO_FAIL_KEY@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	cinc	w9, w11, eq
	str	w9, [x8, #12]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CIPHER_TKIP_NO_MIC,4,2         ; @CIPHER_TKIP_NO_MIC
	.comm	_CIPHER_TKIP,4,2                ; @CIPHER_TKIP
	.comm	_CIPHER_NONE,4,2                ; @CIPHER_NONE
	.comm	_CIPHER_MAX,4,2                 ; @CIPHER_MAX
	.comm	_RX_CRYPTO_SUCCESS,4,2          ; @RX_CRYPTO_SUCCESS
	.comm	_RX_CRYPTO_FAIL_ICV,4,2         ; @RX_CRYPTO_FAIL_ICV
	.comm	_RX_CRYPTO_FAIL_MIC,4,2         ; @RX_CRYPTO_FAIL_MIC
	.comm	_RX_CRYPTO_FAIL_KEY,4,2         ; @RX_CRYPTO_FAIL_KEY
.subsections_via_symbols
