	.file	"extr_crc32.c_find_corrupted_bit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"n = %d, r = %d\n"
	.text
	.p2align 4
	.type	find_corrupted_bit, @function
find_corrupted_bit:
.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
	mov	ebx, edi
	mov	edi, esi
	lea	ebx, 32[0+rbx*8]
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	call	revbin@PLT
	mov	edi, ebx
	mov	DWORD PTR 12[rsp], ebx
	mov	r13d, eax
	call	sqrt@PLT
	pxor	xmm0, xmm0
	mov	edx, ebx
	mov	edi, 3
	cvtsi2sd	xmm0, rax
	addsd	xmm0, QWORD PTR .LC0[rip]
	lea	rsi, .LC1[rip]
	cvttsd2si	ebp, xmm0
	mov	ecx, ebp
	call	vkprintf@PLT
	mov	esi, 8
	mov	edi, ebp
	call	calloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	setne	dil
	call	assert@PLT
	movabs	rax, 4294967296
	mov	QWORD PTR [r14], rax
	cmp	ebp, 1
	jle	.L2
	lea	r15d, -2[rbp]
	mov	ebx, 1
	mov	edi, 1
	add	r15, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR -4[r14+rbx*8]
.L3:
	mov	DWORD PTR [r14+rbx*8], ebx
	call	xmult@PLT
	mov	DWORD PTR 4[r14+rbx*8], eax
	add	rbx, 1
	cmp	r15, rbx
	jne	.L19
.L2:
	mov	edi, -2107601189
	lea	rbx, 16[rsp]
	call	xmult@PLT
	xor	edi, edi
	cmp	eax, 1
	sete	dil
	xor	r12d, r12d
	call	assert@PLT
	mov	ecx, DWORD PTR cmp_fcb_table_entry[rip]
	mov	esi, ebp
	mov	rdi, r14
	mov	edx, 8
	call	qsort@PLT
	mov	esi, ebp
	mov	edi, -2107601189
	call	gf32_pow@PLT
	mov	r15d, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r12d
	mov	edi, r15d
	call	gf32_shl@PLT
	mov	DWORD PTR [rbx+r12*4], eax
	add	r12, 1
	cmp	r12, 32
	jne	.L4
	mov	eax, DWORD PTR 12[rsp]
	xor	r15d, r15d
	cdq
	idiv	ebp
	mov	r12d, eax
	test	eax, eax
	js	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, ebp
	mov	ecx, -1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	lea	edx, [rax+rcx]
	sar	edx
	movsx	rsi, edx
	cmp	DWORD PTR 4[r14+rsi*8], r13d
	cmova	eax, edx
	cmovbe	ecx, edx
.L7:
	mov	edx, eax
	sub	edx, ecx
	cmp	edx, 1
	jg	.L8
	test	ecx, ecx
	js	.L9
	movsx	rcx, ecx
	lea	rax, [r14+rcx*8]
	cmp	DWORD PTR 4[rax], r13d
	je	.L20
.L9:
	mov	esi, r13d
	mov	rdi, rbx
	add	r15d, 1
	call	gf32_matrix_times@PLT
	mov	r13d, eax
	cmp	r12d, r15d
	jge	.L5
.L6:
	mov	r12d, -1
.L10:
	mov	rdi, r14
	call	free@PLT
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	imul	ebp, r15d
	add	ebp, DWORD PTR [rax]
	mov	r12d, ebp
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_corrupted_bit, .-find_corrupted_bit
	.comm	cmp_fcb_table_entry,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1071644672
	.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_crc32.c_find_corrupted_bit.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"n = %d, r = %d\012\000"
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_corrupted_bit, %function
find_corrupted_bit:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L21
	mov	r5, r0
	sub	sp, sp, #136
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	bl	revbin
	add	r5, r5, #4
	lsl	r9, r5, #3
	mov	r4, r0
	mov	r0, r9
	bl	sqrt
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+4
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	mov	r6, r0
	mov	r3, r0
	mov	r2, r9
	ldr	r1, .L21+8
	mov	r0, #3
	bl	vkprintf
	mov	r1, #8
	mov	r0, r6
	bl	calloc
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r0, #1
	mov	r3, #0
	cmp	r6, r0
	str	r3, [r5]
	str	r0, [r5, #4]
	ble	.L2
	mov	r7, r5
	mov	r8, r0
	b	.L3
.L18:
	ldr	r0, [r7, #4]
.L3:
	str	r8, [r7, #8]
	bl	xmult
	add	r8, r8, #1
	cmp	r6, r8
	str	r0, [r7, #12]
	add	r7, r7, #8
	bne	.L18
.L2:
	ldr	r0, .L21+12
	bl	xmult
	sub	r0, r0, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L21+16
	mov	r2, #8
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r5
	bl	qsort
	mov	r1, r6
	ldr	r0, .L21+12
	bl	gf32_pow
	mov	r7, #0
	mov	r10, r0
	mov	r8, sp
.L4:
	mov	r1, r7
	mov	r0, r10
	bl	gf32_shl
	add	r7, r7, #1
	cmp	r7, #32
	str	r0, [r8, #4]!
	bne	.L4
	mov	r0, r9
	mov	r1, r6
	bl	__aeabi_idiv
	subs	r7, r0, #0
	movge	r8, #0
	blt	.L6
.L5:
	mov	r1, r6
	mvn	r2, #0
	b	.L7
.L8:
	add	r3, r1, r2
	asr	r3, r3, #1
	add	r0, r5, r3, lsl #3
	ldr	r0, [r0, #4]
	cmp	r0, r4
	movhi	r1, r3
	movls	r2, r3
.L7:
	sub	r3, r1, r2
	cmp	r3, #1
	bgt	.L8
	cmp	r2, #0
	blt	.L9
	add	r2, r5, r2, lsl #3
	ldr	r3, [r2, #4]
	cmp	r3, r4
	beq	.L19
.L9:
	mov	r1, r4
	add	r0, sp, #4
	bl	gf32_matrix_times
	add	r8, r8, #1
	cmp	r7, r8
	mov	r4, r0
	bge	.L5
.L6:
	mvn	r6, #0
.L10:
	mov	r0, r5
	bl	free
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r6
	add	sp, sp, #136
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, [r2]
	mla	r6, r8, r6, r3
	b	.L10
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	1071644672
	.word	.LC0
	.word	-2107601189
	.word	cmp_fcb_table_entry
	.size	find_corrupted_bit, .-find_corrupted_bit
	.comm	cmp_fcb_table_entry,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
