	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command_encoding
_exec_command_encoding:                 ## @exec_command_encoding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movq	_OT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_psql_scan_slash_option
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_pset@GOTPCREL(%rip), %r14
	movl	12(%r14), %edi
	movq	%rax, %rsi
	callq	_PQsetClientEncoding
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movl	12(%r14), %edi
	callq	_PQclientEncoding
	movl	%eax, (%r14)
	movl	%eax, 8(%r14)
	movl	4(%r14), %r14d
	movl	%eax, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_SetVariable
	jmp	LBB0_6
LBB0_7:
	callq	_ignore_slash_options
	jmp	LBB0_8
LBB0_2:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pg_encoding_to_char
	movl	%eax, %edi
	callq	_puts
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pg_log_error
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movq	_PSQL_CMD_SKIP_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OT_NORMAL,4,2                  ## @OT_NORMAL
	.comm	_pset,16,2                      ## @pset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: invalid encoding name or conversion procedure not found"

L_.str.1:                               ## @.str.1
	.asciz	"ENCODING"

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ## @PSQL_CMD_SKIP_LINE
	.no_dead_strip	_exec_command_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command_encoding
_exec_command_encoding:                 ; @exec_command_encoding
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _OT_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OT_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_psql_scan_slash_option
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x20, _pset@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pset@GOTPAGEOFF]
	ldr	w0, [x20, #12]
	mov	x1, x19
	bl	_PQsetClientEncoding
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x20, #12]
	bl	_PQclientEncoding
	str	w0, [x20]
	str	w0, [x20, #8]
	ldr	w20, [x20, #4]
	bl	_pg_encoding_to_char
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_SetVariable
	b	LBB0_7
LBB0_4:
	bl	_ignore_slash_options
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _pset@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pset@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_pg_encoding_to_char
	bl	_puts
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pg_log_error
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
Lloh12:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OT_NORMAL,4,2                  ; @OT_NORMAL
	.comm	_pset,16,2                      ; @pset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: invalid encoding name or conversion procedure not found"

l_.str.1:                               ; @.str.1
	.asciz	"ENCODING"

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ; @PSQL_CMD_SKIP_LINE
	.no_dead_strip	_exec_command_encoding
.subsections_via_symbols
