	.file	"extr_der_get.c_der_get_oid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	der_get_oid
	.type	der_get_oid, @function
der_get_oid:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L24
	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	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR ASN1_BAD_LENGTH[rip]
	cmp	rsi, -1
	je	.L1
	movsx	rax, DWORD PTR UINT_MAX[rip]
	mov	r13, rdi
	lea	rdi, 1[rsi]
	cmp	rdi, rax
	jbe	.L5
	mov	eax, DWORD PTR ERANGE[rip]
.L1:
	add	rsp, 8
	.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
	mov	rbp, rdx
	mov	r12, rcx
	call	malloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L25
	movzx	ecx, BYTE PTR 0[r13]
	lea	esi, [rcx+rcx*4]
	mov	edx, ecx
	lea	esi, [rcx+rsi*8]
	mov	ecx, 2
	lea	esi, [rsi+rsi*4]
	shr	si, 13
	mov	BYTE PTR [rax], sil
	lea	esi, [rsi+rsi*4]
	sal	esi, 3
	sub	edx, esi
	mov	BYTE PTR 1[rax], dl
	lea	rdx, 1[r13]
	cmp	rbx, 1
	je	.L7
	lea	r8, -2[rbx]
.L13:
	movzx	edi, BYTE PTR [rdx]
	lea	rax, 1[rdx]
	mov	r9d, edi
	and	r9d, 127
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r9d, eax
	mov	rax, r10
.L8:
	test	r8, r8
	je	.L9
	sub	r8, 1
	lea	r10, 1[rax]
	test	dil, dil
	jns	.L26
	movzx	edi, BYTE PTR -1[r10]
	mov	r11d, r9d
	sal	r11d, 7
	mov	eax, edi
	and	eax, 127
	add	eax, r11d
	cmp	eax, r9d
	jnb	.L15
.L22:
	mov	rdi, rbp
	call	der_free_oid@PLT
	mov	eax, DWORD PTR ASN1_OVERRUN[rip]
	add	rsp, 8
	.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
.L24:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR ASN1_OVERRUN[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	rdx, QWORD PTR 0[rbp]
	mov	BYTE PTR [rdx+rcx], r9b
	add	rcx, 1
	mov	rdx, rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR 0[rbp]
	mov	BYTE PTR [rdx+rcx], r9b
	add	rcx, 1
	cmp	rcx, 2
	jbe	.L7
	cmp	BYTE PTR -1[rax], 0
	js	.L22
.L7:
	mov	QWORD PTR 8[rbp], rcx
	xor	eax, eax
	test	r12, r12
	je	.L1
	mov	QWORD PTR [r12], rbx
	jmp	.L1
.L25:
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	der_get_oid, .-der_get_oid
	.comm	UINT_MAX,4,4
	.comm	ERANGE,4,4
	.comm	ENOMEM,4,4
	.comm	ASN1_OVERRUN,4,4
	.comm	ASN1_BAD_LENGTH,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_der_get.c_der_get_oid.c"
	.text
	.align	2
	.global	der_get_oid
	.syntax unified
	.arm
	.fpu softvfp
	.type	der_get_oid, %function
der_get_oid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r1, #0
	beq	.L20
	cmn	r6, #1
	beq	.L24
	mov	r7, r3
	ldr	r3, .L27
	mov	r4, r0
	ldr	r3, [r3]
	add	r0, r6, #1
	cmp	r0, r3
	bls	.L5
	ldr	r3, .L27+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r8, r2
	bl	malloc
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r8]
	beq	.L25
	mov	r0, r4
	ldr	r3, .L27+8
	ldrb	r1, [r0], #1	@ zero_extendqisi2
	subs	lr, r6, #1
	umull	ip, r3, r1, r3
	lsr	r3, r3, #5
	add	ip, r3, r3, lsl #2
	sub	r1, r1, ip, lsl #3
	strb	r3, [r2]
	strb	r1, [r2, #1]
	beq	.L14
	mov	r3, #2
	sub	lr, lr, #1
.L13:
	mov	ip, r0
	ldrb	r4, [ip], #1	@ zero_extendqisi2
	and	r5, r4, #127
	b	.L8
.L15:
	mov	r5, r0
.L8:
	cmp	lr, #0
	mov	r0, ip
	beq	.L9
	tst	r4, #128
	sub	lr, lr, #1
	beq	.L26
	ldrb	r4, [ip], #1	@ zero_extendqisi2
	and	r0, r4, #127
	add	r0, r0, r5, lsl #7
	cmp	r0, r5
	bcs	.L15
.L22:
	mov	r0, r8
	bl	der_free_oid
.L20:
	ldr	r3, .L27+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r2, [r8]
	strb	r5, [r2, r3]
	add	r3, r3, #1
	b	.L13
.L24:
	ldr	r3, .L27+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r1, [r8]
	add	r2, r3, #1
	cmp	r2, #2
	strb	r5, [r1, r3]
	bls	.L7
	ldrsb	r3, [ip, #-1]
	cmp	r3, #0
	blt	.L22
.L7:
	cmp	r7, #0
	str	r2, [r8, #4]
	mov	r0, #0
	strne	r6, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r2, #2
	b	.L7
.L25:
	ldr	r3, .L27+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	.align	2
.L27:
	.word	UINT_MAX
	.word	ERANGE
	.word	-858993459
	.word	ASN1_OVERRUN
	.word	ASN1_BAD_LENGTH
	.word	ENOMEM
	.size	der_get_oid, .-der_get_oid
	.comm	UINT_MAX,4,4
	.comm	ERANGE,4,4
	.comm	ENOMEM,4,4
	.comm	ASN1_OVERRUN,4,4
	.comm	ASN1_BAD_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
