	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshkey_save_private_blob
_sshkey_save_private_blob:              ## @sshkey_save_private_blob
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_vwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_sshbuf_mutable_ptr
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_sshbuf_len
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	callq	_atomicio
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_sshbuf_len
	cmpq	%rax, %r12
	jne	LBB0_3
## %bb.4:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	%ebx, %edi
	callq	_close
	movq	%r14, %rdi
	callq	_unlink
	movl	%r12d, (%r15)
LBB0_1:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ## @SSH_ERR_SYSTEM_ERROR
	.comm	_vwrite,4,2                     ## @vwrite
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_sshkey_save_private_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshkey_save_private_blob
_sshkey_save_private_blob:              ; @sshkey_save_private_blob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #384
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x8, _vwrite@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vwrite@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_sshbuf_mutable_ptr
	mov	x23, x0
	mov	x0, x20
	bl	_sshbuf_len
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_atomicio
	mov	x22, x0
	mov	x0, x20
	bl	_sshbuf_len
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_close
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x20, _errno@GOTPAGE
Lloh13:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w22, [x20]
	mov	x0, x21
	bl	_close
	mov	x0, x19
	bl	_unlink
	str	w22, [x20]
LBB0_4:
Lloh14:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ; @SSH_ERR_SYSTEM_ERROR
	.comm	_vwrite,4,2                     ; @vwrite
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_sshkey_save_private_blob
.subsections_via_symbols
