	.file	"extr_r92ce_calib.c_r92ce_iq_calib_compare_results.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r92ce_iq_calib_compare_results, @function
r92ce_iq_calib_compare_results:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	test	r9d, r9d
	jle	.L2
	mov	r13, rdi
	mov	r14, rdx
	mov	r15, r8
	mov	rbp, rsi
	xor	r12d, r12d
.L5:
	xor	ebx, ebx
.L4:
	mov	edi, DWORD PTR 0[rbp+rbx]
	cmp	edi, 255
	je	.L3
	mov	eax, DWORD PTR [rcx+rbx]
	cmp	eax, 255
	je	.L3
	cmp	DWORD PTR [r14+rbx], 255
	je	.L3
	cmp	DWORD PTR [r15+rbx], 255
	je	.L3
	sub	edi, eax
	mov	QWORD PTR 8[rsp], rcx
	call	abs@PLT
	cmp	rax, QWORD PTR RTWN_IQ_CAL_MAX_TOLERANCE[rip]
	mov	edi, DWORD PTR [r14+rbx]
	setle	al
	sub	edi, DWORD PTR [r15+rbx]
	movzx	eax, al
	mov	DWORD PTR 24[rsp+r12*4], eax
	call	abs@PLT
	cmp	rax, QWORD PTR RTWN_IQ_CAL_MAX_TOLERANCE[rip]
	mov	rcx, QWORD PTR 8[rsp]
	setle	al
	movzx	eax, al
	mov	DWORD PTR 32[rsp+r12*4], eax
.L3:
	add	rbx, 4
	cmp	rbx, 8
	jne	.L4
	mov	eax, DWORD PTR 0[r13]
	add	r12, 1
	add	r14, 8
	add	r15, 8
	add	rcx, 8
	add	rbp, 8
	cmp	eax, r12d
	jg	.L5
	mov	edx, DWORD PTR 24[rsp]
	cmp	eax, 1
	jle	.L6
	test	edx, edx
	je	.L2
	mov	esi, DWORD PTR 28[rsp]
	test	esi, esi
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L27
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	edx, edx
	je	.L2
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	je	.L2
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	ecx, DWORD PTR 32[rsp]
	test	ecx, ecx
	je	.L2
	mov	edx, DWORD PTR 36[rsp]
	mov	eax, 1
	test	edx, edx
	jne	.L1
	jmp	.L2
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r92ce_iq_calib_compare_results, .-r92ce_iq_calib_compare_results
	.comm	RTWN_IQ_CAL_MAX_TOLERANCE,8,8
	.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_r92ce_calib.c_r92ce_iq_calib_compare_results.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r92ce_iq_calib_compare_results, %function
r92ce_iq_calib_compare_results:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	str	r3, [sp, #12]
	ldr	r3, .L43
	ldr	r0, [r0]
	str	r1, [sp, #4]
	str	r2, [sp, #8]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [sp, #88]
	cmp	r0, ip
	str	ip, [sp, #40]
	str	ip, [sp, #36]
	str	ip, [sp, #32]
	str	ip, [sp, #28]
	str	r3, [sp, #16]
	ble	.L2
	mov	r3, ip
	ldr	r2, .L43+4
	add	r5, sp, #28
	ldr	fp, [r2]
	lsl	r2, r0, #3
	add	r4, sp, #36
	str	r2, [sp, #20]
.L5:
	ldr	r2, [sp, #4]
	add	r6, r2, r3
	ldr	r2, [sp, #12]
	add	r8, r2, r3
	ldr	r2, [sp, #8]
	add	r9, r2, r3
	ldr	r2, [sp, #16]
	add	r10, r2, r3
	mov	r2, #0
.L4:
	ldr	r1, [r6, r2, lsl #2]
	cmp	r1, #255
	beq	.L3
	ldr	r7, [r8, r2, lsl #2]
	cmp	r7, #255
	beq	.L3
	ldr	ip, [r9, r2, lsl #2]
	cmp	ip, #255
	beq	.L3
	ldr	lr, [r10, r2, lsl #2]
	cmp	lr, #255
	beq	.L3
	sub	r1, r1, r7
	sub	ip, ip, lr
	cmp	r1, #0
	rsblt	r1, r1, #0
	cmp	ip, #0
	rsblt	ip, ip, #0
	cmp	r1, fp
	movgt	r1, #0
	movle	r1, #1
	cmp	fp, ip
	movlt	ip, #0
	movge	ip, #1
	str	r1, [r5]
	str	ip, [r4]
.L3:
	cmp	r2, #1
	bne	.L9
	ldr	r1, [sp, #20]
	add	r3, r3, #8
	cmp	r3, r1
	add	r5, r5, #4
	add	r4, r4, #4
	bne	.L5
	cmp	r0, #1
	ldr	r3, [sp, #28]
	beq	.L6
	cmp	r3, #0
	beq	.L2
	ldr	r3, [sp, #32]
	cmp	r3, #0
	bne	.L41
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r2, #1
	b	.L4
.L6:
	cmp	r3, #0
	beq	.L2
	ldr	r3, [sp, #36]
	cmp	r3, #0
	beq	.L2
	b	.L1
.L41:
	ldr	r3, [sp, #36]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [sp, #40]
	cmp	r3, #0
	movne	r0, r2
	bne	.L1
	b	.L2
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	.LC0
	.word	RTWN_IQ_CAL_MAX_TOLERANCE
	.size	r92ce_iq_calib_compare_results, .-r92ce_iq_calib_compare_results
	.comm	RTWN_IQ_CAL_MAX_TOLERANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
