	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_rx_decrypted
_ath5k_rx_decrypted:                    ## @ath5k_rx_decrypted
	.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	%rdx, %rbx
	movq	%rsi, %r15
	callq	_ath5k_hw_common
	movq	(%r15), %r14
	movq	_AR5K_RXERR_DECRYPT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdx
	movq	_AR5K_RXKEYIX_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
LBB0_2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_ieee80211_has_protected
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movl	(%r13), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_7
## %bb.4:
	leal	4(%r12), %ecx
	cmpl	%ecx, 8(%r15)
	jb	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	addl	$3, %r12d
	movl	(%rax,%r12,4), %edi
	sarl	$6, %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_test_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_6:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_RXERR_DECRYPT,4,2         ## @AR5K_RXERR_DECRYPT
	.comm	_AR5K_RXKEYIX_INVALID,8,3       ## @AR5K_RXKEYIX_INVALID
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.no_dead_strip	_ath5k_rx_decrypted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_rx_decrypted
_ath5k_rx_decrypted:                    ; @ath5k_rx_decrypted
	.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	x21, x2
	mov	x19, x1
	bl	_ath5k_hw_common
	mov	x20, x0
	ldr	x24, [x19]
	ldr	w8, [x21]
Lloh0:
	adrp	x23, _AR5K_RXERR_DECRYPT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR5K_RXERR_DECRYPT@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _AR5K_RXKEYIX_INVALID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR5K_RXKEYIX_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_2:
	ldr	w0, [x24]
	bl	_ieee80211_hdrlen
	mov	x22, x0
	ldr	w0, [x24]
	bl	_ieee80211_has_protected
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
	add	w9, w22, #4
	cmp	w8, w9
	b.hs	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
	add	w9, w22, #3
	ldr	w8, [x8, w9, uxtw #2]
	asr	w0, w8, #6
	ldr	w1, [x20]
	bl	_test_bit
Lloh8:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_RXERR_DECRYPT,4,2         ; @AR5K_RXERR_DECRYPT
	.comm	_AR5K_RXKEYIX_INVALID,8,3       ; @AR5K_RXKEYIX_INVALID
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.no_dead_strip	_ath5k_rx_decrypted
.subsections_via_symbols
