	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command_prompt
_exec_command_prompt:                   ## @exec_command_prompt
	.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
	movl	%edi, %ebx
	testl	%esi, %esi
	je	LBB0_17
## %bb.1:
	movq	%rdx, %r12
	movq	_OT_NORMAL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_psql_scan_slash_option
	movq	%rax, %r13
	movl	(%r14), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_psql_scan_slash_option
	testq	%r13, %r13
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	testq	%rax, %rax
	movq	%r13, %r15
	cmoveq	%rax, %r15
	cmovneq	%rax, %r13
	movq	_pset@GOTPCREL(%rip), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_9
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_fputs
	movl	(%rbx), %edi
	callq	_fflush
LBB0_7:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gets_fromFile
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_pg_log_error
	xorl	%r12d, %r12d
	testq	%r14, %r14
	jne	LBB0_13
	jmp	LBB0_14
LBB0_17:
	movl	%ebx, %edi
	callq	_ignore_slash_options
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_pg_log_error
	jmp	LBB0_3
LBB0_9:
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_pg_malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$1, %ecx
	callq	_simple_prompt
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_11:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_SetVariable
	testl	%eax, %eax
	setne	%r12b
	movq	%rbx, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_free
LBB0_14:
	movq	%r13, %rdi
	callq	_free
	testb	%r12b, %r12b
	je	LBB0_3
LBB0_15:
	movq	_PSQL_CMD_SKIP_LINE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movb	$1, %r12b
	testq	%r14, %r14
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_OT_NORMAL,4,2                  ## @OT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\%s: missing required argument"

	.comm	_pset,8,2                       ## @pset
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"\\%s: could not read value for variable"

	.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_prompt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command_prompt
_exec_command_prompt:                   ; @exec_command_prompt
	.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, x0
	cbz	w1, LBB0_7
; %bb.1:
	mov	x22, x2
Lloh0:
	adrp	x20, _OT_NORMAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OT_NORMAL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_psql_scan_slash_option
	mov	x23, x0
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_psql_scan_slash_option
	cbz	x23, LBB0_8
; %bb.2:
	mov	x20, x0
	cmp	x0, #0
	csel	x21, xzr, x23, eq
	csel	x19, x23, x0, eq
Lloh2:
	adrp	x24, _pset@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pset@GOTPAGEOFF]
	ldr	w8, [x24, #4]
	cbz	w8, LBB0_9
; %bb.3:
	cbz	x20, LBB0_5
; %bb.4:
Lloh4:
	adrp	x23, _stdout@GOTPAGE
Lloh5:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_fputs
	ldr	w0, [x23]
	bl	_fflush
LBB0_5:
Lloh6:
	adrp	x8, _stdin@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gets_fromFile
	mov	x23, x0
	cbnz	x0, LBB0_10
; %bb.6:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pg_log_error
	mov	w22, #0
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_ignore_slash_options
	b	LBB0_14
LBB0_8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pg_log_error
	b	LBB0_15
LBB0_9:
	mov	w0, #4096
	bl	_pg_malloc
	mov	x23, x0
	mov	w22, #1
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4096
	mov	w3, #1
	bl	_simple_prompt
	cbz	x23, LBB0_11
LBB0_10:
	ldr	w0, [x24]
	mov	x1, x19
	mov	x2, x23
	bl	_SetVariable
	cmp	w0, #0
	cset	w22, ne
	mov	x0, x23
	bl	_free
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_free
LBB0_13:
	mov	x0, x19
	bl	_free
	tbz	w22, #0, LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh15:
	adrp	x8, _PSQL_CMD_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PSQL_CMD_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OT_NORMAL,4,2                  ; @OT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\%s: missing required argument"

	.comm	_pset,8,2                       ; @pset
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"\\%s: could not read value for variable"

	.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_prompt
.subsections_via_symbols
