	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command_ef_ev
_exec_command_ef_ev:                    ## @exec_command_ef_ev
	.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	$56, %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)
	movq	_PSQL_CMD_SKIP_LINE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	_OT_WHOLE_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_psql_scan_slash_option
	movq	%rax, %r12
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	movl	$80400, %eax                    ## imm = 0x13A10
	movl	$70400, %ecx                    ## imm = 0x11300
	cmovnel	%eax, %ecx
	cmpl	%ecx, %edi
	jge	LBB0_4
## %bb.2:
	leaq	-80(%rbp), %r14
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$32, %ecx
	callq	_formatPGVersionNumber
	testl	%ebx, %ebx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmovneq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_8
LBB0_3:
	callq	_ignore_slash_whole_line
	movq	%r13, %rbx
	jmp	LBB0_11
LBB0_4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.6:
	movq	_EditableFunction@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_error
LBB0_8:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_9:
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_free
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.12:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EditableView@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_strip_lineno_from_objdesc
	testl	%eax, %eax
	je	LBB0_26
## %bb.15:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	testq	%r12, %r12
	je	LBB0_28
## %bb.16:
	leaq	-80(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_lookup_object_oid
	testl	%eax, %eax
	je	LBB0_27
## %bb.17:
	movl	-80(%rbp), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_get_create_object_cmd
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:
	testl	%ebx, %ebx
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_33
## %bb.19:
	testl	%edx, %edx
	jle	LBB0_33
## %bb.20:
	movq	(%r14), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_33
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r15d
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	leal	1(%r15), %edx
	cmpb	$0, 1(%rax)
	jne	LBB0_21
LBB0_24:
	incl	%r15d
LBB0_25:
	movl	%r15d, %edx
	jmp	LBB0_33
LBB0_26:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%edx, %edx
	jmp	LBB0_33
LBB0_27:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_32
LBB0_28:
	movq	%r14, %rdi
	callq	_resetPQExpBuffer
	testl	%ebx, %ebx
	je	LBB0_30
## %bb.29:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_31
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
LBB0_31:
	movq	%r14, %rdi
	callq	_appendPQExpBufferStr
LBB0_32:
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_33:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	%rbx, %r13
	je	LBB0_9
## %bb.34:
	movl	$0, -80(%rbp)
	leaq	-80(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_do_edit
	testl	%eax, %eax
	je	LBB0_37
## %bb.35:
	cmpl	$0, -80(%rbp)
	je	LBB0_38
## %bb.36:
	movq	_PSQL_CMD_NEWEDIT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_39
LBB0_37:
	movq	(%r15), %r13
	jmp	LBB0_39
LBB0_38:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_puts
LBB0_39:
	movq	%r13, %rbx
	jmp	LBB0_9
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSQL_CMD_SKIP_LINE,8,3         ## @PSQL_CMD_SKIP_LINE
	.comm	_OT_WHOLE_LINE,4,2              ## @OT_WHOLE_LINE
	.comm	_pset,4,2                       ## @pset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The server (version %s) does not support editing function source."

L_.str.1:                               ## @.str.1
	.asciz	"The server (version %s) does not support editing view definitions."

	.comm	_PSQL_CMD_ERROR,8,3             ## @PSQL_CMD_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"no query buffer"

	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_EditableFunction,4,2           ## @EditableFunction
	.comm	_EditableView,4,2               ## @EditableView
L_.str.3:                               ## @.str.3
	.asciz	"CREATE FUNCTION ( )\n RETURNS \n LANGUAGE \n -- common options:  IMMUTABLE  STABLE  STRICT  SECURITY DEFINER\nAS $function$\n\n$function$\n"

L_.str.4:                               ## @.str.4
	.asciz	"CREATE VIEW  AS\n SELECT \n  -- something...\n"

L_.str.5:                               ## @.str.5
	.asciz	"AS "

L_.str.6:                               ## @.str.6
	.asciz	"No changes"

	.comm	_PSQL_CMD_NEWEDIT,8,3           ## @PSQL_CMD_NEWEDIT
	.no_dead_strip	_exec_command_ef_ev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command_ef_ev
_exec_command_ef_ev:                    ; @exec_command_ef_ev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x22, x3
	mov	x20, x2
Lloh6:
	adrp	x8, _OT_WHOLE_LINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OT_WHOLE_LINE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #1
	bl	_psql_scan_slash_option
	mov	x19, x0
Lloh9:
	adrp	x8, _pset@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w8, #4864
	movk	w8, #1, lsl #16
	mov	w9, #14864
	movk	w9, #1, lsl #16
	cmp	w22, #0
	csel	w8, w9, w8, ne
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.2:
	add	x20, sp, #8
	add	x2, sp, #8
	mov	w1, #0
	mov	w3, #32
	bl	_formatPGVersionNumber
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str@PAGE
Lloh15:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w22, #0
	csel	x0, x9, x8, ne
	str	x20, [sp]
	b	LBB0_19
LBB0_3:
	bl	_ignore_slash_whole_line
	mov	x22, x24
	b	LBB0_22
LBB0_4:
	cbz	x20, LBB0_18
; %bb.5:
Lloh16:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh17:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _EditableFunction@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EditableFunction@GOTPAGEOFF]
	str	w8, [sp, #8]
Lloh21:
	adrp	x8, _EditableView@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EditableView@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, ne
	ldr	w23, [x8]
	mov	x0, x19
	bl	_strip_lineno_from_objdesc
	mov	x21, x0
Lloh23:
	adrp	x25, _PSQL_CMD_ERROR@GOTPAGE
Lloh24:
	ldr	x25, [x25, _PSQL_CMD_ERROR@GOTPAGEOFF]
	cbz	w0, LBB0_17
; %bb.6:
	cbz	x19, LBB0_24
; %bb.7:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x19
	bl	_lookup_object_oid
	cbz	w0, LBB0_17
; %bb.8:
	ldr	w1, [sp, #8]
	mov	x0, x23
	mov	x2, x20
	bl	_get_create_object_cmd
	cbz	w0, LBB0_17
; %bb.9:
	cbz	w22, LBB0_28
; %bb.10:
	cmp	w21, #1
	b.lt	LBB0_28
; %bb.11:
	ldr	x22, [x20]
	ldrb	w8, [x22]
	cbz	w8, LBB0_28
; %bb.12:
Lloh25:
	adrp	x23, l_.str.5@PAGE
Lloh26:
	add	x23, x23, l_.str.5@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x21
	mov	x0, x22
	mov	x1, x23
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_35
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x22, x0
	ldrb	w8, [x22, #1]!
	add	w21, w26, #1
	cbnz	w8, LBB0_13
LBB0_16:
	add	w21, w26, #1
	b	LBB0_28
LBB0_17:
	ldr	x24, [x25]
	b	LBB0_28
LBB0_18:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_19:
	bl	_pg_log_error
Lloh29:
	adrp	x8, _PSQL_CMD_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PSQL_CMD_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	x22, [x8]
LBB0_20:
	cbz	x19, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_free
LBB0_22:
	ldr	x8, [sp, #40]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.23:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	mov	x0, x20
	bl	_resetPQExpBuffer
	cbz	w22, LBB0_26
; %bb.25:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	mov	x0, x20
	bl	_appendPQExpBufferStr
LBB0_28:
	ldr	x22, [x25]
	cmp	x24, x22
	b.eq	LBB0_20
; %bb.29:
	str	wzr, [sp, #8]
	add	x3, sp, #8
	mov	x0, #0
	mov	x1, x20
	mov	x2, x21
	bl	_do_edit
	cbz	w0, LBB0_32
; %bb.30:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_33
; %bb.31:
Lloh39:
	adrp	x8, _PSQL_CMD_NEWEDIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PSQL_CMD_NEWEDIT@GOTPAGEOFF]
Lloh41:
	ldr	x24, [x8]
	b	LBB0_34
LBB0_32:
	ldr	x24, [x25]
	b	LBB0_34
LBB0_33:
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_puts
LBB0_34:
	mov	x22, x24
	b	LBB0_20
LBB0_35:
	mov	x21, x26
	b	LBB0_28
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PSQL_CMD_SKIP_LINE,8,3         ; @PSQL_CMD_SKIP_LINE
	.comm	_OT_WHOLE_LINE,4,2              ; @OT_WHOLE_LINE
	.comm	_pset,4,2                       ; @pset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The server (version %s) does not support editing function source."

l_.str.1:                               ; @.str.1
	.asciz	"The server (version %s) does not support editing view definitions."

	.comm	_PSQL_CMD_ERROR,8,3             ; @PSQL_CMD_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"no query buffer"

	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_EditableFunction,4,2           ; @EditableFunction
	.comm	_EditableView,4,2               ; @EditableView
l_.str.3:                               ; @.str.3
	.asciz	"CREATE FUNCTION ( )\n RETURNS \n LANGUAGE \n -- common options:  IMMUTABLE  STABLE  STRICT  SECURITY DEFINER\nAS $function$\n\n$function$\n"

l_.str.4:                               ; @.str.4
	.asciz	"CREATE VIEW  AS\n SELECT \n  -- something...\n"

l_.str.5:                               ; @.str.5
	.asciz	"AS "

l_.str.6:                               ; @.str.6
	.asciz	"No changes"

	.comm	_PSQL_CMD_NEWEDIT,8,3           ; @PSQL_CMD_NEWEDIT
	.no_dead_strip	_exec_command_ef_ev
.subsections_via_symbols
