	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQreset                        ## -- Begin function PQreset
	.p2align	4, 0x90
_PQreset:                               ## @PQreset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	callq	_closePGconn
	movq	%r15, %rdi
	callq	_connectDBStart
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_connectDBComplete
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.4:
	xorl	%r13d, %r13d
	movq	_PGEVT_CONNRESET@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -48(%rbp)
	movq	8(%r15), %rax
	movl	(%r12), %edi
	movl	4(%rax,%r13), %edx
	movq	%r14, %rsi
	callq	*8(%rax,%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	_CONNECTION_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	leaq	16(%r15), %r14
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	8(%r15), %rcx
	movl	(%rcx,%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGEVT_CONNRESET,4,2            ## @PGEVT_CONNRESET
	.comm	_CONNECTION_BAD,4,2             ## @CONNECTION_BAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PGEventProc \"%s\" failed during PGEVT_CONNRESET event\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQreset                        ; -- Begin function PQreset
	.p2align	2
_PQreset:                               ; @PQreset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_closePGconn
	mov	x0, x19
	bl	_connectDBStart
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_connectDBComplete
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	mov	x20, #0
Lloh0:
	adrp	x22, _PGEVT_CONNRESET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PGEVT_CONNRESET@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [sp, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	w0, [x22]
	ldr	w2, [x8, #4]
	add	x1, sp, #8
	blr	x9
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x20, x8
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _CONNECTION_BAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONNECTION_BAD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	add	x20, x19, #16
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21]
	mov	x0, x20
	bl	_printfPQExpBuffer
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PGEVT_CONNRESET,4,2            ; @PGEVT_CONNRESET
	.comm	_CONNECTION_BAD,4,2             ; @CONNECTION_BAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PGEventProc \"%s\" failed during PGEVT_CONNRESET event\n"

.subsections_via_symbols
