	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQresetPoll                    ## -- Begin function PQresetPoll
	.p2align	4, 0x90
_PQresetPoll:                           ## @PQresetPoll
	.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_6
## %bb.1:
	movq	%rdi, %r12
	callq	_PQconnectPoll
	movq	%rax, %r14
	movq	_PGRES_POLLING_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_8
## %bb.2:
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -48(%rbp)
	movq	8(%r12), %rax
	movq	_PGEVT_CONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax,%rbx), %edx
	movq	%r15, %rsi
	callq	*8(%rax,%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_8
LBB0_5:
	movq	_CONNECTION_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	leaq	16(%r12), %r14
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	8(%r12), %rcx
	movl	(%rcx,%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_6:
	movq	_PGRES_POLLING_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGRES_POLLING_OK,8,3           ## @PGRES_POLLING_OK
	.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"

	.comm	_PGRES_POLLING_FAILED,8,3       ## @PGRES_POLLING_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQresetPoll                    ; -- Begin function PQresetPoll
	.p2align	2
_PQresetPoll:                           ; @PQresetPoll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_PQconnectPoll
	mov	x20, x0
Lloh0:
	adrp	x8, _PGRES_POLLING_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PGRES_POLLING_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	mov	x22, #0
Lloh3:
	adrp	x23, _PGEVT_CONNRESET@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PGEVT_CONNRESET@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [sp, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	w0, [x23]
	ldr	w2, [x8, #4]
	add	x1, sp, #8
	blr	x9
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _CONNECTION_BAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONNECTION_BAD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	add	x20, x19, #16
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	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_7:
Lloh10:
	adrp	x8, _PGRES_POLLING_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PGRES_POLLING_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PGRES_POLLING_OK,8,3           ; @PGRES_POLLING_OK
	.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"

	.comm	_PGRES_POLLING_FAILED,8,3       ; @PGRES_POLLING_FAILED
.subsections_via_symbols
