	.file	"extr_asn1.c_asn_get_real_integer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"truncated integer"
.LC1:
	.string	"zero-length integer"
.LC2:
	.string	"non-minimal integer"
	.text
	.p2align 4
	.type	asn_get_real_integer, @function
asn_get_real_integer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rdi]
	cmp	esi, ebx
	jl	.L23
	mov	rbp, rdx
	test	ebx, ebx
	je	.L24
	mov	rdx, QWORD PTR 8[rdi]
	mov	r13d, DWORD PTR ASN_ERR_OK[rip]
	mov	eax, DWORD PTR [rdx]
	cmp	ebx, 8
	jle	.L5
	mov	r13d, DWORD PTR ASN_ERR_RANGE[rip]
.L6:
	mov	r11d, eax
	lea	r12d, -1[rbx]
	not	ebx
	xor	ecx, ecx
	lea	r8d, -1[rsi]
	and	r11d, 128
	lea	r9, 4[rdx]
	add	esi, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR [r9]
	add	r9, 4
.L11:
	mov	r10d, eax
	sal	ecx, 8
	test	r11d, r11d
	mov	DWORD PTR [rdi], r8d
	not	r10d
	cmovne	eax, r10d
	sub	r8d, 1
	or	ecx, eax
	cmp	r8d, esi
	jne	.L25
	lea	rax, 4[rdx+r12*4]
	test	r11d, r11d
	mov	QWORD PTR 8[rdi], rax
	mov	eax, ecx
	not	eax
	cmovne	ecx, eax
	mov	eax, r13d
	mov	DWORD PTR 0[rbp], ecx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	ebx, 1
	jle	.L6
	test	eax, eax
	jne	.L7
	test	BYTE PTR 4[rdx], -128
	jne	.L6
.L8:
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 8[rsp], rdi
	call	asn_error@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r13d, DWORD PTR ASN_ERR_BADLEN[rip]
	mov	rdx, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR [rdi]
	mov	eax, DWORD PTR [rdx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC0[rip]
	call	asn_error@PLT
	mov	r13d, DWORD PTR ASN_ERR_EOBUF[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	asn_error@PLT
	mov	DWORD PTR 0[rbp], 0
	mov	r13d, DWORD PTR ASN_ERR_BADLEN[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	eax, 255
	jne	.L6
	test	BYTE PTR 4[rdx], -128
	je	.L6
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	asn_get_real_integer, .-asn_get_real_integer
	.comm	ASN_ERR_RANGE,4,4
	.comm	ASN_ERR_OK,4,4
	.comm	ASN_ERR_EOBUF,4,4
	.comm	ASN_ERR_BADLEN,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_asn1.c_asn_get_real_integer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"truncated integer\000"
	.align	2
.LC1:
	.ascii	"zero-length integer\000"
	.align	2
.LC2:
	.ascii	"non-minimal integer\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asn_get_real_integer, %function
asn_get_real_integer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, r1
	blt	.L25
	cmp	r1, #0
	mov	r7, r1
	mov	r8, r2
	beq	.L26
	ldr	r1, [r0, #4]
	ldr	r2, .L28
	cmp	r7, #8
	mov	r4, r0
	ldr	lr, [r1]
	ldr	r0, [r2]
	ble	.L5
	ldr	r2, .L28+4
	ldr	r0, [r2]
.L6:
	mvn	r6, r7
	mov	r5, r1
	add	r6, r6, r3
	mov	ip, #0
	sub	r3, r3, #1
	and	r2, lr, #128
	b	.L11
.L27:
	ldr	lr, [r5, #4]!
.L11:
	cmp	r2, #0
	mvnne	lr, lr
	str	r3, [r4]
	sub	r3, r3, #1
	lsl	ip, ip, #8
	cmp	r3, r6
	orr	ip, lr, ip
	bne	.L27
	cmp	r2, #0
	mvnne	ip, ip
	add	r1, r1, r7, lsl #2
	str	r1, [r4, #4]
	str	ip, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	cmp	r7, #1
	ble	.L6
	cmp	lr, #0
	bne	.L7
	ldr	r2, [r1, #4]
	tst	r2, #128
	bne	.L6
.L8:
	ldr	r1, .L28+8
	mov	r0, r4
	bl	asn_error
	ldr	r3, .L28+12
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	ldr	lr, [r1]
	ldr	r3, [r4]
	b	.L6
.L25:
	ldr	r1, .L28+16
	bl	asn_error
	ldr	r3, .L28+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r1, .L28+24
	bl	asn_error
	ldr	r3, .L28+12
	str	r7, [r8]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	cmp	lr, #255
	bne	.L6
	ldr	r2, [r1, #4]
	tst	r2, #128
	beq	.L6
	b	.L8
.L29:
	.align	2
.L28:
	.word	ASN_ERR_OK
	.word	ASN_ERR_RANGE
	.word	.LC2
	.word	ASN_ERR_BADLEN
	.word	.LC0
	.word	ASN_ERR_EOBUF
	.word	.LC1
	.size	asn_get_real_integer, .-asn_get_real_integer
	.comm	ASN_ERR_RANGE,4,4
	.comm	ASN_ERR_OK,4,4
	.comm	ASN_ERR_EOBUF,4,4
	.comm	ASN_ERR_BADLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
