	.file	"extr_ctxrx.c_zfCheckIsRIFSFrame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfCheckIsRIFSFrame
	.type	zfCheckIsRIFSFrame, @function
zfCheckIsRIFSFrame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	zmw_get_wlan_dev@PLT
	and	ebx, 128
	jne	.L2
	mov	rdx, QWORD PTR wd[rip]
	mov	rcx, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	mov	rax, QWORD PTR 24[rdx]
.L3:
	cmp	rax, rcx
	je	.L18
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdx]
	sub	rax, QWORD PTR 40[rdx]
	cmp	rax, QWORD PTR ZM_RIFS_TIMER_TIMEOUT[rip]
	jle	.L1
	mov	rdi, rbp
	call	zfHpDisableRifs@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], 0
	mov	DWORD PTR 8[rdx], 0
	mov	rdx, QWORD PTR ZM_RIFS_STATE_DETECTING[rip]
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], rdx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, 22
	mov	rsi, r12
	mov	rdi, rbp
	call	zmw_buf_readh@PLT
	mov	edx, 24
	mov	rsi, r12
	mov	rdi, rbp
	mov	ebx, eax
	call	zmw_buf_readh@PLT
	mov	rdx, QWORD PTR wd[rip]
	test	DWORD PTR ZM_BIT_5[rip], eax
	je	.L19
	mov	rsi, QWORD PTR 8[rdx]
	mov	rdi, QWORD PTR 16[rdx]
	sar	ebx, 4
	mov	rax, QWORD PTR 24[rdx]
	cmp	rax, QWORD PTR ZM_RIFS_STATE_DETECTING[rip]
	mov	DWORD PTR [rsi+rdi*4], ebx
	je	.L20
	mov	r8, QWORD PTR [rdx]
	mov	rcx, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	mov	r9, r8
	sub	r9, QWORD PTR 40[rdx]
	cmp	r9, QWORD PTR ZM_RIFS_TIMER_TIMEOUT[rip]
	jge	.L8
	mov	QWORD PTR 40[rdx], r8
.L8:
	mov	r8d, DWORD PTR 8[rsi]
	test	r8d, r8d
	je	.L9
	mov	r9d, DWORD PTR 4[rsi]
.L11:
	mov	DWORD PTR [rsi], r9d
	mov	DWORD PTR 4[rsi], r8d
	mov	DWORD PTR 8[rsi], 0
.L9:
	cmp	rdi, 1
	ja	.L3
	add	rdi, 1
	mov	QWORD PTR 16[rdx], rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 24[rdx]
	mov	rcx, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r8d, DWORD PTR 8[rsi]
	mov	rcx, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	test	r8d, r8d
	je	.L9
	mov	r9d, DWORD PTR 4[rsi]
	mov	ecx, r8d
	sub	ecx, r9d
	cmp	ecx, 2
	je	.L21
.L7:
	mov	rcx, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	jmp	.L11
.L21:
	mov	ecx, r9d
	sub	ecx, DWORD PTR [rsi]
	cmp	ecx, 2
	jne	.L7
	mov	r8d, DWORD PTR 56[rdx]
	mov	ecx, DWORD PTR 52[rdx]
	xor	esi, esi
	mov	rdi, rbp
	cmp	DWORD PTR 32[rdx], 2999
	setle	sil
	mov	edx, r8d
	call	zfHpEnableRifs@PLT
	mov	rdx, QWORD PTR wd[rip]
	mov	rax, QWORD PTR [rdx]
	add	DWORD PTR 48[rdx], 1
	mov	rsi, QWORD PTR 8[rdx]
	mov	rdi, QWORD PTR 16[rdx]
	mov	QWORD PTR 40[rdx], rax
	mov	rax, QWORD PTR ZM_RIFS_STATE_DETECTED[rip]
	mov	QWORD PTR 24[rdx], rax
	mov	rcx, rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	zfCheckIsRIFSFrame, .-zfCheckIsRIFSFrame
	.comm	wd,8,8
	.comm	ZM_RIFS_TIMER_TIMEOUT,8,8
	.comm	ZM_RIFS_STATE_DETECTING,8,8
	.comm	ZM_RIFS_STATE_DETECTED,8,8
	.comm	ZM_BIT_5,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ctxrx.c_zfCheckIsRIFSFrame.c"
	.text
	.align	2
	.global	zfCheckIsRIFSFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfCheckIsRIFSFrame, %function
zfCheckIsRIFSFrame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r1
	mov	r6, r0
	bl	zmw_get_wlan_dev
	tst	r4, #128
	bne	.L2
	ldr	r4, .L21
	ldr	r3, .L21+4
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r3, [r2, #12]
	cmp	r3, r1
	popne	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r0, .L21+8
	ldr	r3, [r2]
	ldr	r1, [r2, #20]
	ldr	r2, [r0]
	sub	r3, r3, r1
	cmp	r3, r2
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	bl	zfHpDisableRifs
	mov	r3, #0
	ldr	r2, [r4]
	ldr	r0, .L21+12
	ldr	r1, [r2, #4]
	ldr	r0, [r0]
	str	r3, [r1, #4]
	str	r3, [r1]
	str	r3, [r1, #8]
	str	r3, [r2, #8]
	str	r0, [r2, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r5
	mov	r2, #22
	mov	r0, r6
	bl	zmw_buf_readh
	mov	r3, r0
	mov	r1, r5
	mov	r2, #24
	mov	r0, r6
	mov	r5, r3
	bl	zmw_buf_readh
	ldr	r3, .L21+16
	ldr	r4, .L21
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L17
	ldr	r2, [r4]
	ldr	r3, .L21+12
	asr	r5, r5, #4
	ldr	r1, [r3]
	ldr	r3, [r2, #12]
	ldmib	r2, {r0, ip}
	cmp	r3, r1
	str	r5, [r0, ip, lsl #2]
	beq	.L18
	ldr	r5, .L21+8
	ldr	lr, [r2]
	ldr	r1, [r2, #20]
	ldr	r7, [r5]
	ldr	r5, .L21+4
	sub	r1, lr, r1
	cmp	r1, r7
	ldr	r1, [r5]
	strlt	lr, [r2, #20]
.L8:
	ldr	lr, [r0, #8]
	cmp	lr, #0
	beq	.L9
	ldr	r5, [r0, #4]
.L11:
	mov	r7, #0
	stm	r0, {r5, lr}
	str	r7, [r0, #8]
.L9:
	cmp	ip, #1
	addls	ip, ip, #1
	strls	ip, [r2, #8]
	cmp	r3, r1
	popne	{r4, r5, r6, r7, r8, pc}
	b	.L19
.L17:
	ldr	r3, .L21+4
	ldr	r2, [r4]
	ldr	r1, [r3]
	ldr	r3, [r2, #12]
	cmp	r3, r1
	popne	{r4, r5, r6, r7, r8, pc}
	b	.L19
.L18:
	ldr	lr, [r0, #8]
	cmp	lr, #0
	beq	.L6
	ldr	r5, [r0, #4]
	sub	r1, lr, r5
	cmp	r1, #2
	beq	.L20
.L7:
	ldr	r1, .L21+4
	ldr	r1, [r1]
	b	.L11
.L6:
	ldr	r1, .L21+4
	ldr	r1, [r1]
	b	.L9
.L20:
	ldr	r1, [r0]
	sub	r1, r5, r1
	cmp	r1, #2
	bne	.L7
	ldr	r1, .L21+20
	ldr	r0, [r2, #16]
	ldr	r3, [r2, #28]
	cmp	r0, r1
	movgt	r1, #0
	movle	r1, #1
	ldr	r2, [r2, #32]
	mov	r0, r6
	bl	zfHpEnableRifs
	ldr	r2, [r4]
	ldr	r3, .L21+4
	ldr	r1, [r2, #24]
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r1, r1, #1
	str	r0, [r2, #20]
	str	r1, [r2, #24]
	str	r3, [r2, #12]
	mov	r1, r3
	ldmib	r2, {r0, ip}
	b	.L8
.L22:
	.align	2
.L21:
	.word	wd
	.word	ZM_RIFS_STATE_DETECTED
	.word	ZM_RIFS_TIMER_TIMEOUT
	.word	ZM_RIFS_STATE_DETECTING
	.word	ZM_BIT_5
	.word	2999
	.size	zfCheckIsRIFSFrame, .-zfCheckIsRIFSFrame
	.comm	wd,4,4
	.comm	ZM_RIFS_TIMER_TIMEOUT,4,4
	.comm	ZM_RIFS_STATE_DETECTING,4,4
	.comm	ZM_RIFS_STATE_DETECTED,4,4
	.comm	ZM_BIT_5,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
