	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_complete_step
_try_complete_step:                     ## @try_complete_step
	.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
	subq	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -316(%rbp)                ## 4-byte Spill
	movq	%rdi, -360(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_conns@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, -312(%rbp)                ## 8-byte Spill
	movslq	(%rsi), %rcx
	movq	8(%rax,%rcx,8), %r15
	movq	%r15, %rdi
	callq	_PQsocket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	xorl	%eax, %eax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	leaq	-416(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	leaq	-364(%rbp), %r12
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	%r14d, %r13d
	incl	%r13d
	movl	-416(%rbp), %eax
	movl	%eax, -352(%rbp)                ## 4-byte Spill
	movl	-408(%rbp), %eax
	movl	%eax, -348(%rbp)                ## 4-byte Spill
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_PQisBusy
	testq	%rax, %rax
	je	LBB0_33
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movq	$0, -392(%rbp)
	movl	$10000, -400(%rbp)              ## imm = 0x2710
	movl	%r13d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-400(%rbp), %r8
	callq	_select
	testl	%eax, %eax
	jns	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_3
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_11
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_PQconsumeInput
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-316(%rbp), %eax                ## 4-byte Reload
	movq	_STEP_NONBLOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_conns@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_PREP_WAITING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_backend_pid_strs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	$4, %rcx
	movl	$0, (%rsp)
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PQexecPrepared
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movzbl	(%rax), %eax
	movb	%al, -344(%rbp)                 ## 1-byte Spill
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	callq	_PQclear
	cmpb	$116, -344(%rbp)                ## 1-byte Folded Reload
	je	LBB0_16
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-384(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movl	-384(%rbp), %eax
	subl	-352(%rbp), %eax                ## 4-byte Folded Reload
	movl	-376(%rbp), %edx
	subl	-348(%rbp), %edx                ## 4-byte Folded Reload
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %edx
	addl	%eax, %edx
	imull	$180, %ecx, %eax
	cmpl	%eax, %edx
	jle	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -336(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, -328(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	callq	_PQgetCancel
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	leaq	-304(%rbp), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_PQcancel
	movl	$1, %ecx
	movq	%rcx, -336(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-304(%rbp), %rdx
	callq	_fprintf
	xorl	%eax, %eax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-344(%rbp), %rdi                ## 8-byte Reload
	callq	_PQfreeCancel
	jmp	LBB0_29
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-328(%rbp), %edx                ## 4-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rax
	imull	$200, (%rax), %eax
	cmpl	%eax, %edx
	jle	LBB0_3
## %bb.31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_9
LBB0_16:
	movq	%r15, %rdi
	callq	_PQconsumeInput
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movq	%r15, %rdi
	callq	_PQisBusy
	testq	%rax, %rax
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_33
## %bb.19:
	movq	_STEP_RETRY@GOTPCREL(%rip), %rax
	movl	-316(%rbp), %edx                ## 4-byte Reload
	testl	%edx, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	8(%rcx), %rsi
	movq	16(%rcx), %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_21:
	movl	$1, %r13d
	jmp	LBB0_60
LBB0_33:
	movq	_STEP_RETRY@GOTPCREL(%rip), %rax
	movq	-312(%rbp), %r14                ## 8-byte Reload
	movq	8(%r14), %rsi
	movl	-316(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_35
## %bb.34:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_36
LBB0_35:
	movq	16(%r14), %rdx
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_36:
	movq	%r15, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_51
## %bb.37:
	movq	%rax, %rbx
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %r12
	leaq	L_.str.12(%rip), %r13
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_38 Depth=1
	callq	_PQresultStatus
	movl	%eax, %edi
	callq	_PQresStatus
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_50:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r15, %rdi
	callq	_PQgetResult
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_51
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_PQresultStatus
	cmpl	$130, %eax
	je	LBB0_50
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	cmpl	$129, %eax
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%rbx, %rdi
	cmpl	$128, %eax
	jne	LBB0_49
## %bb.41:                              ##   in Loop: Header=BB0_38 Depth=1
	callq	_printResultSet
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_38 Depth=1
	cmpq	$0, 24(%r14)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_38 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	24(%r14), %rdi
	callq	_puts
LBB0_44:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	_PG_DIAG_SEVERITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r14
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	testq	%r14, %r14
	je	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_38 Depth=1
	testq	%rax, %rax
	je	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_38 Depth=1
	leaq	L_.str.11(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_psprintf
	jmp	LBB0_47
LBB0_48:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	%rbx, %rdi
	callq	_PQresultErrorMessage
	movl	%eax, %edi
	callq	_pg_strdup
LBB0_47:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	-312(%rbp), %r14                ## 8-byte Reload
	movq	%rax, 24(%r14)
	jmp	LBB0_50
LBB0_51:
	movq	%r15, %rdi
	callq	_PQconsumeInput
	movq	%r15, %rdi
	callq	_PQnotifies
	testq	%rax, %rax
	je	LBB0_52
## %bb.53:
	movq	%rax, %rbx
	leaq	L_.str.14(%rip), %r12
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_54 Depth=1
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	L_.str.13(%rip), %rdx
	callq	_snprintf
	movq	8(%r13), %rax
	movq	%r14, %r8
LBB0_59:                                ##   in Loop: Header=BB0_54 Depth=1
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_PQfreemem
	movq	%r15, %rdi
	callq	_PQconsumeInput
	movq	%r15, %rdi
	callq	_PQnotifies
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_60
LBB0_54:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_55 Depth 2
	movq	-360(%rbp), %r13                ## 8-byte Reload
	movl	(%r13), %eax
	movq	_backend_pids@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testl	%eax, %eax
	movl	$0, %ecx
	cmovlel	%ecx, %eax
	movq	(%rbx), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_54 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %rax
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=2
	leaq	1(%rsi), %rdi
	cmpq	8(%rdx,%rsi,8), %rcx
	movq	%rdi, %rsi
	jne	LBB0_55
## %bb.57:                              ##   in Loop: Header=BB0_54 Depth=1
	movq	8(%r13), %rax
	movq	-8(%rax,%rdi,8), %rdx
	movq	(%rdx), %r8
	testq	%r8, %r8
	jne	LBB0_59
	jmp	LBB0_58
LBB0_52:
	xorl	%r13d, %r13d
LBB0_60:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.61:
	movl	%r13d, %eax
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	%ebx, %edi
LBB0_8:
	movq	%rax, %rdx
LBB0_9:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_62:
	callq	___stack_chk_fail
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_conns@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_conns,8,3                      ## @conns
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid socket: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"select failed: %s\n"

	.comm	_STEP_NONBLOCK,4,2              ## @STEP_NONBLOCK
	.comm	_PREP_WAITING,4,2               ## @PREP_WAITING
	.comm	_backend_pid_strs,8,3           ## @backend_pid_strs
L_.str.2:                               ## @.str.2
	.asciz	"lock wait query failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"PQconsumeInput failed: %s\n"

	.comm	_STEP_RETRY,4,2                 ## @STEP_RETRY
L_.str.4:                               ## @.str.4
	.asciz	"step %s: %s <waiting ...>\n"

	.comm	_USECS_PER_SEC,4,2              ## @USECS_PER_SEC
L_.str.5:                               ## @.str.5
	.asciz	"PQcancel failed: %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"step %s timed out after 200 seconds\n"

L_.str.7:                               ## @.str.7
	.asciz	"step %s: <... completed>\n"

L_.str.8:                               ## @.str.8
	.asciz	"step %s: %s\n"

	.comm	_PG_DIAG_SEVERITY,4,2           ## @PG_DIAG_SEVERITY
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ## @PG_DIAG_MESSAGE_PRIMARY
L_.str.11:                              ## @.str.11
	.asciz	"%s:  %s"

L_.str.12:                              ## @.str.12
	.asciz	"unexpected result status: %s\n"

	.comm	_backend_pids,8,3               ## @backend_pids
L_.str.13:                              ## @.str.13
	.asciz	"PID %d"

L_.str.14:                              ## @.str.14
	.asciz	"%s: NOTIFY \"%s\" with payload \"%s\" from %s\n"

L_str:                                  ## @str
	.asciz	"WARNING: this step had a leftover error message"

	.no_dead_strip	_try_complete_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_complete_step
_try_complete_step:                     ; @try_complete_step
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #384]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x26, _conns@GOTPAGE
Lloh4:
	ldr	x26, [x26, _conns@GOTPAGEOFF]
	ldr	x8, [x26]
	ldrsw	x9, [x1]
	add	x8, x8, x9, lsl #3
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_PQsocket
	tbnz	w0, #31, LBB0_56
; %bb.1:
	mov	x23, x0
	add	x0, sp, #88
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #108
	bl	_FD_ZERO
	add	w24, w23, #1
	ldr	w8, [sp, #96]
	stp	w8, wzr, [sp, #48]              ; 8-byte Folded Spill
	ldr	w8, [sp, #88]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	w28, #10000
Lloh5:
	adrp	x27, _errno@GOTPAGE
Lloh6:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x25, _EINTR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_53
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PQisBusy
	cbz	x0, LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #108
	mov	x0, x23
	bl	_FD_SET
	str	xzr, [sp, #80]
	str	w28, [sp, #72]
	add	x1, sp, #108
	add	x4, sp, #72
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	bl	_select
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PQconsumeInput
	cbnz	w0, LBB0_3
	b	LBB0_52
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _STEP_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STEP_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w22, [sp, #40]                  ; 4-byte Folded Spill
	tst	w8, w22
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x0, [x8]
Lloh12:
	adrp	x8, _PREP_WAITING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PREP_WAITING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _backend_pid_strs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _backend_pid_strs@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	add	x3, x8, #4
	mov	w2, #1
	mov	x4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_PQexecPrepared
	mov	x26, x0
	bl	_PQresultStatus
	cmp	w0, #128
	b.ne	LBB0_58
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_58
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	ldrb	w22, [x0]
	mov	x0, x26
	bl	_PQclear
	cmp	w22, #116
Lloh18:
	adrp	x26, _conns@GOTPAGE
Lloh19:
	ldr	x26, [x26, _conns@GOTPAGEOFF]
	b.eq	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #56
	mov	x1, #0
	bl	_gettimeofday
	ldr	w8, [sp, #64]
	ldr	w9, [sp, #56]
	ldp	w11, w10, [sp, #44]             ; 8-byte Folded Reload
	sub	w8, w8, w10
Lloh20:
	adrp	x10, _USECS_PER_SEC@GOTPAGE
Lloh21:
	ldr	x10, [x10, _USECS_PER_SEC@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	sub	w9, w9, w11
	madd	w22, w8, w10, w9
	mov	w8, #180
	mul	w8, w10, w8
	cmp	w22, w8
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #0, gt
	b.ne	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PQgetCancel
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	add	x1, sp, #112
	mov	w2, #256
	bl	_PQcancel
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x2, sp, #112
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_PQfreeCancel
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x26, _conns@GOTPAGE
Lloh29:
	ldr	x26, [x26, _conns@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh30:
	adrp	x8, _USECS_PER_SEC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _USECS_PER_SEC@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	mov	w9, #200
	mul	w8, w8, w9
	cmp	w22, w8
	b.gt	LBB0_59
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [sp, #40]                  ; 4-byte Folded Reload
	b	LBB0_3
LBB0_21:
	mov	x0, x20
	bl	_PQconsumeInput
	cbz	w0, LBB0_52
; %bb.22:
	mov	x0, x20
	bl	_PQisBusy
	ldr	w22, [sp, #40]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_26
; %bb.23:
Lloh33:
	adrp	x8, _STEP_RETRY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _STEP_RETRY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_25
; %bb.24:
	ldp	x8, x9, [x19, #8]
	stp	x8, x9, [sp]
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_25:
	mov	w0, #1
	b	LBB0_50
LBB0_26:
Lloh38:
	adrp	x8, _STEP_RETRY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STEP_RETRY@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x8]
	ldr	x8, [x19, #8]
	tst	w9, w22
	b.eq	LBB0_28
; %bb.27:
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_29
LBB0_28:
	ldr	x9, [x19, #16]
	stp	x8, x9, [sp]
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_29:
	bl	_printf
	mov	x0, x20
	bl	_PQgetResult
	cbz	x0, LBB0_42
; %bb.30:
	mov	x23, x0
Lloh45:
	adrp	x27, _PG_DIAG_SEVERITY@GOTPAGE
Lloh46:
	ldr	x27, [x27, _PG_DIAG_SEVERITY@GOTPAGEOFF]
Lloh47:
	adrp	x28, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh48:
	ldr	x28, [x28, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
Lloh49:
	adrp	x22, l_.str.11@PAGE
Lloh50:
	add	x22, x22, l_.str.11@PAGEOFF
Lloh51:
	adrp	x24, l_str@PAGE
Lloh52:
	add	x24, x24, l_str@PAGEOFF
Lloh53:
	adrp	x25, l_.str.12@PAGE
Lloh54:
	add	x25, x25, l_.str.12@PAGEOFF
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_PQresultStatus
	bl	_PQresStatus
	str	x0, [sp]
	mov	x0, x25
	bl	_printf
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_PQclear
	mov	x0, x20
	bl	_PQgetResult
	mov	x23, x0
	cbz	x0, LBB0_42
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_PQresultStatus
	cmp	w0, #130
	b.eq	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	cmp	w0, #129
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	cmp	w0, #128
	b.ne	LBB0_31
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_printResultSet
	b	LBB0_32
LBB0_37:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x24
	bl	_puts
	ldr	x0, [x19, #24]
	bl	_puts
LBB0_39:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w1, [x27]
	mov	x0, x23
	bl	_PQresultErrorField
	mov	x26, x0
	ldr	w1, [x28]
	mov	x0, x23
	bl	_PQresultErrorField
	cmp	x26, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x23
	bl	_PQresultErrorMessage
	bl	_pg_strdup
	str	x0, [x19, #24]
	b	LBB0_32
LBB0_41:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x2, x0
	mov	x0, x22
	mov	x1, x26
	bl	_psprintf
	str	x0, [x19, #24]
	b	LBB0_32
LBB0_42:
	mov	x0, x20
	bl	_PQconsumeInput
	mov	x0, x20
	bl	_PQnotifies
	cbz	x0, LBB0_50
; %bb.43:
	mov	x24, x0
Lloh55:
	adrp	x25, _backend_pids@GOTPAGE
Lloh56:
	ldr	x25, [x25, _backend_pids@GOTPAGEOFF]
Lloh57:
	adrp	x22, l_.str.13@PAGE
Lloh58:
	add	x22, x22, l_.str.13@PAGEOFF
Lloh59:
	adrp	x23, l_.str.14@PAGE
Lloh60:
	add	x23, x23, l_.str.14@PAGEOFF
	b	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_46 Depth=1
	add	x26, sp, #112
	add	x0, sp, #112
	mov	w1, #32
	mov	x2, x22
	bl	_snprintf
	ldr	x9, [x21, #8]
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=1
	ldrsw	x8, [x19]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldp	x9, x10, [x24, #8]
	stp	x10, x26, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x23
	bl	_printf
	mov	x0, x24
	bl	_PQfreemem
	mov	x0, x20
	bl	_PQconsumeInput
	mov	x0, x20
	bl	_PQnotifies
	mov	x24, x0
	cbz	x0, LBB0_50
LBB0_46:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_47 Depth 2
	mov	x8, #0
	ldr	w9, [x21]
	ldr	x10, [x25]
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	ldr	x3, [x24]
	lsl	x9, x9, #3
	add	x10, x10, #8
LBB0_47:                                ;   Parent Loop BB0_46 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x9, x8
	b.eq	LBB0_44
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=2
	ldr	x11, [x10, x8]
	add	x8, x8, #8
	cmp	x3, x11
	b.ne	LBB0_47
; %bb.49:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x9, [x21, #8]
	add	x8, x9, x8
	ldur	x8, [x8, #-8]
	ldr	x26, [x8]
	cbnz	x26, LBB0_45
	b	LBB0_44
LBB0_50:
	ldur	x8, [x29, #-96]
Lloh61:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh62:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.51:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #400]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_52:
Lloh64:
	adrp	x8, _stderr@GOTPAGE
Lloh65:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh66:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_PQerrorMessage
	mov	x2, x0
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_54
LBB0_53:
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
Lloh72:
	adrp	x1, l_.str.1@PAGE
Lloh73:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_54:
	mov	x0, x19
LBB0_55:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_56:
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_PQerrorMessage
	mov	x2, x0
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_54
LBB0_57:
	bl	___stack_chk_fail
LBB0_58:
Lloh79:
	adrp	x8, _stderr@GOTPAGE
Lloh80:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh81:
	ldr	w19, [x8]
Lloh82:
	adrp	x8, _conns@GOTPAGE
Lloh83:
	ldr	x8, [x8, _conns@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh85:
	adrp	x1, l_.str.2@PAGE
Lloh86:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_54
LBB0_59:
Lloh87:
	adrp	x8, _stderr@GOTPAGE
Lloh88:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh90:
	adrp	x1, l_.str.6@PAGE
Lloh91:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_55
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_conns,8,3                      ; @conns
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid socket: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"select failed: %s\n"

	.comm	_STEP_NONBLOCK,4,2              ; @STEP_NONBLOCK
	.comm	_PREP_WAITING,4,2               ; @PREP_WAITING
	.comm	_backend_pid_strs,8,3           ; @backend_pid_strs
l_.str.2:                               ; @.str.2
	.asciz	"lock wait query failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"PQconsumeInput failed: %s\n"

	.comm	_STEP_RETRY,4,2                 ; @STEP_RETRY
l_.str.4:                               ; @.str.4
	.asciz	"step %s: %s <waiting ...>\n"

	.comm	_USECS_PER_SEC,4,2              ; @USECS_PER_SEC
l_.str.5:                               ; @.str.5
	.asciz	"PQcancel failed: %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"step %s timed out after 200 seconds\n"

l_.str.7:                               ; @.str.7
	.asciz	"step %s: <... completed>\n"

l_.str.8:                               ; @.str.8
	.asciz	"step %s: %s\n"

	.comm	_PG_DIAG_SEVERITY,4,2           ; @PG_DIAG_SEVERITY
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ; @PG_DIAG_MESSAGE_PRIMARY
l_.str.11:                              ; @.str.11
	.asciz	"%s:  %s"

l_.str.12:                              ; @.str.12
	.asciz	"unexpected result status: %s\n"

	.comm	_backend_pids,8,3               ; @backend_pids
l_.str.13:                              ; @.str.13
	.asciz	"PID %d"

l_.str.14:                              ; @.str.14
	.asciz	"%s: NOTIFY \"%s\" with payload \"%s\" from %s\n"

l_str:                                  ; @str
	.asciz	"WARNING: this step had a leftover error message"

	.no_dead_strip	_try_complete_step
.subsections_via_symbols
