	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _reconnectToDB
__reconnectToDB:                        ## @_reconnectToDB
	.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, %r14
	movq	%rdi, %rbx
	callq	_RestoringToDB
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ReconnectToServer
	jmp	LBB0_5
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_initPQExpBuffer
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_appendPsqlMetaConnect
	movq	-32(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ahprintf
	movq	%r15, %rdi
	callq	_termPQExpBuffer
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ahprintf
LBB0_5:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
LBB0_7:
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_free
LBB0_9:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_free
LBB0_11:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	__doSetFixedOutputState
	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	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"\\connect -\n"

	.no_dead_strip	__reconnectToDB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _reconnectToDB
__reconnectToDB:                        ; @_reconnectToDB
	.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
	bl	_RestoringToDB
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_ReconnectToServer
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_2:
	cbz	x20, LBB0_10
; %bb.3:
	add	x0, sp, #8
	bl	_initPQExpBuffer
	add	x0, sp, #8
	mov	x1, x20
	bl	_appendPsqlMetaConnect
	ldr	x2, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ahprintf
	add	x0, sp, #8
	bl	_termPQExpBuffer
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
LBB0_4:
	bl	_free
LBB0_5:
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_free
LBB0_7:
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_free
LBB0_9:
	str	xzr, [x19]
	mov	x0, x19
	bl	__doSetFixedOutputState
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ahprintf
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_4
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"\\connect -\n"

	.no_dead_strip	__reconnectToDB
.subsections_via_symbols
