	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command_password
_exec_command_password:                 ## @exec_command_password
	.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
	subq	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_OT_SQLID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_psql_scan_slash_option
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	leaq	-160(%rbp), %r14
	movq	%r14, %rsi
	movl	$100, %edx
	xorl	%ecx, %ecx
	callq	_simple_prompt
	leaq	L_.str.1(%rip), %rdi
	leaq	-272(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$100, %edx
	xorl	%ecx, %ecx
	callq	_simple_prompt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_pg_log_error
	testq	%r15, %r15
	je	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_free
LBB0_11:
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.12:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	callq	_ignore_slash_options
LBB0_13:
	movq	_PSQL_CMD_SKIP_LINE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PQuser
	movq	%rax, %rbx
LBB0_6:
	movq	_pset@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%r13d, %r13d
	leaq	-160(%rbp), %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_PQencryptPasswordConn
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r14
	leaq	-280(%rbp), %r12
	movq	%r12, %rdi
	callq	_initPQExpBuffer
	movq	%rbx, %rdi
	callq	_fmtId
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_printfPQExpBuffer
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_appendStringLiteralConn
	movl	-280(%rbp), %edi
	callq	_PSQLexec
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_termPQExpBuffer
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_PQclear
	movl	$1, %r13d
LBB0_9:
	movq	%r14, %rdi
	callq	_PQfreemem
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_11
LBB0_16:
	movl	(%r12), %edi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_pg_log_info
	xorl	%r13d, %r13d
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_11
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OT_SQLID,4,2                   ## @OT_SQLID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter new password: "

L_.str.1:                               ## @.str.1
	.asciz	"Enter it again: "

L_.str.2:                               ## @.str.2
	.asciz	"Passwords didn't match."

	.comm	_pset,4,2                       ## @pset
L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"ALTER USER %s PASSWORD "

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ## @PSQL_CMD_SKIP_LINE
	.comm	_PSQL_CMD_ERROR,4,2             ## @PSQL_CMD_ERROR
	.no_dead_strip	_exec_command_password
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command_password
_exec_command_password:                 ; @exec_command_password
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	w1, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _OT_SQLID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OT_SQLID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #1
	bl	_psql_scan_slash_option
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #116
	mov	w2, #100
	mov	w3, #0
	bl	_simple_prompt
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #16
	mov	w2, #100
	mov	w3, #0
	bl	_simple_prompt
	add	x0, sp, #116
	add	x1, sp, #16
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_log_error
	mov	w21, #0
	cbnz	x19, LBB0_10
	b	LBB0_11
LBB0_3:
	bl	_ignore_slash_options
Lloh12:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh14:
	adrp	x22, _pset@GOTPAGE
Lloh15:
	ldr	x22, [x22, _pset@GOTPAGEOFF]
	mov	x21, x19
	cbnz	x19, LBB0_6
; %bb.5:
	ldr	w0, [x22]
	bl	_PQuser
	mov	x21, x0
LBB0_6:
	ldr	w0, [x22]
	add	x1, sp, #116
	mov	x2, x21
	mov	x3, #0
	bl	_PQencryptPasswordConn
	cbz	x0, LBB0_14
; %bb.7:
	mov	x20, x0
	add	x0, sp, #8
	bl	_initPQExpBuffer
	mov	x0, x21
	bl	_fmtId
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_printfPQExpBuffer
	ldr	w2, [x22]
	add	x0, sp, #8
	mov	x1, x20
	bl	_appendStringLiteralConn
	ldr	w0, [sp, #8]
	bl	_PSQLexec
	mov	x21, x0
	add	x0, sp, #8
	bl	_termPQExpBuffer
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_PQclear
	mov	w21, #1
LBB0_9:
	mov	x0, x20
	bl	_PQfreemem
	cbz	x19, LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_free
LBB0_11:
Lloh18:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _PSQL_CMD_ERROR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PSQL_CMD_ERROR@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
LBB0_12:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_14:
	ldr	w0, [x22]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pg_log_info
	mov	w21, #0
	cbnz	x19, LBB0_10
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_OT_SQLID,4,2                   ; @OT_SQLID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter new password: "

l_.str.1:                               ; @.str.1
	.asciz	"Enter it again: "

l_.str.2:                               ; @.str.2
	.asciz	"Passwords didn't match."

	.comm	_pset,4,2                       ; @pset
l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"ALTER USER %s PASSWORD "

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ; @PSQL_CMD_SKIP_LINE
	.comm	_PSQL_CMD_ERROR,4,2             ; @PSQL_CMD_ERROR
	.no_dead_strip	_exec_command_password
.subsections_via_symbols
