	.file	"extr_proto-snmp.c_asn1_length.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	asn1_length, @function
asn1_length:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR [rdx]
	cmp	r8, rsi
	jnb	.L2
	lea	rcx, [rdi+r8]
	movzx	eax, BYTE PTR [rcx]
	test	al, al
	js	.L14
.L3:
	lea	rax, 1[r8]
	mov	QWORD PTR [rdx], rax
	movzx	eax, BYTE PTR [rcx]
	test	al, al
	js	.L15
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	and	eax, 127
	add	rax, r8
	cmp	rax, rsi
	jb	.L3
.L2:
	mov	QWORD PTR [rdx], rsi
	mov	eax, 4294967295
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ecx, eax
	and	ecx, 127
	test	al, 127
	je	.L2
	lea	rax, 2[r8]
	mov	QWORD PTR [rdx], rax
	movzx	eax, BYTE PTR 1[rdi+r8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8, QWORD PTR [rdx]
	sal	rax, 8
	lea	r9, 1[r8]
	mov	QWORD PTR [rdx], r9
	movzx	r8d, BYTE PTR [rdi+r8]
	add	rax, r8
	cmp	rax, 65536
	ja	.L2
.L8:
	sub	ecx, 1
	jne	.L7
	ret
	.cfi_endproc
.LFE0:
	.size	asn1_length, .-asn1_length
	.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_proto-snmp.c_asn1_length.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asn1_length, %function
asn1_length:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	lr, [r2]
	cmp	lr, r1
	bcs	.L2
	mov	r3, r0
	ldrb	r0, [r0, lr]	@ zero_extendqisi2
	tst	r0, #128
	bne	.L16
.L3:
	add	r4, lr, #1
	str	r4, [r2]
	ldrb	r0, [r3, lr]	@ zero_extendqisi2
	tst	r0, #128
	popeq	{r4, pc}
	ands	ip, r0, #127
	beq	.L2
	add	lr, lr, #2
	str	lr, [r2]
	ldrb	r0, [r3, r4]	@ zero_extendqisi2
.L8:
	subs	ip, ip, #1
	popeq	{r4, pc}
	ldr	lr, [r2]
	add	r4, lr, #1
	str	r4, [r2]
	ldrb	lr, [r3, lr]	@ zero_extendqisi2
	add	r0, lr, r0, lsl #8
	cmp	r0, #65536
	bls	.L8
.L2:
	mvn	r0, #0
	str	r1, [r2]
	pop	{r4, pc}
.L16:
	and	r0, r0, #127
	add	r0, r0, lr
	cmp	r0, r1
	bcc	.L3
	b	.L2
	.size	asn1_length, .-asn1_length
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
