	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_change_passphrase
_do_change_passphrase:                  ## @do_change_passphrase
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_have_identity@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_ask_filename
LBB0_2:
	movq	_identity_file@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	(%r15), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_fatal
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_sshkey_load_private
	movl	%eax, %ebx
	movq	_SSH_ERR_KEY_WRONG_PASSPHRASE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.5:
	movq	_identity_passphrase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.7:
	movq	_RP_ALLOW_STDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_read_passphrase
	jmp	LBB0_8
LBB0_6:
	callq	_xstrdup
LBB0_8:
	movq	%rax, %r14
	movl	(%r15), %edi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rax, %rsi
	callq	_sshkey_load_private
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movl	(%r15), %r14d
	movl	%ebx, %edi
	callq	_ssh_err
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_fatal
LBB0_11:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	callq	_mprintf
LBB0_13:
	movq	_identity_new_passphrase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.15:
	movq	_RP_ALLOW_STDIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_read_passphrase
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_read_passphrase
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_14:
	callq	_xstrdup
	movq	%rax, %r14
LBB0_17:
	movq	-40(%rbp), %rdi
	movl	(%r15), %esi
	movq	-32(%rbp), %rcx
	movq	_use_new_format@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_new_format_cipher@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_rounds@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdx
	callq	_sshkey_save_private
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_sshkey_free
	movq	-32(%rbp), %rdi
	callq	_free
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
LBB0_20:
	movl	(%r15), %ebx
	movl	%eax, %edi
	callq	_ssh_err
	leaq	L_.str.9(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_sshkey_free
	movq	-32(%rbp), %rdi
	callq	_free
	movl	$1, %edi
	callq	_exit
LBB0_19:
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	leaq	L_str.11(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_have_identity,4,2              ## @have_identity
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter file in which the key is"

	.comm	_identity_file,4,2              ## @identity_file
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_SSH_ERR_KEY_WRONG_PASSPHRASE,4,2 ## @SSH_ERR_KEY_WRONG_PASSPHRASE
	.comm	_identity_passphrase,8,3        ## @identity_passphrase
L_.str.3:                               ## @.str.3
	.asciz	"Enter old passphrase: "

	.comm	_RP_ALLOW_STDIN,4,2             ## @RP_ALLOW_STDIN
L_.str.4:                               ## @.str.4
	.asciz	"Failed to load key %s: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Key has comment '%s'\n"

	.comm	_identity_new_passphrase,8,3    ## @identity_new_passphrase
L_.str.6:                               ## @.str.6
	.asciz	"Enter new passphrase (empty for no passphrase): "

L_.str.7:                               ## @.str.7
	.asciz	"Enter same passphrase again: "

	.comm	_use_new_format,4,2             ## @use_new_format
	.comm	_new_format_cipher,4,2          ## @new_format_cipher
	.comm	_rounds,4,2                     ## @rounds
L_.str.9:                               ## @.str.9
	.asciz	"Saving key \"%s\" failed: %s."

L_str:                                  ## @str
	.asciz	"Your identification has been saved with the new passphrase."

L_str.11:                               ## @str.11
	.asciz	"Pass phrases do not match.  Try again."

	.no_dead_strip	_do_change_passphrase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_change_passphrase
_do_change_passphrase:                  ; @do_change_passphrase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _have_identity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _have_identity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ask_filename
LBB0_2:
Lloh5:
	adrp	x21, _identity_file@GOTPAGE
Lloh6:
	ldr	x21, [x21, _identity_file@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #16
	bl	_stat
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w19, [x21]
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_4:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #24
	bl	_sshkey_load_private
Lloh14:
	adrp	x8, _SSH_ERR_KEY_WRONG_PASSPHRASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSH_ERR_KEY_WRONG_PASSPHRASE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _identity_passphrase@GOTPAGE
Lloh18:
	ldr	x8, [x8, _identity_passphrase@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	cbnz	x0, LBB0_18
; %bb.6:
Lloh20:
	adrp	x8, _RP_ALLOW_STDIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RP_ALLOW_STDIN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_read_passphrase
	b	LBB0_19
LBB0_7:
	mov	x19, x0
	cbz	w0, LBB0_9
LBB0_8:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_ssh_err
	mov	x2, x0
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_fatal
LBB0_9:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_11
; %bb.10:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_mprintf
LBB0_11:
Lloh29:
	adrp	x8, _identity_new_passphrase@GOTPAGE
Lloh30:
	ldr	x8, [x8, _identity_new_passphrase@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
	cbnz	x0, LBB0_14
; %bb.12:
Lloh32:
	adrp	x20, _RP_ALLOW_STDIN@GOTPAGE
Lloh33:
	ldr	x20, [x20, _RP_ALLOW_STDIN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_read_passphrase
	mov	x19, x0
	ldr	w1, [x20]
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_read_passphrase
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_20
; %bb.13:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_explicit_bzero
	mov	x0, x20
	bl	_free
	b	LBB0_15
LBB0_14:
	bl	_xstrdup
	mov	x19, x0
LBB0_15:
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	ldr	x3, [sp, #24]
Lloh38:
	adrp	x8, _use_new_format@GOTPAGE
Lloh39:
	ldr	x8, [x8, _use_new_format@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
Lloh41:
	adrp	x8, _new_format_cipher@GOTPAGE
Lloh42:
	ldr	x8, [x8, _new_format_cipher@GOTPAGEOFF]
Lloh43:
	ldr	w5, [x8]
Lloh44:
	adrp	x8, _rounds@GOTPAGE
Lloh45:
	ldr	x8, [x8, _rounds@GOTPAGEOFF]
Lloh46:
	ldr	w6, [x8]
	mov	x2, x19
	bl	_sshkey_save_private
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_explicit_bzero
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #8]
	bl	_sshkey_free
	ldr	x0, [sp, #24]
	bl	_free
Lloh47:
	adrp	x0, l_str@PAGE
Lloh48:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
LBB0_17:
	ldr	w20, [x21]
	bl	_ssh_err
	mov	x2, x0
Lloh49:
	adrp	x0, l_.str.9@PAGE
Lloh50:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x20
	bl	_error
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_explicit_bzero
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #8]
	bl	_sshkey_free
	ldr	x0, [sp, #24]
	bl	_free
	mov	w0, #1
	bl	_exit
LBB0_18:
	bl	_xstrdup
LBB0_19:
	mov	x20, x0
	ldr	w0, [x21]
	add	x2, sp, #8
	add	x3, sp, #24
	mov	x1, x20
	bl	_sshkey_load_private
	mov	x19, x0
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_explicit_bzero
	mov	x0, x20
	bl	_free
	cbnz	w19, LBB0_8
	b	LBB0_9
LBB0_20:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_explicit_bzero
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_explicit_bzero
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
Lloh51:
	adrp	x0, l_str.11@PAGE
Lloh52:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_have_identity,4,2              ; @have_identity
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter file in which the key is"

	.comm	_identity_file,4,2              ; @identity_file
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_SSH_ERR_KEY_WRONG_PASSPHRASE,4,2 ; @SSH_ERR_KEY_WRONG_PASSPHRASE
	.comm	_identity_passphrase,8,3        ; @identity_passphrase
l_.str.3:                               ; @.str.3
	.asciz	"Enter old passphrase: "

	.comm	_RP_ALLOW_STDIN,4,2             ; @RP_ALLOW_STDIN
l_.str.4:                               ; @.str.4
	.asciz	"Failed to load key %s: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Key has comment '%s'\n"

	.comm	_identity_new_passphrase,8,3    ; @identity_new_passphrase
l_.str.6:                               ; @.str.6
	.asciz	"Enter new passphrase (empty for no passphrase): "

l_.str.7:                               ; @.str.7
	.asciz	"Enter same passphrase again: "

	.comm	_use_new_format,4,2             ; @use_new_format
	.comm	_new_format_cipher,4,2          ; @new_format_cipher
	.comm	_rounds,4,2                     ; @rounds
l_.str.9:                               ; @.str.9
	.asciz	"Saving key \"%s\" failed: %s."

l_str:                                  ; @str
	.asciz	"Your identification has been saved with the new passphrase."

l_str.11:                               ; @str.11
	.asciz	"Pass phrases do not match.  Try again."

	.no_dead_strip	_do_change_passphrase
.subsections_via_symbols
