	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_locale_encoding          ## -- Begin function setup_locale_encoding
	.p2align	4, 0x90
_setup_locale_encoding:                 ## @setup_locale_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_setlocales
	movq	_lc_ctype@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_lc_collate@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rdi
	movq	_lc_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	(%r15), %rdi
	movq	_lc_numeric@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	(%r15), %rdi
	movq	_lc_monetary@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	(%r15), %rdi
	movq	_lc_messages@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%r14), %rsi
	movq	(%r15), %rdx
	movq	_lc_messages@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_lc_monetary@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	movq	_lc_numeric@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r9
	movq	_lc_time@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, (%rsp)
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	movq	_encoding@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.11:
	callq	_get_encoding_id
	movl	%eax, %esi
	movq	_encodingid@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	jmp	LBB0_12
LBB0_8:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_pg_get_encoding_from_locale
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_pg_valid_server_encoding_id
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	_encodingid@GOTPCREL(%rip), %r12
	movl	%ebx, (%r12)
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_pg_encoding_to_char
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r12), %esi
LBB0_12:
	movq	(%r15), %rdi
	callq	_check_locale_encoding
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movq	(%r14), %rdi
	movq	_encodingid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_check_locale_encoding
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_15:
	movq	(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_error
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	(%r15), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_16:
	movq	(%r15), %r14
	movl	%ebx, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_pg_log_error
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_pg_encoding_to_char
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_lc_ctype,8,3                   ## @lc_ctype
	.comm	_lc_collate,8,3                 ## @lc_collate
	.comm	_lc_time,8,3                    ## @lc_time
	.comm	_lc_numeric,8,3                 ## @lc_numeric
	.comm	_lc_monetary,8,3                ## @lc_monetary
	.comm	_lc_messages,8,3                ## @lc_messages
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The database cluster will be initialized with locale \"%s\".\n"

L_.str.1:                               ## @.str.1
	.asciz	"The database cluster will be initialized with locales\n  COLLATE:  %s\n  CTYPE:    %s\n  MESSAGES: %s\n  MONETARY: %s\n  NUMERIC:  %s\n  TIME:     %s\n"

	.comm	_encoding,4,2                   ## @encoding
L_.str.2:                               ## @.str.2
	.asciz	"could not find suitable encoding for locale \"%s\""

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Rerun %s with the -E option.\n"

	.comm	_progname,8,3                   ## @progname
L_.str.4:                               ## @.str.4
	.asciz	"Try \"%s --help\" for more information.\n"

L_.str.5:                               ## @.str.5
	.asciz	"locale \"%s\" requires unsupported encoding \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"Encoding \"%s\" is not allowed as a server-side encoding.\nRerun %s with a different locale selection.\n"

	.comm	_encodingid,4,2                 ## @encodingid
L_.str.7:                               ## @.str.7
	.asciz	"The default database encoding has accordingly been set to \"%s\".\n"

	.comm	_PG_UTF8,4,2                    ## @PG_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_locale_encoding          ; -- Begin function setup_locale_encoding
	.p2align	2
_setup_locale_encoding:                 ; @setup_locale_encoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_setlocales
Lloh0:
	adrp	x21, _lc_ctype@GOTPAGE
Lloh1:
	ldr	x21, [x21, _lc_ctype@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x20, _lc_collate@GOTPAGE
Lloh3:
	ldr	x20, [x20, _lc_collate@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_strcmp
Lloh4:
	adrp	x19, _lc_time@GOTPAGE
Lloh5:
	ldr	x19, [x19, _lc_time@GOTPAGEOFF]
Lloh6:
	adrp	x22, _lc_numeric@GOTPAGE
Lloh7:
	ldr	x22, [x22, _lc_numeric@GOTPAGEOFF]
Lloh8:
	adrp	x23, _lc_monetary@GOTPAGE
Lloh9:
	ldr	x23, [x23, _lc_monetary@GOTPAGEOFF]
Lloh10:
	adrp	x24, _lc_messages@GOTPAGE
Lloh11:
	ldr	x24, [x24, _lc_messages@GOTPAGEOFF]
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x0, [x21]
	ldr	x1, [x19]
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21]
	ldr	x1, [x22]
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x21]
	ldr	x1, [x23]
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x21]
	ldr	x1, [x24]
	bl	_strcmp
	cbz	x0, LBB0_14
LBB0_5:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [x20]
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldr	x10, [x23]
	ldr	x11, [x22]
	ldr	x12, [x19]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
LBB0_6:
	bl	_printf
Lloh14:
	adrp	x8, _encoding@GOTPAGE
Lloh15:
	ldr	x8, [x8, _encoding@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x22, _encodingid@GOTPAGE
Lloh18:
	ldr	x22, [x22, _encodingid@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.7:
	bl	_get_encoding_id
	mov	x1, x0
	str	w0, [x22]
	b	LBB0_11
LBB0_8:
	ldr	x0, [x21]
	mov	w1, #1
	bl	_pg_get_encoding_from_locale
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.9:
	mov	x19, x0
	bl	_pg_valid_server_encoding_id
	cbz	w0, LBB0_17
; %bb.10:
	str	w19, [x22]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w0, [x22]
	bl	_pg_encoding_to_char
	mov	x1, x0
	mov	x0, x19
	bl	_printf
	ldr	w1, [x22]
LBB0_11:
	ldr	x0, [x21]
	bl	_check_locale_encoding
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x0, [x20]
	ldr	w1, [x22]
	bl	_check_locale_encoding
	cbz	w0, LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x1, [x21]
	b	LBB0_6
LBB0_15:
	mov	w0, #1
	bl	_exit
LBB0_16:
	ldr	x1, [x21]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_log_error
Lloh25:
	adrp	x20, _stderr@GOTPAGE
Lloh26:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
Lloh29:
	adrp	x21, _progname@GOTPAGE
Lloh30:
	ldr	x21, [x21, _progname@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [x21]
	mov	x0, x19
	b	LBB0_18
LBB0_17:
	ldr	x20, [x21]
	mov	x0, x19
	bl	_pg_encoding_to_char
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_pg_log_error
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x21, x0
	mov	x0, x19
	bl	_pg_encoding_to_char
	mov	x2, x0
Lloh40:
	adrp	x8, _progname@GOTPAGE
Lloh41:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
LBB0_18:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_lc_ctype,8,3                   ; @lc_ctype
	.comm	_lc_collate,8,3                 ; @lc_collate
	.comm	_lc_time,8,3                    ; @lc_time
	.comm	_lc_numeric,8,3                 ; @lc_numeric
	.comm	_lc_monetary,8,3                ; @lc_monetary
	.comm	_lc_messages,8,3                ; @lc_messages
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The database cluster will be initialized with locale \"%s\".\n"

l_.str.1:                               ; @.str.1
	.asciz	"The database cluster will be initialized with locales\n  COLLATE:  %s\n  CTYPE:    %s\n  MESSAGES: %s\n  MONETARY: %s\n  NUMERIC:  %s\n  TIME:     %s\n"

	.comm	_encoding,4,2                   ; @encoding
l_.str.2:                               ; @.str.2
	.asciz	"could not find suitable encoding for locale \"%s\""

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Rerun %s with the -E option.\n"

	.comm	_progname,8,3                   ; @progname
l_.str.4:                               ; @.str.4
	.asciz	"Try \"%s --help\" for more information.\n"

l_.str.5:                               ; @.str.5
	.asciz	"locale \"%s\" requires unsupported encoding \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"Encoding \"%s\" is not allowed as a server-side encoding.\nRerun %s with a different locale selection.\n"

	.comm	_encodingid,4,2                 ; @encodingid
l_.str.7:                               ; @.str.7
	.asciz	"The default database encoding has accordingly been set to \"%s\".\n"

	.comm	_PG_UTF8,4,2                    ; @PG_UTF8
.subsections_via_symbols
