	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_db_conn
_get_db_conn:                           ## @get_db_conn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initPQExpBuffer
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_appendConnStrVal
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	movq	_os_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_appendConnStrVal
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBuffer
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_appendConnStrVal
LBB0_2:
	movl	-32(%rbp), %edi
	callq	_PQconnectdb
	movq	%rax, %rbx
	leaq	-32(%rbp), %rdi
	callq	_termPQExpBuffer
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbname="

L_.str.1:                               ## @.str.1
	.asciz	" user="

	.comm	_os_info,8,3                    ## @os_info
L_.str.2:                               ## @.str.2
	.asciz	" port=%d"

L_.str.3:                               ## @.str.3
	.asciz	" host="

	.no_dead_strip	_get_db_conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_db_conn
_get_db_conn:                           ; @get_db_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_initPQExpBuffer
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_appendPQExpBufferStr
	add	x0, sp, #8
	mov	x1, x20
	bl	_appendConnStrVal
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_appendPQExpBufferStr
Lloh4:
	adrp	x8, _os_info@GOTPAGE
Lloh5:
	ldr	x8, [x8, _os_info@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_appendConnStrVal
	ldr	w2, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_appendPQExpBuffer
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_appendPQExpBufferStr
	ldr	x1, [x19]
	add	x0, sp, #8
	bl	_appendConnStrVal
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_PQconnectdb
	mov	x19, x0
	add	x0, sp, #8
	bl	_termPQExpBuffer
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbname="

l_.str.1:                               ; @.str.1
	.asciz	" user="

	.comm	_os_info,8,3                    ; @os_info
l_.str.2:                               ; @.str.2
	.asciz	" port=%d"

l_.str.3:                               ; @.str.3
	.asciz	" host="

	.no_dead_strip	_get_db_conn
.subsections_via_symbols
