	.file	"extr_authfile.c_sshkey_load_file.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sshkey_load_file
	.type	sshkey_load_file, @function
sshkey_load_file:
.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, 40
	.cfi_def_cfa_offset 4176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4120[rsp], rax
	xor	eax, eax
	mov	rbp, rsi
	mov	rsi, rsp
	mov	ebx, edi
	call	fstat@PLT
	mov	r12d, DWORD PTR SSH_ERR_SYSTEM_ERROR[rip]
	test	rax, rax
	js	.L1
	mov	eax, DWORD PTR S_IFSOCK[rip]
	or	eax, DWORD PTR S_IFCHR[rip]
	or	eax, DWORD PTR S_IFIFO[rip]
	test	DWORD PTR [rsp], eax
	je	.L20
.L4:
	lea	r13, 16[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r13
	mov	rdi, rbp
	call	sshbuf_put@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	sshbuf_len@PLT
	cmp	rax, QWORD PTR MAX_KEY_FILE_SIZE[rip]
	jg	.L21
.L9:
	mov	edi, DWORD PTR read[rip]
	mov	rdx, r13
	mov	ecx, 4096
	mov	esi, ebx
	call	atomicio@PLT
	mov	rdx, rax
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR EPIPE[rip]
	cmp	QWORD PTR errno[rip], rax
	mov	r12d, DWORD PTR SSH_ERR_SYSTEM_ERROR[rip]
	jne	.L7
	mov	eax, DWORD PTR S_IFSOCK[rip]
	or	eax, DWORD PTR S_IFCHR[rip]
	or	eax, DWORD PTR S_IFIFO[rip]
	test	DWORD PTR [rsp], eax
	je	.L10
.L11:
	mov	esi, 4096
	mov	rdi, r13
	xor	r12d, r12d
	call	explicit_bzero@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 4120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 4136
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR MAX_KEY_FILE_SIZE[rip]
	mov	r12d, DWORD PTR SSH_ERR_INVALID_FORMAT[rip]
	cmp	QWORD PTR 8[rsp], rax
	jle	.L4
	jmp	.L1
.L10:
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	sshbuf_len@PLT
	cmp	rbx, rax
	je	.L11
	mov	r12d, DWORD PTR SSH_ERR_FILE_CHANGED[rip]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 4096
	mov	rdi, r13
	call	explicit_bzero@PLT
	test	r12d, r12d
	je	.L1
	mov	rdi, rbp
	call	sshbuf_reset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r13
	mov	esi, 4096
	call	explicit_bzero@PLT
	mov	rdi, rbp
	call	sshbuf_reset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, DWORD PTR SSH_ERR_INVALID_FORMAT[rip]
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sshkey_load_file, .-sshkey_load_file
	.comm	read,4,4
	.comm	errno,8,8
	.comm	S_IFSOCK,4,4
	.comm	S_IFIFO,4,4
	.comm	S_IFCHR,4,4
	.comm	SSH_ERR_SYSTEM_ERROR,4,4
	.comm	SSH_ERR_INVALID_FORMAT,4,4
	.comm	SSH_ERR_FILE_CHANGED,4,4
	.comm	MAX_KEY_FILE_SIZE,8,8
	.comm	EPIPE,8,8
	.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_authfile.c_sshkey_load_file.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sshkey_load_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	sshkey_load_file, %function
sshkey_load_file:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #4096
	sub	sp, sp, #20
	ldr	r2, .L25
	add	r3, sp, #4096
	mov	r4, r1
	add	r1, sp, #4
	add	r3, r3, #12
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	bl	fstat
	cmp	r0, #0
	blt	.L20
	ldr	r10, .L25+4
	ldr	r9, .L25+8
	ldr	r8, .L25+12
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r1, [r8]
	orr	r3, r3, r2
	ldr	r2, [sp, #4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L21
.L4:
	ldr	r6, .L25+16
	ldr	r7, .L25+20
	b	.L9
.L5:
	mov	r0, r4
	add	r1, sp, #12
	bl	sshbuf_put
	subs	fp, r0, #0
	bne	.L8
	mov	r0, r4
	bl	sshbuf_len
	ldr	r3, [r7]
	cmp	r0, r3
	bgt	.L22
.L9:
	add	r2, sp, #12
	mov	r3, #4096
	mov	r1, r5
	ldr	r0, [r6]
	bl	atomicio
	subs	r2, r0, #0
	bne	.L5
	ldr	r2, .L25+24
	ldr	r3, .L25+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L23
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r1, [r8]
	orr	r3, r3, r2
	ldr	r2, [sp, #4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L10
.L11:
	mov	r1, #4096
	add	r0, sp, #12
	bl	explicit_bzero
	mov	fp, #0
	b	.L1
.L21:
	ldr	r3, .L25+20
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L4
	ldr	r3, .L25+32
	ldr	fp, [r3]
	b	.L1
.L20:
	ldr	r3, .L25+36
	ldr	fp, [r3]
.L1:
	add	r3, sp, #4096
	ldr	r2, .L25
	add	r3, r3, #12
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L24
	mov	r0, fp
	add	sp, sp, #4096
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r1, #4096
	add	r0, sp, #12
	bl	explicit_bzero
.L12:
	mov	r0, r4
	bl	sshbuf_reset
	b	.L1
.L23:
	ldr	r3, .L25+36
	ldr	fp, [r3]
.L7:
	mov	r1, #4096
	add	r0, sp, #12
	bl	explicit_bzero
	cmp	fp, #0
	beq	.L1
	b	.L12
.L22:
	ldr	r3, .L25+32
	ldr	fp, [r3]
	b	.L7
.L10:
	mov	r0, r4
	ldr	r5, [sp, #8]
	bl	sshbuf_len
	cmp	r5, r0
	beq	.L11
	ldr	r3, .L25+40
	ldr	fp, [r3]
	b	.L7
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	S_IFSOCK
	.word	S_IFCHR
	.word	S_IFIFO
	.word	read
	.word	MAX_KEY_FILE_SIZE
	.word	errno
	.word	EPIPE
	.word	SSH_ERR_INVALID_FORMAT
	.word	SSH_ERR_SYSTEM_ERROR
	.word	SSH_ERR_FILE_CHANGED
	.size	sshkey_load_file, .-sshkey_load_file
	.comm	read,4,4
	.comm	errno,4,4
	.comm	S_IFSOCK,4,4
	.comm	S_IFIFO,4,4
	.comm	S_IFCHR,4,4
	.comm	SSH_ERR_SYSTEM_ERROR,4,4
	.comm	SSH_ERR_INVALID_FORMAT,4,4
	.comm	SSH_ERR_FILE_CHANGED,4,4
	.comm	MAX_KEY_FILE_SIZE,4,4
	.comm	EPIPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
