	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_is_install_user
_check_is_install_user:                 ## @check_is_install_user
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_connectToServer
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_prep_status
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_executeQueryOrDie
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	_BOOTSTRAP_SUPERUSERID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
LBB0_2:
	movq	_os_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_3:
	movq	%rbx, %rdi
	callq	_PQclear
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_executeQueryOrDie
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_5:
	cmpq	_new_cluster@GOTPCREL(%rip), %r14
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_8:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r15, %rdi
	callq	_PQfinish
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ok                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"template1"

L_.str.1:                               ## @.str.1
	.asciz	"Checking database user is the install user"

L_.str.2:                               ## @.str.2
	.asciz	"SELECT rolsuper, oid FROM pg_catalog.pg_roles WHERE rolname = current_user AND rolname !~ '^pg_'"

	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ## @BOOTSTRAP_SUPERUSERID
L_.str.3:                               ## @.str.3
	.asciz	"database user \"%s\" is not the install user\n"

	.comm	_os_info,4,2                    ## @os_info
L_.str.4:                               ## @.str.4
	.asciz	"SELECT COUNT(*) FROM pg_catalog.pg_roles WHERE rolname !~ '^pg_'"

L_.str.5:                               ## @.str.5
	.asciz	"could not determine the number of users\n"

	.comm	_new_cluster,4,2                ## @new_cluster
L_.str.6:                               ## @.str.6
	.asciz	"Only the install user can be defined in the new cluster.\n"

	.no_dead_strip	_check_is_install_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_is_install_user
_check_is_install_user:                 ; @check_is_install_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_connectToServer
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prep_status
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_executeQueryOrDie
	mov	x21, x0
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	bl	_atooid
Lloh6:
	adrp	x8, _BOOTSTRAP_SUPERUSERID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BOOTSTRAP_SUPERUSERID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _os_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _os_info@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pg_fatal
LBB0_3:
	mov	x0, x21
	bl	_PQclear
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_executeQueryOrDie
	mov	x21, x0
	bl	_PQntuples
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pg_fatal
LBB0_5:
Lloh18:
	adrp	x8, _new_cluster@GOTPAGE
Lloh19:
	ldr	x8, [x8, _new_cluster@GOTPAGEOFF]
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atooid
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.7:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pg_fatal
LBB0_8:
	mov	x0, x21
	bl	_PQclear
	mov	x0, x19
	bl	_PQfinish
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_check_ok
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template1"

l_.str.1:                               ; @.str.1
	.asciz	"Checking database user is the install user"

l_.str.2:                               ; @.str.2
	.asciz	"SELECT rolsuper, oid FROM pg_catalog.pg_roles WHERE rolname = current_user AND rolname !~ '^pg_'"

	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ; @BOOTSTRAP_SUPERUSERID
l_.str.3:                               ; @.str.3
	.asciz	"database user \"%s\" is not the install user\n"

	.comm	_os_info,4,2                    ; @os_info
l_.str.4:                               ; @.str.4
	.asciz	"SELECT COUNT(*) FROM pg_catalog.pg_roles WHERE rolname !~ '^pg_'"

l_.str.5:                               ; @.str.5
	.asciz	"could not determine the number of users\n"

	.comm	_new_cluster,4,2                ; @new_cluster
l_.str.6:                               ; @.str.6
	.asciz	"Only the install user can be defined in the new cluster.\n"

	.no_dead_strip	_check_is_install_user
.subsections_via_symbols
