	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetTableInfo
_GetTableInfo:                          ## @GetTableInfo
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atoi
	movq	_scale@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_PQclear
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_PQntuples
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_PART_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movq	_PART_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_partition_method@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_17:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_Assert
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:
	movq	_PART_HASH@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_PART_RANGE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movq	_partition_method@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atoi
LBB0_22:
	movq	_partitions@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PQclear                        ## TAILCALL
LBB0_1:
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r15
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	_ERRCODE_UNDEFINED_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_PQdb
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_4:
	movl	$1, %edi
	callq	_exit
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	jmp	LBB0_13
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_PQdb
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
LBB0_13:
	movq	%rax, %rdx
LBB0_14:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select count(*) from pgbench_branches"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_PG_DIAG_SQLSTATE,4,2           ## @PG_DIAG_SQLSTATE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_ERRCODE_UNDEFINED_TABLE,8,3    ## @ERRCODE_UNDEFINED_TABLE
L_.str.2:                               ## @.str.2
	.asciz	"Perhaps you need to do initialization (\"pgbench -i\") in database \"%s\"\n"

	.comm	_scale,8,3                      ## @scale
L_.str.3:                               ## @.str.3
	.asciz	"invalid count(*) from pgbench_branches: \"%s\"\n"

L_.str.4:                               ## @.str.4
	.asciz	"scale option ignored, using count from pgbench_branches table (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"select o.n, p.partstrat, pg_catalog.count(i.inhparent) from pg_catalog.pg_class as c join pg_catalog.pg_namespace as n on (n.oid = c.relnamespace) cross join lateral (select pg_catalog.array_position(pg_catalog.current_schemas(true), n.nspname)) as o(n) left join pg_catalog.pg_partitioned_table as p on (p.partrelid = c.oid) left join pg_catalog.pg_inherits as i on (c.oid = i.inhparent) where c.relname = 'pgbench_accounts' and o.n is not null group by 1, 2 order by 1 asc limit 1"

	.comm	_PART_NONE,4,2                  ## @PART_NONE
	.comm	_partition_method,4,2           ## @partition_method
	.comm	_partitions,8,3                 ## @partitions
L_.str.6:                               ## @.str.6
	.asciz	"no pgbench_accounts table found in search_path\nPerhaps you need to do initialization (\"pgbench -i\") in database \"%s\".\n"

L_.str.7:                               ## @.str.7
	.asciz	"r"

	.comm	_PART_RANGE,4,2                 ## @PART_RANGE
L_.str.8:                               ## @.str.8
	.asciz	"h"

	.comm	_PART_HASH,4,2                  ## @PART_HASH
L_.str.9:                               ## @.str.9
	.asciz	"unexpected partition method: \"%s\"\n"

	.no_dead_strip	_GetTableInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetTableInfo
_GetTableInfo:                          ; @GetTableInfo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PQexec
	mov	x21, x0
	bl	_PQresultStatus
Lloh2:
	adrp	x22, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PGRES_TUPLES_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atoi
Lloh4:
	adrp	x23, _scale@GOTPAGE
Lloh5:
	ldr	x23, [x23, _scale@GOTPAGEOFF]
	str	x0, [x23]
	tbnz	x0, #63, LBB0_19
; %bb.2:
	mov	x0, x21
	bl	_PQclear
	cbz	w20, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x23]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_4:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_PQexec
	mov	x20, x0
	bl	_PQresultStatus
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_PQntuples
	cbz	x0, LBB0_20
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetisnull
	cbz	x0, LBB0_9
; %bb.7:
Lloh13:
	adrp	x8, _PART_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PART_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	x0, #0
Lloh15:
	adrp	x8, _PART_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PART_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _partition_method@GOTPAGE
Lloh19:
	ldr	x9, [x9, _partition_method@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	b	LBB0_14
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.10:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_21
; %bb.11:
Lloh25:
	adrp	x8, _PART_HASH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PART_HASH@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x8, _PART_RANGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PART_RANGE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _partition_method@GOTPAGE
Lloh30:
	ldr	x9, [x9, _partition_method@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #2
	bl	_PQgetvalue
	bl	_atoi
LBB0_14:
Lloh32:
	adrp	x8, _partitions@GOTPAGE
Lloh33:
	ldr	x8, [x8, _partitions@GOTPAGEOFF]
Lloh34:
	str	x0, [x8]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PQclear
LBB0_15:
Lloh35:
	adrp	x8, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_PQresultErrorField
	mov	x20, x0
Lloh38:
	adrp	x22, _stderr@GOTPAGE
Lloh39:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	cbz	x20, LBB0_18
; %bb.16:
Lloh42:
	adrp	x8, _ERRCODE_UNDEFINED_TABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_TABLE@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w20, [x22]
	mov	x0, x19
	bl	_PQdb
	mov	x2, x0
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_18:
	mov	w0, #1
	bl	_exit
LBB0_19:
Lloh47:
	adrp	x8, _stderr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w19, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	mov	x2, x0
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	b	LBB0_22
LBB0_20:
Lloh52:
	adrp	x8, _stderr@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh54:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_PQdb
	mov	x2, x0
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	b	LBB0_22
LBB0_21:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x1, l_.str.9@PAGE
Lloh61:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x19
LBB0_22:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select count(*) from pgbench_branches"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_PG_DIAG_SQLSTATE,4,2           ; @PG_DIAG_SQLSTATE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_ERRCODE_UNDEFINED_TABLE,8,3    ; @ERRCODE_UNDEFINED_TABLE
l_.str.2:                               ; @.str.2
	.asciz	"Perhaps you need to do initialization (\"pgbench -i\") in database \"%s\"\n"

	.comm	_scale,8,3                      ; @scale
l_.str.3:                               ; @.str.3
	.asciz	"invalid count(*) from pgbench_branches: \"%s\"\n"

l_.str.4:                               ; @.str.4
	.asciz	"scale option ignored, using count from pgbench_branches table (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"select o.n, p.partstrat, pg_catalog.count(i.inhparent) from pg_catalog.pg_class as c join pg_catalog.pg_namespace as n on (n.oid = c.relnamespace) cross join lateral (select pg_catalog.array_position(pg_catalog.current_schemas(true), n.nspname)) as o(n) left join pg_catalog.pg_partitioned_table as p on (p.partrelid = c.oid) left join pg_catalog.pg_inherits as i on (c.oid = i.inhparent) where c.relname = 'pgbench_accounts' and o.n is not null group by 1, 2 order by 1 asc limit 1"

	.comm	_PART_NONE,4,2                  ; @PART_NONE
	.comm	_partition_method,4,2           ; @partition_method
	.comm	_partitions,8,3                 ; @partitions
l_.str.6:                               ; @.str.6
	.asciz	"no pgbench_accounts table found in search_path\nPerhaps you need to do initialization (\"pgbench -i\") in database \"%s\".\n"

l_.str.7:                               ; @.str.7
	.asciz	"r"

	.comm	_PART_RANGE,4,2                 ; @PART_RANGE
l_.str.8:                               ; @.str.8
	.asciz	"h"

	.comm	_PART_HASH,4,2                  ; @PART_HASH
l_.str.9:                               ; @.str.9
	.asciz	"unexpected partition method: \"%s\"\n"

	.no_dead_strip	_GetTableInfo
.subsections_via_symbols
