	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dumpDatabaseConfig
_dumpDatabaseConfig:                    ## @dumpDatabaseConfig
	.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, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_GetConnection
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r13
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$90000, (%rbx)                  ## imm = 0x15F90
	leaq	L_.str(%rip), %rsi
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rsi
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movl	(%r13), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetisnull
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_makeAlterConfigCommand
	movq	%r12, %rdi
	callq	_PQclear
	incl	%r15d
	jmp	LBB0_1
LBB0_6:
	movq	%r12, %rdi
	callq	_PQclear
	cmpl	$90000, (%rbx)                  ## imm = 0x15F90
	jl	LBB0_12
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movl	(%r13), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rcx
	leaq	L_.str.2(%rip), %r8
	movq	%r12, %r9
	callq	_makeAlterConfigCommand
	incl	%ebx
	movq	%r14, %rdi
	callq	_PQntuples
	cmpl	%eax, %ebx
	jl	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_PQclear
LBB0_12:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT setconfig[%d] FROM pg_db_role_setting WHERE setrole = 0 AND setdatabase = '%u'::oid"

L_.str.1:                               ## @.str.1
	.asciz	"SELECT datconfig[%d] FROM pg_database WHERE oid = '%u'::oid"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.2:                               ## @.str.2
	.asciz	"DATABASE"

L_.str.3:                               ## @.str.3
	.asciz	"SELECT rolname, unnest(setconfig) FROM pg_db_role_setting s, pg_roles r WHERE setrole = r.oid AND setdatabase = '%u'::oid"

L_.str.4:                               ## @.str.4
	.asciz	"ROLE"

	.no_dead_strip	_dumpDatabaseConfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dumpDatabaseConfig
_dumpDatabaseConfig:                    ; @dumpDatabaseConfig
	.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
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_GetConnection
	mov	x21, x0
	mov	w25, #1
	bl	_createPQExpBuffer
	mov	x22, x0
Lloh0:
	adrp	x28, l_.str.1@PAGE
Lloh1:
	add	x28, x28, l_.str.1@PAGEOFF
Lloh2:
	adrp	x26, l_.str@PAGE
Lloh3:
	add	x26, x26, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	mov	w9, #24463
	movk	w9, #1, lsl #16
	cmp	w8, w9
	csel	x1, x26, x28, gt
	str	x24, [sp]
	mov	x0, x22
	mov	x2, x25
	bl	_printfPQExpBuffer
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ExecuteSqlQuery
	mov	x27, x0
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetisnull
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	mov	x1, x0
	mov	x0, x21
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x19
	mov	x4, #0
	mov	x5, #0
	mov	x6, x20
	bl	_makeAlterConfigCommand
	mov	x0, x27
	bl	_PQclear
	add	w25, w25, #1
	b	LBB0_1
LBB0_4:
	mov	x0, x27
	bl	_PQclear
	ldr	w8, [x23]
	mov	w9, #24463
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.le	LBB0_10
; %bb.5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_printfPQExpBuffer
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ExecuteSqlQuery
	mov	x23, x0
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x0, x23
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w24, #0
Lloh14:
	adrp	x25, l_.str.4@PAGE
Lloh15:
	add	x25, x25, l_.str.4@PAGEOFF
Lloh16:
	adrp	x26, l_.str.2@PAGE
Lloh17:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	w2, #1
	bl	_PQgetvalue
	mov	x27, x0
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	bl	_PQgetvalue
	mov	x3, x0
	mov	x0, x21
	mov	x1, x27
	mov	x2, x25
	mov	x4, x26
	mov	x5, x19
	mov	x6, x20
	bl	_makeAlterConfigCommand
	add	w24, w24, #1
	mov	x0, x23
	bl	_PQntuples
	cmp	w24, w0
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x23
	bl	_PQclear
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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT setconfig[%d] FROM pg_db_role_setting WHERE setrole = 0 AND setdatabase = '%u'::oid"

l_.str.1:                               ; @.str.1
	.asciz	"SELECT datconfig[%d] FROM pg_database WHERE oid = '%u'::oid"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.2:                               ; @.str.2
	.asciz	"DATABASE"

l_.str.3:                               ; @.str.3
	.asciz	"SELECT rolname, unnest(setconfig) FROM pg_db_role_setting s, pg_roles r WHERE setrole = r.oid AND setdatabase = '%u'::oid"

l_.str.4:                               ; @.str.4
	.asciz	"ROLE"

	.no_dead_strip	_dumpDatabaseConfig
.subsections_via_symbols
