	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReconnectToServer              ## -- Begin function ReconnectToServer
	.p2align	4, 0x90
_ReconnectToServer:                     ## @ReconnectToServer
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__connectDB
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_set_archive_cancel_info
	movq	(%rbx), %rdi
	callq	_PQfinish
	movq	%r14, (%rbx)
	movq	_ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExecuteSqlQueryForSingleRow
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PQclear                        ## TAILCALL
LBB0_1:
	movq	(%rbx), %rdi
	callq	_PQdb
	movq	%rax, %r15
	testq	%r14, %r14
	jne	LBB0_4
LBB0_3:
	movq	(%rbx), %rdi
	callq	_PQuser
	movq	%rax, %r14
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ALWAYS_SECURE_SEARCH_PATH_SQL,4,2 ## @ALWAYS_SECURE_SEARCH_PATH_SQL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReconnectToServer              ; -- Begin function ReconnectToServer
	.p2align	2
_ReconnectToServer:                     ; @ReconnectToServer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	cbz	x20, LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__connectDB
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_set_archive_cancel_info
	ldr	x0, [x19]
	bl	_PQfinish
	str	x20, [x19]
Lloh0:
	adrp	x8, _ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExecuteSqlQueryForSingleRow
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PQclear
LBB0_3:
	ldr	x0, [x19]
	bl	_PQdb
	mov	x21, x0
	cbnz	x20, LBB0_2
LBB0_4:
	ldr	x0, [x19]
	bl	_PQuser
	mov	x20, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ALWAYS_SECURE_SEARCH_PATH_SQL,4,2 ; @ALWAYS_SECURE_SEARCH_PATH_SQL
.subsections_via_symbols
