	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function expand_schema_name_patterns
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_expand_schema_name_patterns:           ## @expand_schema_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	$40, %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	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_appendPQExpBufferStr
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_GetConnection
	movl	(%r15), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rsp)
	movl	%eax, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_processSQLNamePattern
	movl	(%r12), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r13
	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.2(%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	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
LBB0_11:
	addq	$40, %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 oid FROM pg_catalog.pg_namespace n\n"

L_.str.1:                               ## @.str.1
	.asciz	"n.nspname"

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

	.no_dead_strip	_expand_schema_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_schema_name_patterns
_expand_schema_name_patterns:           ; @expand_schema_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	x28, [x23]
	cbz	x28, LBB0_10
; %bb.2:
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh4:
	adrp	x25, _PGRES_TUPLES_OK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PGRES_TUPLES_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_PQclear
	mov	x0, x22
	bl	_resetPQExpBuffer
	ldr	x28, [x28, #8]
	cbz	x28, LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x22
	mov	x1, x23
	bl	_appendPQExpBufferStr
	mov	x0, x21
	bl	_GetConnection
	ldr	w2, [x28]
	str	xzr, [sp]
	mov	x1, x22
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	x6, x24
	mov	x7, #0
	bl	_processSQLNamePattern
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_ExecuteSqlQuery
	mov	x26, x0
	cbz	w19, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_PQntuples
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	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, x26
	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, x26
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT oid FROM pg_catalog.pg_namespace n\n"

l_.str.1:                               ; @.str.1
	.asciz	"n.nspname"

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

	.no_dead_strip	_expand_schema_name_patterns
.subsections_via_symbols
