	.file	"extr_ssh-keygen.c_load_krl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sshbuf_new failed"
.LC1:
	.string	"open %s: %s"
.LC2:
	.string	"Unable to load KRL: %s"
.LC3:
	.string	"Invalid KRL file: %s"
	.text
	.p2align 4
	.type	load_krl, @function
load_krl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rdi
	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
	call	sshbuf_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
.L2:
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rdi, r13
	call	open@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L13
.L3:
	mov	rsi, rbp
	mov	edi, r12d
	call	sshkey_load_file@PLT
	test	eax, eax
	jne	.L14
.L4:
	mov	edi, r12d
	call	close@PLT
	mov	rdi, rbp
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	call	ssh_krl_from_blob@PLT
	mov	edi, eax
	test	eax, eax
	jne	.L5
	cmp	QWORD PTR [rbx], 0
	je	.L5
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	sshbuf_free@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	ssh_err@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	fatal@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, eax
	call	ssh_err@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	fatal@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	fatal@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	load_krl, .-load_krl
	.comm	errno,4,4
	.comm	O_RDONLY,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_ssh-keygen.c_load_krl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sshbuf_new failed\000"
	.align	2
.LC1:
	.ascii	"open %s: %s\000"
	.align	2
.LC2:
	.ascii	"Unable to load KRL: %s\000"
	.align	2
.LC3:
	.ascii	"Invalid KRL file: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_krl, %function
load_krl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r7, r1
	bl	sshbuf_new
	subs	r4, r0, #0
	beq	.L12
.L2:
	ldr	r3, .L15
	mov	r0, r6
	ldr	r1, [r3]
	bl	open
	cmn	r0, #1
	mov	r5, r0
	beq	.L13
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	sshkey_load_file
	cmp	r0, #0
	bne	.L14
.L4:
	mov	r0, r5
	bl	close
	mov	r3, #0
	mov	r1, r7
	mov	r2, r3
	mov	r0, r4
	bl	ssh_krl_from_blob
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	sshbuf_free
.L5:
	bl	ssh_err
	mov	r1, r0
	ldr	r0, .L15+4
	bl	fatal
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	sshbuf_free
.L14:
	bl	ssh_err
	mov	r1, r0
	ldr	r0, .L15+8
	bl	fatal
	b	.L4
.L13:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L15+16
	bl	fatal
	b	.L3
.L12:
	ldr	r0, .L15+20
	bl	fatal
	b	.L2
.L16:
	.align	2
.L15:
	.word	O_RDONLY
	.word	.LC3
	.word	.LC2
	.word	errno
	.word	.LC1
	.word	.LC0
	.size	load_krl, .-load_krl
	.comm	errno,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
