	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_database_post_create   ## -- Begin function sepgsql_database_post_create
	.p2align	4, 0x90
_sepgsql_database_post_create:          ## @sepgsql_database_post_create
	.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
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rbx
	cmovneq	%rsi, %rbx
	movq	_DatabaseRelationId@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_get_database_oid
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_sepgsql_get_label
	movq	%rax, %r14
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_initStringInfo
	movq	%rbx, %rdi
	callq	_quote_identifier
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_appendStringInfoString
	movq	_SEPG_CLASS_DB_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEPG_DB_DATABASE__GETATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms_label
	movq	(%r13), %rdi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r12d
	movq	_Anum_pg_database_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_ObjectIdGetDatum
	leaq	-68(%rbp), %r15
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_DatabaseOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SnapshotSelf@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movl	$1, %edx
	movl	$1, %r8d
	movq	%r15, %r9
	callq	_systable_beginscan
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_elog
LBB0_2:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_sepgsql_get_client_label
	movl	%eax, %ebx
	movq	_SEPG_CLASS_DB_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_NameStr
	movl	%ebx, %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_sepgsql_compute_create
	movq	%rax, %r14
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_resetStringInfo
	movl	(%r15), %edi
	callq	_NameStr
	movq	%rax, %rdi
	callq	_quote_identifier
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_appendStringInfoString
	movq	_SEPG_CLASS_DB_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEPG_DB_DATABASE__CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %ecx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms_label
	movl	%r13d, %edi
	callq	_systable_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	_DatabaseRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -88(%rbp)
	movq	$0, -96(%rbp)
	movq	_SEPGSQL_LABEL_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdi
	movq	%r14, %rdx
	callq	_SetSecurityLabel
	movq	%r14, %rdi
	callq	_pfree
	movq	%r12, %rdi
	callq	_pfree
	addq	$56, %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	"template1"

	.comm	_DatabaseRelationId,8,3         ## @DatabaseRelationId
	.comm	_SEPG_CLASS_DB_DATABASE,4,2     ## @SEPG_CLASS_DB_DATABASE
	.comm	_SEPG_DB_DATABASE__GETATTR,4,2  ## @SEPG_DB_DATABASE__GETATTR
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_database_oid,4,2       ## @Anum_pg_database_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_DatabaseOidIndexId,4,2         ## @DatabaseOidIndexId
	.comm	_SnapshotSelf,4,2               ## @SnapshotSelf
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not find tuple for database %u"

	.comm	_SEPG_DB_DATABASE__CREATE,4,2   ## @SEPG_DB_DATABASE__CREATE
	.comm	_SEPGSQL_LABEL_TAG,4,2          ## @SEPGSQL_LABEL_TAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_database_post_create   ; -- Begin function sepgsql_database_post_create
	.p2align	2
_sepgsql_database_post_create:          ; @sepgsql_database_post_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x21, x8, x1, eq
Lloh2:
	adrp	x26, _DatabaseRelationId@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DatabaseRelationId@GOTPAGEOFF]
	ldr	x20, [x26]
	mov	x0, x21
	mov	w1, #0
	bl	_get_database_oid
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_sepgsql_get_label
	mov	x20, x0
	add	x0, sp, #8
	bl	_initStringInfo
	mov	x0, x21
	bl	_quote_identifier
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
Lloh4:
	adrp	x28, _SEPG_CLASS_DB_DATABASE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SEPG_CLASS_DB_DATABASE@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh6:
	adrp	x8, _SEPG_DB_DATABASE__GETATTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEPG_DB_DATABASE__GETATTR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	mov	x0, x20
	mov	w4, #1
	bl	_sepgsql_avc_check_perms_label
	ldr	x0, [x26]
Lloh9:
	adrp	x27, _AccessShareLock@GOTPAGE
Lloh10:
	ldr	x27, [x27, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_table_open
	mov	x21, x0
Lloh11:
	adrp	x8, _Anum_pg_database_oid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Anum_pg_database_oid@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
Lloh17:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #44
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh20:
	adrp	x8, _DatabaseOidIndexId@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DatabaseOidIndexId@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _SnapshotSelf@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SnapshotSelf@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x5, sp, #44
	mov	x0, x21
	mov	w2, #1
	mov	w4, #1
	bl	_systable_beginscan
	mov	x22, x0
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_2:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x24, x0
	bl	_sepgsql_get_client_label
	mov	x23, x0
	ldr	w25, [x28]
	ldr	w0, [x24]
	bl	_NameStr
	mov	x3, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x25
	bl	_sepgsql_compute_create
	mov	x23, x0
	add	x0, sp, #8
	bl	_resetStringInfo
	ldr	w0, [x24]
	bl	_NameStr
	bl	_quote_identifier
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	ldr	w1, [x28]
Lloh31:
	adrp	x8, _SEPG_DB_DATABASE__CREATE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEPG_DB_DATABASE__CREATE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	mov	x0, x23
	mov	w4, #1
	bl	_sepgsql_avc_check_perms_label
	mov	x0, x22
	bl	_systable_endscan
	ldr	w1, [x27]
	mov	x0, x21
	bl	_table_close
	ldr	x8, [x26]
	str	x8, [sp, #32]
	str	w19, [sp, #24]
	str	xzr, [sp, #16]
Lloh34:
	adrp	x8, _SEPGSQL_LABEL_TAG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SEPGSQL_LABEL_TAG@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x0, sp, #16
	mov	x2, x23
	bl	_SetSecurityLabel
	mov	x0, x23
	bl	_pfree
	mov	x0, x20
	bl	_pfree
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template1"

	.comm	_DatabaseRelationId,8,3         ; @DatabaseRelationId
	.comm	_SEPG_CLASS_DB_DATABASE,4,2     ; @SEPG_CLASS_DB_DATABASE
	.comm	_SEPG_DB_DATABASE__GETATTR,4,2  ; @SEPG_DB_DATABASE__GETATTR
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_database_oid,4,2       ; @Anum_pg_database_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_DatabaseOidIndexId,4,2         ; @DatabaseOidIndexId
	.comm	_SnapshotSelf,4,2               ; @SnapshotSelf
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not find tuple for database %u"

	.comm	_SEPG_DB_DATABASE__CREATE,4,2   ; @SEPG_DB_DATABASE__CREATE
	.comm	_SEPGSQL_LABEL_TAG,4,2          ; @SEPGSQL_LABEL_TAG
.subsections_via_symbols
