	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_table_name_patterns
_expand_table_name_patterns:            ## @expand_table_name_patterns
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r12
	movq	(%r14), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_PQclear
	movq	%r12, %rdi
	callq	_resetPQExpBuffer
	movq	8(%r15), %r15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testq	%r15, %r15
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RELKIND_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_RELKIND_FOREIGN_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r10
	callq	_appendPQExpBuffer
	addq	$16, %rsp
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_GetConnection
	movl	(%r15), %edx
	subq	$8, %rsp
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	leaq	L_.str.1(%rip), %r9
	leaq	L_.str.3(%rip), %rax
	pushq	%rax
	pushq	$0
	leaq	L_.str.2(%rip), %rax
	pushq	%rax
	callq	_processSQLNamePattern
	addq	$32, %rsp
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_ExecuteSqlStatement
	movl	(%r12), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r13
	movq	_ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ExecuteSqlQueryForSingleRow
	movq	%rax, %rdi
	callq	_PQclear
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_fatal
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_simple_oid_list_append
	incl	%r14d
	movq	%r13, %rdi
	callq	_PQntuples
	cmpl	%eax, %r14d
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT c.oid\nFROM pg_catalog.pg_class c\n     LEFT JOIN pg_catalog.pg_namespace n\n     ON n.oid OPERATOR(pg_catalog.=) c.relnamespace\nWHERE c.relkind OPERATOR(pg_catalog.=) ANY\n    (array['%c', '%c', '%c', '%c', '%c', '%c'])\n"

	.comm	_RELKIND_RELATION,4,2           ## @RELKIND_RELATION
	.comm	_RELKIND_SEQUENCE,4,2           ## @RELKIND_SEQUENCE
	.comm	_RELKIND_VIEW,4,2               ## @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,4,2            ## @RELKIND_MATVIEW
	.comm	_RELKIND_FOREIGN_TABLE,4,2      ## @RELKIND_FOREIGN_TABLE
	.comm	_RELKIND_PARTITIONED_TABLE,4,2  ## @RELKIND_PARTITIONED_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"n.nspname"

L_.str.2:                               ## @.str.2
	.asciz	"c.relname"

L_.str.3:                               ## @.str.3
	.asciz	"pg_catalog.pg_table_is_visible(c.oid)"

L_.str.4:                               ## @.str.4
	.asciz	"RESET search_path"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
	.comm	_ALWAYS_SECURE_SEARCH_PATH_SQL,4,2 ## @ALWAYS_SECURE_SEARCH_PATH_SQL
L_.str.5:                               ## @.str.5
	.asciz	"no matching tables were found for pattern \"%s\""

	.no_dead_strip	_expand_table_name_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_table_name_patterns
_expand_table_name_patterns:            ; @expand_table_name_patterns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	bl	_createPQExpBuffer
	mov	x22, x0
	ldr	x23, [x23]
	cbz	x23, LBB0_10
; %bb.2:
Lloh0:
	adrp	x26, l_.str.4@PAGE
Lloh1:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh2:
	adrp	x24, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ALWAYS_SECURE_SEARCH_PATH_SQL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_PQclear
	mov	x0, x22
	bl	_resetPQExpBuffer
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
Lloh6:
	adrp	x8, _RELKIND_RELATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RELKIND_RELATION@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _RELKIND_SEQUENCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RELKIND_SEQUENCE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _RELKIND_VIEW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RELKIND_VIEW@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x8, _RELKIND_MATVIEW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
Lloh18:
	adrp	x8, _RELKIND_FOREIGN_TABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RELKIND_FOREIGN_TABLE@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
Lloh21:
	adrp	x8, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh23:
	ldr	w7, [x8]
	mov	x0, x22
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_appendPQExpBuffer
	mov	x0, x21
	bl	_GetConnection
	ldr	w2, [x23]
Lloh26:
	adrp	x8, l_.str.3@PAGE
Lloh27:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
	mov	x1, x22
	mov	w3, #1
	mov	w4, #0
Lloh28:
	adrp	x5, l_.str.1@PAGE
Lloh29:
	add	x5, x5, l_.str.1@PAGEOFF
Lloh30:
	adrp	x6, l_.str.2@PAGE
Lloh31:
	add	x6, x6, l_.str.2@PAGEOFF
	mov	x7, #0
	bl	_processSQLNamePattern
	mov	x0, x21
	mov	x1, x26
	bl	_ExecuteSqlStatement
	ldr	w1, [x22]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_ExecuteSqlQuery
	mov	x28, x0
	ldr	w1, [x25]
	mov	x0, x21
	bl	_ExecuteSqlQueryForSingleRow
	bl	_PQclear
	cbz	w19, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_PQntuples
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	x1, x27
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atooid
	mov	x1, x0
	mov	x0, x20
	bl	_simple_oid_list_append
	add	w27, w27, #1
	mov	x0, x28
	bl	_PQntuples
	cmp	w27, w0
	b.lt	LBB0_9
	b	LBB0_3
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_destroyPQExpBuffer
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT c.oid\nFROM pg_catalog.pg_class c\n     LEFT JOIN pg_catalog.pg_namespace n\n     ON n.oid OPERATOR(pg_catalog.=) c.relnamespace\nWHERE c.relkind OPERATOR(pg_catalog.=) ANY\n    (array['%c', '%c', '%c', '%c', '%c', '%c'])\n"

	.comm	_RELKIND_RELATION,4,2           ; @RELKIND_RELATION
	.comm	_RELKIND_SEQUENCE,4,2           ; @RELKIND_SEQUENCE
	.comm	_RELKIND_VIEW,4,2               ; @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,4,2            ; @RELKIND_MATVIEW
	.comm	_RELKIND_FOREIGN_TABLE,4,2      ; @RELKIND_FOREIGN_TABLE
	.comm	_RELKIND_PARTITIONED_TABLE,4,2  ; @RELKIND_PARTITIONED_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"n.nspname"

l_.str.2:                               ; @.str.2
	.asciz	"c.relname"

l_.str.3:                               ; @.str.3
	.asciz	"pg_catalog.pg_table_is_visible(c.oid)"

l_.str.4:                               ; @.str.4
	.asciz	"RESET search_path"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
	.comm	_ALWAYS_SECURE_SEARCH_PATH_SQL,4,2 ; @ALWAYS_SECURE_SEARCH_PATH_SQL
l_.str.5:                               ; @.str.5
	.asciz	"no matching tables were found for pattern \"%s\""

	.no_dead_strip	_expand_table_name_patterns
.subsections_via_symbols
