	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getSubscriptions               ## -- Begin function getSubscriptions
	.p2align	4, 0x90
_getSubscriptions:                      ## @getSubscriptions
	.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	$56, %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_15
## %bb.1:
	movq	%rdi, %r15
	cmpl	$100000, (%rdi)                 ## imm = 0x186A0
	jge	LBB0_2
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_is_superuser
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_resetPQExpBuffer
	movq	_username_subquery@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBuffer
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(,%r13,8), %eax
	leal	(%rax,%rax,8), %edi
	callq	_pg_malloc
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.7:
	movq	%rax, %r12
	movl	%r13d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_selectDumpableObject
	incq	%r13
	addq	$72, %r12
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DO_SUBSCRIPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_AssignDumpId
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, 32(%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, 64(%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, 56(%r12)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, 56(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, 48(%r12)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, 40(%r12)
	movq	32(%r12), %rax
	cmpb	$0, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rsi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_warning
	jmp	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
LBB0_3:
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_warning
LBB0_5:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PQclear                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT count(*) FROM pg_subscription WHERE subdbid = (SELECT oid FROM pg_database                 WHERE datname = current_database())"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.1:                               ## @.str.1
	.asciz	"subscriptions not dumped because current user is not a superuser"

L_.str.2:                               ## @.str.2
	.asciz	"SELECT s.tableoid, s.oid, s.subname,(%s s.subowner) AS rolname,  s.subconninfo, s.subslotname, s.subsynccommit,  s.subpublications FROM pg_subscription s WHERE s.subdbid = (SELECT oid FROM pg_database                   WHERE datname = current_database())"

	.comm	_username_subquery,4,2          ## @username_subquery
L_.str.3:                               ## @.str.3
	.asciz	"tableoid"

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

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

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

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

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

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

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

	.comm	_DO_SUBSCRIPTION,4,2            ## @DO_SUBSCRIPTION
L_.str.11:                              ## @.str.11
	.asciz	"owner of subscription \"%s\" appears to be invalid"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getSubscriptions               ; -- Begin function getSubscriptions
	.p2align	2
_getSubscriptions:                      ; @getSubscriptions
	.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:
	mov	x0, x19
	bl	_is_superuser
	cbz	w0, LBB0_13
; %bb.4:
	bl	_createPQExpBuffer
	mov	x20, x0
	bl	_resetPQExpBuffer
Lloh0:
	adrp	x8, _username_subquery@GOTPAGE
Lloh1:
	ldr	x8, [x8, _username_subquery@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_appendPQExpBuffer
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x1, [x20]
Lloh5:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ExecuteSqlQuery
	mov	x21, x0
	bl	_PQntuples
	mov	x24, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x25, x0
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x26, x0
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x27, x0
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x28, x0
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x20, x0
	add	w8, w24, w24, lsl #3
	lsl	w0, w8, #3
	bl	_pg_malloc
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x22, x0
	mov	x23, #0
	mov	w24, w24
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_selectDumpableObject
	add	x23, x23, #1
	add	x22, x22, #72
	cmp	x24, x23
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
Lloh24:
	adrp	x8, _DO_SUBSCRIPTION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DO_SUBSCRIPTION@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x22, #16]
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x22, #8]
	mov	x0, x22
	bl	_AssignDumpId
	mov	x0, x21
	mov	x1, x23
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #32]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x26
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #64]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x27
	bl	_PQgetisnull
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x22, #56]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x27
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #56]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x28
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #48]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x22, #40]
	ldr	x8, [x22, #32]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.11@PAGE
Lloh28:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pg_log_warning
	b	LBB0_6
LBB0_12:
	mov	x0, x21
	bl	_PQclear
	ldr	x0, [sp, #8]                    ; 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
LBB0_13:
Lloh29:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ExecuteSqlQuery
	mov	x19, x0
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_log_warning
LBB0_15:
	mov	x0, x19
	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	_PQclear
	.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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT count(*) FROM pg_subscription WHERE subdbid = (SELECT oid FROM pg_database                 WHERE datname = current_database())"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.1:                               ; @.str.1
	.asciz	"subscriptions not dumped because current user is not a superuser"

l_.str.2:                               ; @.str.2
	.asciz	"SELECT s.tableoid, s.oid, s.subname,(%s s.subowner) AS rolname,  s.subconninfo, s.subslotname, s.subsynccommit,  s.subpublications FROM pg_subscription s WHERE s.subdbid = (SELECT oid FROM pg_database                   WHERE datname = current_database())"

	.comm	_username_subquery,4,2          ; @username_subquery
l_.str.3:                               ; @.str.3
	.asciz	"tableoid"

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

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

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

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

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

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

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

	.comm	_DO_SUBSCRIPTION,4,2            ; @DO_SUBSCRIPTION
l_.str.11:                              ; @.str.11
	.asciz	"owner of subscription \"%s\" appears to be invalid"

.subsections_via_symbols
