	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_db_infos
_get_db_infos:                          ## @get_db_infos
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_connectToServer
	movq	%rax, %r12
	movq	_QUERY_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$902, %eax                      ## imm = 0x386
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovlq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snprintf
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_executeQueryOrDie
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_PQfnumber
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PQntuples
	movl	%eax, %r14d
	shll	$4, %eax
	leal	(%rax,%rax,2), %edi
	callq	_pg_malloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	addq	$40, %r13
	xorl	%r14d, %r14d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_pg_strdup
	movq	%rax, -8(%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, -16(%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_pg_strdup
	movq	%rax, -24(%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_pg_strdup
	movq	%rax, -32(%r13)
	movl	%r15d, %r12d
	movq	-40(%r13), %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%r15, %rdi
	movl	%r12d, %r15d
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	$8, %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rcx
	callq	_snprintf
	incq	%r14
	addq	$48, %r13
	cmpq	%r14, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQfinish
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"template1"

	.comm	_QUERY_ALLOC,4,2                ## @QUERY_ALLOC
L_.str.1:                               ## @.str.1
	.asciz	"SELECT d.oid, d.datname, d.encoding, d.datcollate, d.datctype, %s AS spclocation FROM pg_catalog.pg_database d  LEFT OUTER JOIN pg_catalog.pg_tablespace t  ON d.dattablespace = t.oid WHERE d.datallowconn = true ORDER BY 2"

L_.str.2:                               ## @.str.2
	.asciz	"t.spclocation"

L_.str.3:                               ## @.str.3
	.asciz	"pg_catalog.pg_tablespace_location(t.oid)"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

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

L_.str.6:                               ## @.str.6
	.asciz	"datname"

L_.str.7:                               ## @.str.7
	.asciz	"encoding"

L_.str.8:                               ## @.str.8
	.asciz	"datcollate"

L_.str.9:                               ## @.str.9
	.asciz	"datctype"

L_.str.10:                              ## @.str.10
	.asciz	"spclocation"

	.no_dead_strip	_get_db_infos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_db_infos
_get_db_infos:                          ; @get_db_infos
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_connectToServer
	mov	x22, x0
Lloh5:
	adrp	x8, _QUERY_ALLOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QUERY_ALLOC@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x9, x19
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	stur	x21, [x29, #-112]               ; 8-byte Folded Spill
	ldr	w0, [x21, #16]
	bl	_GET_MAJOR_VERSION
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #902
	csel	x3, x9, x8, lt
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	stur	x22, [x29, #-120]               ; 8-byte Folded Spill
	mov	x0, x22
	mov	x2, x20
	bl	_executeQueryOrDie
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PQfnumber
	mov	x27, x0
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x24, x0
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x25, x0
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x28, x0
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x0, x21
	bl	_PQntuples
	mov	x19, x0
	add	w8, w0, w0, lsl #1
	lsl	w0, w8, #4
	bl	_pg_malloc
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	stur	w19, [x29, #-96]                ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	ldur	w8, [x29, #-96]                 ; 4-byte Folded Reload
	mov	w19, w8
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x22, x8, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	bl	_PQgetvalue
	bl	_atooid
	str	w0, [x22, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_PQgetvalue
	bl	_atoi
	str	w0, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_PQgetvalue
	bl	_pg_strdup
	stur	x0, [x22, #-8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x28
	bl	_PQgetvalue
	bl	_pg_strdup
	stur	x0, [x22, #-16]
	mov	x26, x25
	mov	x25, x24
	mov	x24, x23
	mov	x23, x27
	ldur	x27, [x22, #-24]
	mov	x0, x21
	mov	x1, x20
	ldur	w2, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_PQgetvalue
	mov	x3, x0
	mov	x0, x27
	mov	x27, x23
	mov	x23, x24
	mov	x24, x25
	mov	x25, x26
	mov	w1, #8
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_snprintf
	add	x20, x20, #1
	add	x22, x22, #48
	cmp	x19, x20
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x21
	bl	_PQclear
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_PQfinish
	ldp	x8, x9, [x29, #-112]            ; 16-byte Folded Reload
	str	x9, [x8, #8]
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	str	w9, [x8]
	ldur	x8, [x29, #-88]
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_5
; %bb.4:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template1"

	.comm	_QUERY_ALLOC,4,2                ; @QUERY_ALLOC
l_.str.1:                               ; @.str.1
	.asciz	"SELECT d.oid, d.datname, d.encoding, d.datcollate, d.datctype, %s AS spclocation FROM pg_catalog.pg_database d  LEFT OUTER JOIN pg_catalog.pg_tablespace t  ON d.dattablespace = t.oid WHERE d.datallowconn = true ORDER BY 2"

l_.str.2:                               ; @.str.2
	.asciz	"t.spclocation"

l_.str.3:                               ; @.str.3
	.asciz	"pg_catalog.pg_tablespace_location(t.oid)"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

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

l_.str.6:                               ; @.str.6
	.asciz	"datname"

l_.str.7:                               ; @.str.7
	.asciz	"encoding"

l_.str.8:                               ; @.str.8
	.asciz	"datcollate"

l_.str.9:                               ; @.str.9
	.asciz	"datctype"

l_.str.10:                              ; @.str.10
	.asciz	"spclocation"

	.no_dead_strip	_get_db_infos
.subsections_via_symbols
