	.file	"extr_pkg.c_read_pubkey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lseek"
	.text
	.p2align 4
	.type	read_pubkey, @function
read_pubkey:
.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
	sub	rsp, 4096
	.cfi_def_cfa_offset 4136
	or	QWORD PTR [rsp], 0
	sub	rsp, 24
	.cfi_def_cfa_offset 4160
	xor	edx, edx
	xor	esi, esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4104[rsp], rax
	xor	eax, eax
	mov	r12d, edi
	call	lseek@PLT
	cmp	eax, -1
	je	.L9
	xor	eax, eax
	mov	rbx, rsp
	call	sbuf_new_auto@PLT
	mov	rbp, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbx
	mov	rdi, rbp
	call	sbuf_bcat@PLT
.L4:
	mov	edx, 4096
	mov	rsi, rbx
	mov	edi, r12d
	call	read@PLT
	mov	edx, eax
	test	eax, eax
	jg	.L5
	mov	rdi, rbp
	call	sbuf_finish@PLT
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	sbuf_len@PLT
	mov	edi, 1
	mov	DWORD PTR [r12], eax
	mov	esi, eax
	call	calloc@PLT
	mov	r13d, DWORD PTR [r12]
	mov	rdi, rbp
	mov	QWORD PTR 8[r12], rax
	call	sbuf_data@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	edx, r13d
	mov	esi, eax
	call	memcpy@PLT
	mov	rdi, rbp
	call	sbuf_delete@PLT
.L1:
	mov	rax, QWORD PTR 4104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 4120
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	warn@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_pubkey, .-read_pubkey
	.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_pkg.c_read_pubkey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lseek\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_pubkey, %function
read_pubkey:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #4096
	sub	sp, sp, #8
	ldr	ip, .L11
	add	r3, sp, #4096
	mov	r1, r2
	add	r3, r3, #4
	mov	r5, r0
	ldr	ip, [ip]
	str	ip, [r3]
	mov	ip,#0
	bl	lseek
	cmn	r0, #1
	beq	.L9
	bl	sbuf_new_auto
	mov	r4, r0
	b	.L4
.L5:
	mov	r0, r4
	add	r1, sp, #4
	bl	sbuf_bcat
.L4:
	mov	r2, #4096
	mov	r0, r5
	add	r1, sp, #4
	bl	read
	subs	r2, r0, #0
	bgt	.L5
	mov	r0, r4
	bl	sbuf_finish
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r5, r0
	mov	r0, r4
	bl	sbuf_len
	mov	r1, r0
	mov	r0, #1
	str	r1, [r5]
	bl	calloc
	mov	r6, r0
	mov	r0, r4
	str	r6, [r5, #4]
	bl	sbuf_data
	ldr	r2, [r5]
	mov	r1, r0
	mov	r0, r6
	bl	memcpy
	mov	r0, r4
	bl	sbuf_delete
.L1:
	add	r3, sp, #4096
	ldr	r2, .L11
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #4096
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r0, .L11+4
	bl	warn
	mov	r5, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	read_pubkey, .-read_pubkey
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
