	.file	"extr_asn1.c_asn1_length_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	asn1_length_decode, @function
asn1_length_decode:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 7[rsp]
	mov	rsi, r13
	call	asn1_octet_decode@PLT
	test	eax, eax
	je	.L7
	movzx	eax, BYTE PTR 7[rsp]
	cmp	al, -128
	je	.L16
	mov	DWORD PTR [r12], 1
	test	al, al
	js	.L6
	mov	DWORD PTR 0[rbp], eax
.L5:
	mov	edx, DWORD PTR [rbx]
	sub	edx, DWORD PTR 4[rbx]
	cmp	edx, eax
	setnb	al
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	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
.L16:
	.cfi_restore_state
	mov	DWORD PTR [r12], 0
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	and	eax, 127
	mov	DWORD PTR 0[rbp], 0
	mov	r12d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 0[rbp]
	movzx	edx, BYTE PTR 7[rsp]
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR 0[rbp], eax
	sub	r12b, 1
	je	.L5
.L8:
	mov	rsi, r13
	mov	rdi, rbx
	call	asn1_octet_decode@PLT
	test	eax, eax
	jne	.L18
.L7:
	xor	eax, eax
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	asn1_length_decode, .-asn1_length_decode
	.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_asn1_length_decode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asn1_length_decode, %function
asn1_length_decode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L20
	sub	sp, sp, #8
	mov	r4, r1
	add	r1, sp, #3
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	asn1_octet_decode
	cmp	r0, #0
	beq	.L7
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	cmp	r3, #128
	beq	.L16
	mov	r2, #1
	tst	r3, #128
	str	r2, [r4]
	streq	r3, [r5]
	bne	.L17
.L5:
	ldm	r6, {r0, r2}
	sub	r0, r0, r2
	cmp	r0, r3
	movcc	r0, #0
	movcs	r0, #1
.L3:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mov	r3, #0
	str	r3, [r4]
	ldr	r3, [r5]
	b	.L5
.L17:
	mov	r2, #0
	and	r4, r3, #127
	str	r2, [r5]
	b	.L8
.L19:
	ldr	r0, [r5]
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	sub	r1, r4, #1
	orr	r3, r3, r0, lsl #8
	ands	r4, r1, #255
	str	r3, [r5]
	beq	.L5
.L8:
	mov	r0, r6
	add	r1, sp, #3
	bl	asn1_octet_decode
	cmp	r0, #0
	bne	.L19
.L7:
	mov	r0, #0
	b	.L3
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	asn1_length_decode, .-asn1_length_decode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
