	.file	"extr_update_crypto.c_parse_public_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	parse_public_key
	.type	parse_public_key, @function
parse_public_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rdx], 0
	mov	QWORD PTR 24[rdx], 0
	test	BYTE PTR [rdi], -128
	je	.L39
	mov	QWORD PTR 16[rsp], 0
	lea	rbp, [rdi+rsi*4]
.L6:
	cmp	r14, rbp
	jnb	.L37
	lea	rax, 8[r12]
	mov	DWORD PTR 32[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L42:
	cmp	ebx, 128
	je	.L40
.L11:
	cmp	r14, rbp
	jnb	.L41
.L13:
	mov	edi, DWORD PTR [r14]
	mov	eax, edi
	and	eax, 192
	cmp	eax, 128
	jne	.L5
	call	packet_type@PLT
	mov	edi, DWORD PTR [r14]
	lea	r13, 4[r14]
	mov	ebx, eax
	call	packet_header_len@PLT
	mov	esi, eax
	cdqe
	lea	r15, 0[r13+rax*4]
	cmp	r15, rbp
	ja	.L5
	lea	eax, -1[rsi]
	cmp	eax, 1
	jbe	.L20
	cmp	esi, 4
	jne	.L5
.L20:
	mov	rdi, r13
	call	scalar_number@PLT
	movsx	rcx, eax
	lea	r14, [r15+rcx*4]
	mov	rdx, rcx
	cmp	r14, rbp
	ja	.L5
	cmp	ebx, 129
	je	.L8
	cmp	ebx, 130
	jne	.L42
	lea	rdi, 40[r12]
	mov	rsi, r15
	or	DWORD PTR 32[rsp], 1
	call	parse_public_key_packet@PLT
	cmp	eax, DWORD PTR VLC_SUCCESS[rip]
	je	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	DWORD PTR 8[r12], 4
	je	.L43
.L17:
	mov	rdi, QWORD PTR [r12]
	call	free@PLT
.L37:
	mov	rdi, QWORD PTR 16[rsp]
	call	free@PLT
.L36:
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	test	BYTE PTR 32[rsp], 4
	jne	.L11
	cmp	QWORD PTR 8[rsp], 0
	je	.L11
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r15
	call	parse_signature_packet@PLT
	cmp	DWORD PTR VLC_SUCCESS[rip], eax
	jne	.L11
	cmp	DWORD PTR 8[r12], 4
	jne	.L11
	mov	edi, DWORD PTR 32[r12]
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, 8
	call	memcmp@PLT
	test	eax, eax
	jne	.L44
	or	DWORD PTR 32[rsp], 4
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	cmp	QWORD PTR [r12], 0
	jne	.L11
	lea	edi, 1[rcx]
	or	DWORD PTR 32[rsp], 2
	mov	QWORD PTR 40[rsp], rcx
	mov	DWORD PTR 36[rsp], ecx
	call	malloc@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR 36[rsp]
	mov	rsi, r15
	call	memcpy@PLT
	mov	rax, QWORD PTR [r12]
	mov	rcx, QWORD PTR 40[rsp]
	mov	DWORD PTR [rax+rcx*4], 0
	cmp	r14, rbp
	jb	.L13
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, QWORD PTR 16[rsp]
	call	free@PLT
	test	BYTE PTR 32[rsp], 3
	je	.L36
	cmp	QWORD PTR 8[rsp], 0
	je	.L16
	test	BYTE PTR 32[rsp], 4
	je	.L36
.L16:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, esi
	call	malloc@PLT
	mov	r15, rax
	mov	eax, DWORD PTR VLC_ENOMEM[rip]
	test	r15, r15
	je	.L1
	mov	rcx, rbp
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR 16[rsp], r15
	call	pgp_unarmor@PLT
	test	eax, eax
	je	.L5
	cdqe
	mov	r14, r15
	lea	rbp, [r15+rax*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, QWORD PTR 16[r12]
	call	free@PLT
	mov	rdi, QWORD PTR 24[r12]
	call	free@PLT
	jmp	.L17
.L44:
	mov	rdi, QWORD PTR 16[r12]
	call	free@PLT
	mov	rdi, QWORD PTR 24[r12]
	call	free@PLT
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 24[r12], 0
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	parse_public_key, .-parse_public_key
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	USER_ID_FOUND,4,4
	.comm	SIGNATURE_FOUND,4,4
	.comm	PUBLIC_KEY_FOUND,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_update_crypto.c_parse_public_key.c"
	.text
	.align	2
	.global	parse_public_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_public_key, %function
parse_public_key:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	mov	r9, #0
	ldr	r2, [r0]
	sub	sp, sp, #20
	tst	r2, #128
	mov	r6, r1
	mov	r4, r0
	str	r3, [sp]
	str	r9, [r8]
	str	r9, [r8, #8]
	str	r9, [r8, #12]
	addne	r6, r0, r1, lsl #2
	beq	.L39
.L6:
	cmp	r4, r6
	bcs	.L37
	add	r3, r8, #4
	mov	r10, #0
	ldr	fp, .L44
	str	r3, [sp, #4]
	b	.L12
.L42:
	cmp	r5, #128
	beq	.L40
.L10:
	cmp	r4, r6
	bcs	.L41
.L12:
	ldr	r0, [r4]
	and	r3, r0, #192
	cmp	r3, #128
	bne	.L5
	bl	packet_type
	mov	r5, r0
	ldr	r0, [r4], #4
	bl	packet_header_len
	add	r7, r4, r0, lsl #2
	cmp	r7, r6
	mov	r1, r0
	bhi	.L5
	sub	r3, r0, #1
	cmp	r0, #4
	cmpne	r3, #1
	bhi	.L5
	mov	r0, r4
	bl	scalar_number
	add	r4, r7, r0, lsl #2
	cmp	r4, r6
	mov	r2, r0
	bhi	.L5
	cmp	r5, #129
	beq	.L7
	cmp	r5, #130
	bne	.L42
	mov	r1, r7
	add	r0, r8, #20
	bl	parse_public_key_packet
	ldr	r3, [fp]
	orr	r10, r10, #1
	cmp	r0, r3
	beq	.L10
.L5:
	ldr	r3, [r8, #4]
	cmp	r3, #4
	beq	.L43
.L16:
	ldr	r0, [r8]
	bl	free
.L37:
	mov	r0, r9
	bl	free
.L36:
	ldr	r3, .L44+4
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, [sp]
	lsr	r5, r10, #2
	cmp	r3, #0
	moveq	r5, #1
	andne	r5, r5, #1
	cmp	r5, #0
	bne	.L10
	mov	r1, r7
	ldr	r0, [sp, #4]
	bl	parse_signature_packet
	ldr	r3, [fp]
	cmp	r3, r0
	bne	.L10
	ldr	r3, [r8, #4]
	cmp	r3, #4
	bne	.L10
	mov	r2, #8
	ldr	r1, [sp]
	ldr	r0, [r8, #16]
	bl	memcmp
	cmp	r0, #0
	orreq	r10, r10, #4
	beq	.L10
	ldr	r0, [r8, #8]
	bl	free
	ldr	r0, [r8, #12]
	bl	free
	str	r5, [r8, #8]
	str	r5, [r8, #12]
	b	.L10
.L40:
	ldr	r5, [r8]
	cmp	r5, #0
	bne	.L10
	add	r0, r0, #1
	str	r2, [sp, #8]
	bl	malloc
	cmp	r0, #0
	orr	r10, r10, #2
	str	r0, [r8]
	str	r0, [sp, #12]
	beq	.L5
	ldr	r2, [sp, #8]
	mov	r1, r7
	bl	memcpy
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #12]
	cmp	r4, r6
	str	r5, [r3, r2, lsl #2]
	bcc	.L12
.L41:
	mov	r0, r9
	bl	free
	tst	r10, #3
	beq	.L36
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L15
	tst	r10, #4
	beq	.L36
.L15:
	ldr	r3, .L44
	ldr	r0, [r3]
	b	.L1
.L39:
	mov	r0, r6
	bl	malloc
	subs	r9, r0, #0
	ldreq	r3, .L44+8
	ldreq	r0, [r3]
	beq	.L1
	mov	r0, r4
	mov	r3, r6
	mov	r1, r6
	mov	r2, r9
	bl	pgp_unarmor
	cmp	r0, #0
	beq	.L5
	mov	r4, r9
	add	r6, r9, r0, lsl #2
	b	.L6
.L43:
	ldr	r0, [r8, #8]
	bl	free
	ldr	r0, [r8, #12]
	bl	free
	b	.L16
.L45:
	.align	2
.L44:
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.word	VLC_ENOMEM
	.size	parse_public_key, .-parse_public_key
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	USER_ID_FOUND,4,4
	.comm	SIGNATURE_FOUND,4,4
	.comm	PUBLIC_KEY_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
