	.file	"extr_authfile.c_sshkey_save_private_blob.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sshkey_save_private_blob, @function
sshkey_save_private_blob:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 384
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, DWORD PTR O_WRONLY[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	or	esi, DWORD PTR O_CREAT[rip]
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	or	esi, DWORD PTR O_TRUNC[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	open@PLT
	test	eax, eax
	js	.L6
	mov	rdi, r12
	mov	ebp, eax
	call	sshbuf_len@PLT
	mov	rdi, r12
	mov	r14, rax
	call	sshbuf_mutable_ptr@PLT
	mov	edi, DWORD PTR vwrite[rip]
	mov	rcx, r14
	mov	esi, ebp
	mov	edx, eax
	call	atomicio@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	sshbuf_len@PLT
	cmp	rbx, rax
	je	.L4
	mov	ebx, DWORD PTR errno[rip]
	mov	edi, ebp
	call	close@PLT
	mov	rdi, r13
	call	unlink@PLT
	mov	DWORD PTR errno[rip], ebx
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR SSH_ERR_SYSTEM_ERROR[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, ebp
	call	close@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sshkey_save_private_blob, .-sshkey_save_private_blob
	.comm	vwrite,4,4
	.comm	errno,4,4
	.comm	SSH_ERR_SYSTEM_ERROR,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,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_authfile.c_sshkey_save_private_blob.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sshkey_save_private_blob, %function
sshkey_save_private_blob:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r1, .L8+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	mov	r5, r0
	mov	r2, #384
	mov	r0, r6
	orr	r1, r3, r1
	bl	open
	subs	r4, r0, #0
	blt	.L7
	ldr	r3, .L8+12
	mov	r0, r5
	ldr	r8, [r3]
	bl	sshbuf_mutable_ptr
	mov	r7, r0
	mov	r0, r5
	bl	sshbuf_len
	mov	r2, r7
	mov	r3, r0
	mov	r1, r4
	mov	r0, r8
	bl	atomicio
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	sshbuf_len
	cmp	r5, r0
	beq	.L4
	ldr	r5, .L8+16
	mov	r0, r4
	ldr	r4, [r5]
	bl	close
	mov	r0, r6
	bl	unlink
	ldr	r3, .L8+20
	str	r4, [r5]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r4
	bl	close
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L8+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	O_WRONLY
	.word	O_CREAT
	.word	O_TRUNC
	.word	vwrite
	.word	errno
	.word	SSH_ERR_SYSTEM_ERROR
	.size	sshkey_save_private_blob, .-sshkey_save_private_blob
	.comm	vwrite,4,4
	.comm	errno,4,4
	.comm	SSH_ERR_SYSTEM_ERROR,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
