	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_permutation
_run_permutation:                       ## @run_permutation
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	shll	$3, %edi
	callq	_pg_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_pg_malloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%r14d, %r12d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rax
	movl	$1, (%rax)
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	$10, %edi
	callq	_putchar
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, 4(%rdx)
	jle	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	movq	_conns@GOTPCREL(%rip), %r14
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r12
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_printResultSet
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_PQclear
	incq	%rbx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movslq	4(%rdx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	24(%rdx), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_PQexec
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_PQresultStatus
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.73:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_7:
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%r14d, %r14d
	movq	_conns@GOTPCREL(%rip), %r15
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movq	%r14, %r13
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	16(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rax
	leaq	1(%r14), %r13
	movq	8(%rax,%r14,8), %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpq	(%r12), %rax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_printResultSet
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_PQclear
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	%r13, %r14
	jmp	LBB0_27
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rdx, %r12
	jle	LBB0_33
## %bb.14:
	xorl	%esi, %esi
	movq	_STEP_RETRY@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%r15d, %rax
	incl	%r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, (%r14,%rax,8)
LBB0_59:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	_STEP_RETRY@GOTPCREL(%rip), %rdx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	incq	%rsi
	cmpq	%rax, %rsi
	je	LBB0_30
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_50 Depth 2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%rsi,8), %rbx
	movq	_conns@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	16(%rbx), %rax
	movq	8(%rcx,%rax,8), %r12
	testl	%r15d, %r15d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_44
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ecx
	shlq	$3, %rcx
	movl	$1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r12
	cmpl	16(%r12), %eax
	je	LBB0_18
## %bb.37:                              ##   in Loop: Header=BB0_17 Depth=2
	addq	$8, %r14
	addq	$8, %rbx
	incl	%r13d
	cmpq	%rbx, %rcx
	jne	LBB0_17
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rdx), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_try_complete_step
	cmpl	%r13d, %r15d
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	8(%r14), %rsi
	leal	(,%r15,8), %edx
	subl	%ebx, %edx
	addl	$-8, %edx
	movq	%r14, %rdi
	callq	_memmove
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	leal	-1(%r15), %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_42
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_22 Depth=2
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	decl	%r13d
	cmpl	%r13d, %r15d
	jge	LBB0_42
LBB0_22:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r15d, %rbx
	movq	(%r14,%rbx,8), %rsi
	movq	_STEP_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STEP_NONBLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_try_complete_step
	testl	%eax, %eax
	je	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	incl	%r15d
	cmpl	%r13d, %r15d
	jl	LBB0_22
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_22 Depth=2
	leaq	(%r14,%rbx,8), %rdi
	movq	(%rdi), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	leal	1(%r15), %eax
	movl	%r13d, %edx
	subl	%eax, %edx
	jle	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_22 Depth=2
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	shll	$3, %edx
	callq	_memmove
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_report_multiple_error_messages
	movl	%r13d, %r15d
LBB0_43:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	20(%rbx), %esi
	movq	%r12, %rdi
	callq	_PQsendQuery
	testl	%eax, %eax
	je	LBB0_45
## %bb.47:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_STEP_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_try_complete_step
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_48
## %bb.49:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_50 Depth=2
	incl	%r14d
	decl	%r15d
	cmpl	%r15d, %r13d
	jge	LBB0_56
LBB0_50:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r13d, %rbx
	movq	(%r12,%rbx,8), %rsi
	movq	_STEP_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STEP_NONBLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_try_complete_step
	testl	%eax, %eax
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=2
	incl	%r13d
	cmpl	%r15d, %r13d
	jl	LBB0_50
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_50 Depth=2
	leaq	(%r12,%rbx,8), %rdi
	movq	(%rdi), %rax
	movslq	%r14d, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	leal	1(%r13), %eax
	movl	%r15d, %edx
	subl	%eax, %edx
	jle	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_50 Depth=2
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	shll	$3, %edx
	callq	_memmove
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r14d, %r14d
LBB0_56:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_report_multiple_error_messages
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_30:
	testl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_33
## %bb.31:
	movq	%rdx, %r13
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_try_complete_step
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	callq	_report_error_message
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_32
LBB0_33:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_66
## %bb.34:
	movq	_conns@GOTPCREL(%rip), %r13
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_35 Depth=1
	incq	%r15
LBB0_65:                                ##   in Loop: Header=BB0_35 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_66
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.60:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	(%r13), %rax
	movq	8(%rax,%r15,8), %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpq	(%r14), %rax
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%rbx, %rdi
	callq	_printResultSet
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	%rbx, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %r12
	movq	(%r13), %rax
	movq	8(%rax,%r15,8), %rdi
	callq	_PQerrorMessage
	movl	%r14d, %edi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r14
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_64:                                ##   in Loop: Header=BB0_35 Depth=1
	incq	%r15
	movq	%rbx, %rdi
	callq	_PQclear
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %eax
	jmp	LBB0_65
LBB0_66:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_72
## %bb.67:
	movq	_conns@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_69
## %bb.68:
	movq	%rbx, %rdi
	callq	_printResultSet
	jmp	LBB0_71
LBB0_69:
	movq	%rbx, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_71
## %bb.70:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_71:
	movq	%rbx, %rdi
	callq	_PQclear
LBB0_72:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_45:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %r14
	movq	%r12, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	jmp	LBB0_46
LBB0_29:
	movl	%r14d, %eax
	movl	%r13d, %ecx
	movq	_stderr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rax
	movq	(%rax,%rcx,8), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
LBB0_46:
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nstarting permutation:"

L_.str.1:                               ## @.str.1
	.asciz	" %s"

	.comm	_conns,8,3                      ## @conns
	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"setup failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"setup of session %s failed: %s"

	.comm	_STEP_RETRY,4,2                 ## @STEP_RETRY
	.comm	_STEP_NONBLOCK,4,2              ## @STEP_NONBLOCK
	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"failed to send query for step %s: %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"teardown of session %s failed: %s"

L_.str.7:                               ## @.str.7
	.asciz	"teardown failed: %s"

	.no_dead_strip	_run_permutation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_permutation
_run_permutation:                       ; @run_permutation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	mov	x23, x1
	mov	x21, x0
	ldr	w8, [x0]
	lsl	w0, w8, #3
	bl	_pg_malloc
	mov	x19, x0
	ldr	w8, [x21]
	lsl	w0, w8, #3
	bl	_pg_malloc
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w8, w23
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #1
	ldp	x22, x25, [sp, #8]              ; 16-byte Folded Reload
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25], #8
	str	w20, [x8]
	ldr	x8, [x8, #8]
	str	x8, [sp]
	mov	x0, x24
	bl	_printf
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #10
	bl	_putchar
	ldr	w8, [x21, #4]
Lloh4:
	adrp	x28, _conns@GOTPAGE
Lloh5:
	ldr	x28, [x28, _conns@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PGRES_TUPLES_OK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PGRES_TUPLES_OK@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x20, #0
Lloh8:
	adrp	x22, _PGRES_COMMAND_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PGRES_COMMAND_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_printResultSet
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_PQclear
	add	x20, x20, #1
	ldrsw	x8, [x21, #4]
	cmp	x20, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x0, [x8]
	ldr	x8, [x21, #24]
	ldr	x1, [x8, x20, lsl #3]
	bl	_PQexec
	mov	x24, x0
	bl	_PQresultStatus
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_PQresultStatus
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.9:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	ldr	x8, [x28]
	ldr	x0, [x8]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	b	LBB0_74
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.11:
	mov	x25, #0
Lloh15:
	adrp	x20, _PGRES_COMMAND_OK@GOTPAGE
Lloh16:
	ldr	x20, [x20, _PGRES_COMMAND_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x25, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	x22, w8, sxtw
	mov	x25, x22
	b.ge	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9, x25, lsl #3]
	ldr	x1, [x9, #16]
	cbz	x1, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x28]
	add	x22, x25, #1
	ldr	x0, [x8, x22, lsl #3]
	bl	_PQexec
	mov	x24, x0
	bl	_PQresultStatus
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_printResultSet
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_PQresultStatus
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_72
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_PQclear
	ldr	w8, [x21]
	b	LBB0_13
LBB0_19:
	cmp	w23, #1
	b.lt	LBB0_54
; %bb.20:
	mov	x28, #0
	mov	w24, #0
Lloh17:
	adrp	x22, _STEP_RETRY@GOTPAGE
Lloh18:
	ldr	x22, [x22, _STEP_RETRY@GOTPAGEOFF]
Lloh19:
	adrp	x20, _STEP_NONBLOCK@GOTPAGE
Lloh20:
	ldr	x20, [x20, _STEP_NONBLOCK@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x28, x28, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_51
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_44 Depth 2
	mov	w23, w24
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x25, [x8, x28, lsl #3]
Lloh21:
	adrp	x8, _conns@GOTPAGE
Lloh22:
	ldr	x8, [x8, _conns@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x8]
	ldr	w8, [x25, #16]
	add	w10, w8, #1
	ldr	x26, [x9, w10, sxtw #3]
	cmp	w24, #0
	b.le	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	stp	x26, x25, [sp, #24]             ; 16-byte Folded Spill
	mov	x24, #0
	lsl	w9, w23, #3
	sub	w26, w9, #8
	mov	x27, x19
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x25, [x27]
	ldr	w9, [x25, #16]
	cmp	w8, w9
	b.eq	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	add	x24, x24, #1
	add	x27, x27, #8
	sub	w26, w26, #8
	cmp	x23, x24
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x24, x23
	b	LBB0_39
LBB0_27:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x24, x23
	b	LBB0_40
LBB0_28:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x25
	bl	_try_complete_step
	add	w8, w24, #1
	cmp	w23, w8
	b.le	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x1, x27, #8
	mov	x0, x27
	mov	x2, x26
	bl	_memmove
LBB0_30:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	w24, w23, #1
	cmp	w23, #2
	b.lt	LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w23, #0
	mov	w26, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	w26, w26, #1
	sub	w24, w24, #1
	cmp	w23, w24
	b.ge	LBB0_38
LBB0_33:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x27, x19, w23, sxtw #3
	ldr	x1, [x27]
	ldr	w8, [x20]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_try_complete_step
	cbz	w0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	add	w23, w23, #1
	cmp	w23, w24
	b.lt	LBB0_33
	b	LBB0_38
LBB0_35:                                ;   in Loop: Header=BB0_33 Depth=2
	sxtw	x8, w23
	ldr	x9, [x27]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	str	x9, [x10, w26, sxtw #3]
	add	x8, x8, #1
	subs	w9, w24, w8
	b.le	LBB0_32
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=2
	lsl	w2, w9, #3
	add	x1, x19, x8, lsl #3
	mov	x0, x27
	bl	_memmove
	b	LBB0_32
LBB0_37:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w26, #0
LBB0_38:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x25
	mov	x1, x26
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_report_multiple_error_messages
LBB0_39:                                ;   in Loop: Header=BB0_22 Depth=1
	ldp	x26, x25, [sp, #24]             ; 16-byte Folded Reload
LBB0_40:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x25, #20]
	mov	x0, x26
	bl	_PQsendQuery
	cbz	w0, LBB0_71
; %bb.41:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w2, [x20]
	mov	x0, x21
	mov	x27, x25
	mov	x1, x25
	bl	_try_complete_step
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	cmp	w24, #1
	b.lt	LBB0_48
; %bb.42:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w23, #0
	mov	w25, #0
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=2
	add	w25, w25, #1
	sub	w24, w24, #1
	cmp	w23, w24
	b.ge	LBB0_49
LBB0_44:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x26, x19, w23, sxtw #3
	ldr	x1, [x26]
	ldr	w8, [x20]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_try_complete_step
	cbz	w0, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=2
	add	w23, w23, #1
	cmp	w23, w24
	b.lt	LBB0_44
	b	LBB0_49
LBB0_46:                                ;   in Loop: Header=BB0_44 Depth=2
	sxtw	x8, w23
	ldr	x9, [x26]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	str	x9, [x10, w25, sxtw #3]
	add	x8, x8, #1
	subs	w9, w24, w8
	b.le	LBB0_43
; %bb.47:                               ;   in Loop: Header=BB0_44 Depth=2
	lsl	w2, w9, #3
	add	x1, x19, x8, lsl #3
	mov	x0, x26
	bl	_memmove
	b	LBB0_43
LBB0_48:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w25, #0
LBB0_49:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x27
	mov	x1, x25
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_report_multiple_error_messages
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_21
; %bb.50:                               ;   in Loop: Header=BB0_22 Depth=1
	str	x27, [x19, w24, sxtw #3]
	add	w24, w24, #1
	b	LBB0_21
LBB0_51:
	cmp	w24, #1
Lloh24:
	adrp	x28, _conns@GOTPAGE
Lloh25:
	ldr	x28, [x28, _conns@GOTPAGEOFF]
	b.lt	LBB0_54
; %bb.52:
	mov	w20, w24
	mov	x23, x19
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_try_complete_step
	ldr	x0, [x23], #8
	bl	_report_error_message
	subs	x20, x20, #1
	b.ne	LBB0_53
LBB0_54:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_64
; %bb.55:
	mov	x25, #0
Lloh26:
	adrp	x20, _PGRES_COMMAND_OK@GOTPAGE
Lloh27:
	ldr	x20, [x20, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh28:
	adrp	x26, _stderr@GOTPAGE
Lloh29:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
Lloh30:
	adrp	x22, l_.str.6@PAGE
Lloh31:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_58
LBB0_56:                                ;   in Loop: Header=BB0_58 Depth=1
	add	x27, x25, #1
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	cmp	x27, w8, sxtw
	mov	x25, x27
	b.ge	LBB0_64
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9, x25, lsl #3]
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_56
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x8, [x28]
	add	x27, x25, #1
	ldr	x0, [x8, x27, lsl #3]
	bl	_PQexec
	mov	x23, x0
	bl	_PQresultStatus
Lloh32:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_61
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	mov	x0, x23
	bl	_printResultSet
	b	LBB0_63
LBB0_61:                                ;   in Loop: Header=BB0_58 Depth=1
	mov	x0, x23
	bl	_PQresultStatus
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_63
; %bb.62:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w24, [x26]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x25, [x8]
	ldr	x8, [x28]
	ldr	x0, [x8, x27, lsl #3]
	bl	_PQerrorMessage
	str	x0, [sp]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_fprintf
LBB0_63:                                ;   in Loop: Header=BB0_58 Depth=1
	mov	x0, x23
	bl	_PQclear
	ldr	w8, [x21]
	b	LBB0_57
LBB0_64:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_70
; %bb.65:
	ldr	x8, [x28]
	ldr	x0, [x8]
	bl	_PQexec
	mov	x21, x0
	bl	_PQresultStatus
Lloh35:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_67
; %bb.66:
	mov	x0, x21
	bl	_printResultSet
	b	LBB0_69
LBB0_67:
	mov	x0, x21
	bl	_PQresultStatus
Lloh38:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_69
; %bb.68:
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
	ldr	x8, [x28]
	ldr	x0, [x8]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_69:
	mov	x0, x21
	bl	_PQclear
LBB0_70:
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_free
LBB0_71:
Lloh46:
	adrp	x8, _stdout@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh48:
	ldr	w19, [x8]
	ldr	x20, [x25, #8]
	mov	x0, x26
	bl	_PQerrorMessage
	str	x0, [sp]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_73
LBB0_72:
Lloh51:
	adrp	x8, _stderr@GOTPAGE
Lloh52:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh53:
	ldr	w19, [x8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, w25, uxtw #3]
	ldr	x20, [x8]
	ldr	x8, [x28]
	ldr	x0, [x8, w22, uxtw #3]
	bl	_PQerrorMessage
	str	x0, [sp]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_73:
	mov	x0, x19
	mov	x2, x20
LBB0_74:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nstarting permutation:"

l_.str.1:                               ; @.str.1
	.asciz	" %s"

	.comm	_conns,8,3                      ; @conns
	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"setup failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"setup of session %s failed: %s"

	.comm	_STEP_RETRY,4,2                 ; @STEP_RETRY
	.comm	_STEP_NONBLOCK,4,2              ; @STEP_NONBLOCK
	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"failed to send query for step %s: %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"teardown of session %s failed: %s"

l_.str.7:                               ; @.str.7
	.asciz	"teardown failed: %s"

	.no_dead_strip	_run_permutation
.subsections_via_symbols
