	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_database
_create_database:                       ## @create_database
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_header
	movq	_encoding@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_nolocale@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdi
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_psql_command
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_psql_command
LBB0_3:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%r12, %rdx
	movq	%r12, %rcx
	movq	%r12, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r12
	callq	_psql_command
	addq	$16, %rsp
	movq	_loadlanguage@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.7(%rip), %r14
	leaq	L_.str.8(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_header
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_psql_command
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_6:
	movq	_loadextension@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	leaq	L_.str.7(%rip), %r14
	leaq	L_.str.9(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_header
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_psql_command
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creating database \"%s\""

	.comm	_encoding,8,3                   ## @encoding
L_.str.1:                               ## @.str.1
	.asciz	"postgres"

L_.str.2:                               ## @.str.2
	.asciz	"CREATE DATABASE \"%s\" TEMPLATE=template0 ENCODING='%s'%s"

	.comm	_nolocale,8,3                   ## @nolocale
L_.str.3:                               ## @.str.3
	.asciz	" LC_COLLATE='C' LC_CTYPE='C'"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"CREATE DATABASE \"%s\" TEMPLATE=template0%s"

L_.str.6:                               ## @.str.6
	.asciz	"ALTER DATABASE \"%s\" SET lc_messages TO 'C';ALTER DATABASE \"%s\" SET lc_monetary TO 'C';ALTER DATABASE \"%s\" SET lc_numeric TO 'C';ALTER DATABASE \"%s\" SET lc_time TO 'C';ALTER DATABASE \"%s\" SET bytea_output TO 'hex';ALTER DATABASE \"%s\" SET timezone_abbreviations TO 'Default';"

	.comm	_loadlanguage,8,3               ## @loadlanguage
L_.str.7:                               ## @.str.7
	.asciz	"installing %s"

L_.str.8:                               ## @.str.8
	.asciz	"CREATE OR REPLACE LANGUAGE \"%s\""

	.comm	_loadextension,8,3              ## @loadextension
L_.str.9:                               ## @.str.9
	.asciz	"CREATE EXTENSION IF NOT EXISTS \"%s\""

	.no_dead_strip	_create_database
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_database
_create_database:                       ; @create_database
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_header
Lloh2:
	adrp	x8, _encoding@GOTPAGE
Lloh3:
	ldr	x8, [x8, _encoding@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _nolocale@GOTPAGE
Lloh6:
	ldr	x9, [x9, _nolocale@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, l_.str.3@PAGE
Lloh9:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh10:
	adrp	x11, l_.str.4@PAGE
Lloh11:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x9, #0
	csel	x9, x11, x10, eq
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	cbz	x8, LBB0_2
; %bb.1:
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
	str	x9, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_3:
	mov	x2, x19
	bl	_psql_command
	stp	x19, x19, [sp, #24]
	stp	x19, x19, [sp, #8]
	str	x19, [sp]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x19
	bl	_psql_command
Lloh20:
	adrp	x8, _loadlanguage@GOTPAGE
Lloh21:
	ldr	x8, [x8, _loadlanguage@GOTPAGEOFF]
Lloh22:
	ldr	x22, [x8]
	cbz	x22, LBB0_6
; %bb.4:
Lloh23:
	adrp	x20, l_.str.7@PAGE
Lloh24:
	add	x20, x20, l_.str.7@PAGEOFF
Lloh25:
	adrp	x21, l_.str.8@PAGE
Lloh26:
	add	x21, x21, l_.str.8@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	__
	ldr	x1, [x22]
	bl	_header
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_psql_command
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_5
LBB0_6:
Lloh27:
	adrp	x8, _loadextension@GOTPAGE
Lloh28:
	ldr	x8, [x8, _loadextension@GOTPAGEOFF]
Lloh29:
	ldr	x22, [x8]
	cbz	x22, LBB0_9
; %bb.7:
Lloh30:
	adrp	x20, l_.str.7@PAGE
Lloh31:
	add	x20, x20, l_.str.7@PAGEOFF
Lloh32:
	adrp	x21, l_.str.9@PAGE
Lloh33:
	add	x21, x21, l_.str.9@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	__
	ldr	x1, [x22]
	bl	_header
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_psql_command
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creating database \"%s\""

	.comm	_encoding,8,3                   ; @encoding
l_.str.1:                               ; @.str.1
	.asciz	"postgres"

l_.str.2:                               ; @.str.2
	.asciz	"CREATE DATABASE \"%s\" TEMPLATE=template0 ENCODING='%s'%s"

	.comm	_nolocale,8,3                   ; @nolocale
l_.str.3:                               ; @.str.3
	.asciz	" LC_COLLATE='C' LC_CTYPE='C'"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"CREATE DATABASE \"%s\" TEMPLATE=template0%s"

l_.str.6:                               ; @.str.6
	.asciz	"ALTER DATABASE \"%s\" SET lc_messages TO 'C';ALTER DATABASE \"%s\" SET lc_monetary TO 'C';ALTER DATABASE \"%s\" SET lc_numeric TO 'C';ALTER DATABASE \"%s\" SET lc_time TO 'C';ALTER DATABASE \"%s\" SET bytea_output TO 'hex';ALTER DATABASE \"%s\" SET timezone_abbreviations TO 'Default';"

	.comm	_loadlanguage,8,3               ; @loadlanguage
l_.str.7:                               ; @.str.7
	.asciz	"installing %s"

l_.str.8:                               ; @.str.8
	.asciz	"CREATE OR REPLACE LANGUAGE \"%s\""

	.comm	_loadextension,8,3              ; @loadextension
l_.str.9:                               ; @.str.9
	.asciz	"CREATE EXTENSION IF NOT EXISTS \"%s\""

	.no_dead_strip	_create_database
.subsections_via_symbols
