	.file	"extr_bn_lib.c_bn_correct_top.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bn_correct_top
	.type	bn_correct_top, @function
bn_correct_top:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L2
	mov	rcx, QWORD PTR 8[rdi]
	movsx	rdx, eax
	lea	rdx, [rcx+rdx*8]
	.p2align 4,,10
	.p2align 3
.L4:
	sub	rdx, 8
	cmp	QWORD PTR [rdx], 0
	jne	.L3
	sub	eax, 1
	jne	.L4
.L3:
	mov	DWORD PTR [rdi], eax
.L2:
	test	eax, eax
	jne	.L5
	mov	QWORD PTR 24[rdi], 0
.L5:
	mov	eax, DWORD PTR BN_FLG_FIXED_TOP[rip]
	not	eax
	and	DWORD PTR 16[rdi], eax
	jmp	bn_pollute@PLT
	.cfi_endproc
.LFE0:
	.size	bn_correct_top, .-bn_correct_top
	.comm	BN_FLG_FIXED_TOP,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_bn_lib.c_bn_correct_top.c"
	.text
	.align	2
	.global	bn_correct_top
	.syntax unified
	.arm
	.fpu softvfp
	.type	bn_correct_top, %function
bn_correct_top:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L2
	ldr	r2, [r0, #4]
	add	r2, r2, r3, lsl #2
.L4:
	ldr	r1, [r2, #-4]!
	cmp	r1, #0
	bne	.L3
	subs	r3, r3, #1
	bne	.L4
.L3:
	str	r3, [r0]
.L2:
	ldr	r2, .L8
	cmp	r3, #0
	ldr	r2, [r2]
	streq	r3, [r0, #12]
	ldr	r3, [r0, #8]
	bic	r3, r3, r2
	str	r3, [r0, #8]
	b	bn_pollute
.L9:
	.align	2
.L8:
	.word	BN_FLG_FIXED_TOP
	.size	bn_correct_top, .-bn_correct_top
	.comm	BN_FLG_FIXED_TOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
