	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_receive_frame_ok
_ath5k_receive_frame_ok:                ## @ath5k_receive_frame_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	incl	40(%rdi)
	movl	24(%rsi), %eax
	addl	%eax, 36(%rdi)
	movl	(%rsi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movl	(%rbx), %ecx
	movq	_AR5K_RXERR_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_3
## %bb.2:
	incl	32(%r14)
LBB0_3:
	movq	_AR5K_RXERR_FIFO@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	incl	28(%r14)
LBB0_5:
	movq	_AR5K_RXERR_PHY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.6:
	incl	24(%r14)
	movl	4(%rbx), %ecx
	leal	-1(%rcx), %edx
	xorl	%eax, %eax
	cmpl	$30, %edx
	ja	LBB0_17
## %bb.7:
	movq	16(%r14), %rdx
	incl	(%rdx,%rcx,4)
	jmp	LBB0_17
LBB0_8:
	movq	_AR5K_RXERR_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ecx, %esi
	je	LBB0_11
## %bb.9:
	incl	8(%r14)
	movq	8(%rbx), %rax
	movq	_AR5K_RXKEYIX_INVALID@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_11
## %bb.10:
	movl	$1, %eax
	andl	%ecx, %edx
	je	LBB0_17
LBB0_11:
	movq	_AR5K_RXERR_MIC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	incl	4(%r14)
	jmp	LBB0_16
LBB0_13:
	notl	%esi
	xorl	%eax, %eax
	testl	%esi, %ecx
	jne	LBB0_17
LBB0_14:
	movl	16(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	incl	(%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movl	$1, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_RXERR_CRC,4,2             ## @AR5K_RXERR_CRC
	.comm	_AR5K_RXERR_FIFO,4,2            ## @AR5K_RXERR_FIFO
	.comm	_AR5K_RXERR_PHY,4,2             ## @AR5K_RXERR_PHY
	.comm	_AR5K_RXERR_DECRYPT,4,2         ## @AR5K_RXERR_DECRYPT
	.comm	_AR5K_RXKEYIX_INVALID,8,3       ## @AR5K_RXKEYIX_INVALID
	.comm	_AR5K_RXERR_MIC,4,2             ## @AR5K_RXERR_MIC
	.no_dead_strip	_ath5k_receive_frame_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_receive_frame_ok
_ath5k_receive_frame_ok:                ; @ath5k_receive_frame_ok
	.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
	mov	x20, x1
	mov	x19, x0
	add	x8, x1, #24
	ldur	d0, [x0, #36]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x0, #36]
	ldr	w0, [x1]
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AR5K_RXERR_CRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_RXERR_CRC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w9, w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x19, #32]
	add	w10, w10, #1
	str	w10, [x19, #32]
LBB0_3:
Lloh3:
	adrp	x10, _AR5K_RXERR_FIFO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AR5K_RXERR_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w10, [x19, #28]
	add	w10, w10, #1
	str	w10, [x19, #28]
LBB0_5:
Lloh6:
	adrp	x10, _AR5K_RXERR_PHY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AR5K_RXERR_PHY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w8, [x20, #4]
	sub	w9, w8, #1
	cmp	w9, #30
	b.hi	LBB0_13
; %bb.7:
	mov	w0, #0
	ldr	x9, [x19, #16]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	b	LBB0_17
LBB0_8:
Lloh9:
	adrp	x10, _AR5K_RXERR_DECRYPT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AR5K_RXERR_DECRYPT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w11, [x19, #8]
	add	w11, w11, #1
	str	w11, [x19, #8]
	ldr	x11, [x20, #8]
Lloh12:
	adrp	x12, _AR5K_RXKEYIX_INVALID@GOTPAGE
Lloh13:
	ldr	x12, [x12, _AR5K_RXKEYIX_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x11, x12
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_16
LBB0_10:
Lloh15:
	adrp	x9, _AR5K_RXERR_MIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AR5K_RXERR_MIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_12:
	bics	wzr, w8, w10
	b.eq	LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_17
LBB0_14:
	ldr	w0, [x20, #16]
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_RXERR_CRC,4,2             ; @AR5K_RXERR_CRC
	.comm	_AR5K_RXERR_FIFO,4,2            ; @AR5K_RXERR_FIFO
	.comm	_AR5K_RXERR_PHY,4,2             ; @AR5K_RXERR_PHY
	.comm	_AR5K_RXERR_DECRYPT,4,2         ; @AR5K_RXERR_DECRYPT
	.comm	_AR5K_RXKEYIX_INVALID,8,3       ; @AR5K_RXKEYIX_INVALID
	.comm	_AR5K_RXERR_MIC,4,2             ; @AR5K_RXERR_MIC
	.no_dead_strip	_ath5k_receive_frame_ok
.subsections_via_symbols
