	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getPublications                ## -- Begin function getPublications
	.p2align	4, 0x90
_getPublications:                       ## @getPublications
	.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	8(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$100000, (%rdi)                 ## imm = 0x186A0
	jge	LBB0_2
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_resetPQExpBuffer
	cmpl	$110000, (%rbx)                 ## imm = 0x1ADB0
	movq	_username_subquery@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovgeq	%rax, %rsi
	movq	%r14, %rdi
	callq	_appendPQExpBuffer
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_PQfnumber
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	shll	$6, %edi
	callq	_pg_malloc
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.3:
	movq	%rax, %r12
	movl	%r15d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	$56, %r12
	xorl	%r13d, %r13d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_selectDumpableObject
	incq	%r13
	addq	$64, %r12
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DO_PUBLICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-32(%r12), %rbx
	movl	%eax, -8(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, -16(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, -24(%r12)
	movq	%rbx, %rdi
	callq	_AssignDumpId
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, -32(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, (%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	leaq	L_.str.11(%rip), %r15
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -56(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -52(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -48(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -44(%r12)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -40(%r12)
	movq	(%r12), %rax
	cmpb	$0, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-32(%r12), %rsi
	leaq	L_.str.12(%rip), %rdi
	callq	_pg_log_warning
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_PQclear
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	$72, %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 p.tableoid, p.oid, p.pubname, (%s p.pubowner) AS rolname, p.puballtables, p.pubinsert, p.pubupdate, p.pubdelete, p.pubtruncate FROM pg_publication p"

	.comm	_username_subquery,4,2          ## @username_subquery
L_.str.1:                               ## @.str.1
	.asciz	"SELECT p.tableoid, p.oid, p.pubname, (%s p.pubowner) AS rolname, p.puballtables, p.pubinsert, p.pubupdate, p.pubdelete, false AS pubtruncate FROM pg_publication p"

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

L_.str.3:                               ## @.str.3
	.asciz	"oid"

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

L_.str.5:                               ## @.str.5
	.asciz	"rolname"

L_.str.6:                               ## @.str.6
	.asciz	"puballtables"

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

L_.str.8:                               ## @.str.8
	.asciz	"pubupdate"

L_.str.9:                               ## @.str.9
	.asciz	"pubdelete"

L_.str.10:                              ## @.str.10
	.asciz	"pubtruncate"

	.comm	_DO_PUBLICATION,4,2             ## @DO_PUBLICATION
L_.str.11:                              ## @.str.11
	.asciz	"t"

L_.str.12:                              ## @.str.12
	.asciz	"owner of publication \"%s\" appears to be invalid"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getPublications                ; -- Begin function getPublications
	.p2align	2
_getPublications:                       ; @getPublications
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, [x0, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #34464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ge	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	bl	_createPQExpBuffer
	mov	x20, x0
	bl	_resetPQExpBuffer
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _username_subquery@GOTPAGE
Lloh1:
	ldr	x9, [x9, _username_subquery@GOTPAGEOFF]
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh4:
	ldr	w2, [x9]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	mov	w11, #44463
	movk	w11, #1, lsl #16
	cmp	w8, w11
	csel	x1, x9, x10, gt
	mov	x0, x20
	bl	_appendPQExpBuffer
	str	x20, [sp]                       ; 8-byte Folded Spill
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ExecuteSqlQuery
	mov	x21, x0
	bl	_PQntuples
	mov	x24, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x28, x0
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x20, x0
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x22, x0
	lsl	w0, w24, #6
	bl	_pg_malloc
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	w26, w24
	add	x27, x0, #32
Lloh28:
	adrp	x24, l_.str.11@PAGE
Lloh29:
	add	x24, x24, l_.str.11@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x19
	bl	_selectDumpableObject
	add	x23, x23, #1
	add	x27, x27, #64
	cmp	x26, x23
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
Lloh30:
	adrp	x8, _DO_PUBLICATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DO_PUBLICATION@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	sub	x25, x27, #8
	str	w8, [x27, #16]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x27, #8]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x27]
	mov	x0, x25
	bl	_AssignDumpId
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_pg_strdup
	stur	x0, [x27, #-8]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x27, #24]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	stur	w8, [x27, #-32]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_PQgetvalue
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	stur	w8, [x27, #-28]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x28
	bl	_PQgetvalue
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	stur	w8, [x27, #-24]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_PQgetvalue
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	stur	w8, [x27, #-20]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_PQgetvalue
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	stur	w8, [x27, #-16]
	ldr	x8, [x27, #24]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x1, [x27, #-8]
Lloh33:
	adrp	x0, l_.str.12@PAGE
Lloh34:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pg_log_warning
	b	LBB0_5
LBB0_8:
	mov	x0, x21
	bl	_PQclear
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_destroyPQExpBuffer
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT p.tableoid, p.oid, p.pubname, (%s p.pubowner) AS rolname, p.puballtables, p.pubinsert, p.pubupdate, p.pubdelete, p.pubtruncate FROM pg_publication p"

	.comm	_username_subquery,4,2          ; @username_subquery
l_.str.1:                               ; @.str.1
	.asciz	"SELECT p.tableoid, p.oid, p.pubname, (%s p.pubowner) AS rolname, p.puballtables, p.pubinsert, p.pubupdate, p.pubdelete, false AS pubtruncate FROM pg_publication p"

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

l_.str.3:                               ; @.str.3
	.asciz	"oid"

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

l_.str.5:                               ; @.str.5
	.asciz	"rolname"

l_.str.6:                               ; @.str.6
	.asciz	"puballtables"

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

l_.str.8:                               ; @.str.8
	.asciz	"pubupdate"

l_.str.9:                               ; @.str.9
	.asciz	"pubdelete"

l_.str.10:                              ; @.str.10
	.asciz	"pubtruncate"

	.comm	_DO_PUBLICATION,4,2             ; @DO_PUBLICATION
l_.str.11:                              ; @.str.11
	.asciz	"t"

l_.str.12:                              ; @.str.12
	.asciz	"owner of publication \"%s\" appears to be invalid"

.subsections_via_symbols
