	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_create                    ## -- Begin function heap_create
	.p2align	4, 0x90
_heap_create:                           ## @heap_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	72(%rbp), %r13
	movq	64(%rbp), %rbx
	movb	24(%rbp), %r15b
	movq	%rcx, %r12
	movq	%rcx, %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	cmpl	$0, 56(%rbp)
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IsCatalogNamespace
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IsToastNamespace
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_IsNormalProcessingMode
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_namespace_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movq	64(%rbp), %rbx
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_InvalidMultiXactId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movsbl	%r15b, %r15d
	movl	%r15d, %edi
	callq	_RELKIND_HAS_STORAGE
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_OidIsValid
	testl	%eax, %eax
	setne	%r13b
	movq	%r12, %rcx
	cmoveq	%r12, %r14
	jmp	LBB0_8
LBB0_6:
	movb	$1, %r13b
	movq	%r12, %rcx
LBB0_8:
	movl	48(%rbp), %r11d
	movl	40(%rbp), %r10d
	movb	32(%rbp), %al
	movl	16(%rbp), %edx
	movq	_MyDatabaseTableSpace@GOTPCREL(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, (%rsi)
	jne	LBB0_10
## %bb.9:
	movq	_InvalidOid@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
LBB0_10:
	subq	$8, %rsp
	movsbl	%al, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	pushq	%r15
	pushq	%r12
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	callq	_RelationBuildLocalRelation
	addq	$48, %rsp
	movq	%rax, %rbx
	testb	%r13b, %r13b
	jne	LBB0_16
## %bb.11:
	movq	%rbx, %rdi
	callq	_RelationOpenSmgr
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_16
## %bb.12:
	movl	$817, %ecx                      ## imm = 0x331
	btl	%eax, %ecx
	jae	LBB0_13
## %bb.17:
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_16
LBB0_13:
	movl	$74, %ecx
	btl	%eax, %ecx
	jae	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	64(%rbp), %rcx
	movq	72(%rbp), %r8
	callq	_table_relation_set_new_filenode
	jmp	LBB0_16
LBB0_14:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_RelationCreateStorage
LBB0_16:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied to create \"%s.%s\""

L_.str.1:                               ## @.str.1
	.asciz	"System catalog modifications are currently disallowed."

	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_InvalidMultiXactId,4,2         ## @InvalidMultiXactId
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_MyDatabaseTableSpace,8,3       ## @MyDatabaseTableSpace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_create                    ; -- Begin function heap_create
	.p2align	2
_heap_create:                           ; @heap_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	x25, x7
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	str	x5, [sp, #32]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x26, x1
	mov	x28, x0
	ldp	x8, x23, [x29, #32]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w27, [x29, #20]
	ldr	w20, [x29, #28]
	mov	x0, x3
	bl	_OidIsValid
	bl	_Assert
	cbnz	w20, LBB0_5
; %bb.1:
	mov	x0, x26
	bl	_IsCatalogNamespace
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x26
	bl	_IsToastNamespace
	cbz	x0, LBB0_5
LBB0_3:
	bl	_IsNormalProcessingMode
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x26
	bl	_get_namespace_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x28
	bl	_errmsg
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	ldr	w21, [x29, #24]
	ldrsb	w20, [x29, #16]
Lloh10:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh13:
	adrp	x8, _InvalidMultiXactId@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidMultiXactId@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	str	w8, [x23]
	mov	x0, x25
	bl	_RELKIND_HAS_STORAGE
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_OidIsValid
	cmp	w0, #0
	cset	w23, ne
	csel	x22, x24, x22, eq
	b	LBB0_8
LBB0_7:
	mov	w23, #1
LBB0_8:
Lloh16:
	adrp	x8, _MyDatabaseTableSpace@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MyDatabaseTableSpace@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _InvalidOid@GOTPAGE
Lloh20:
	ldr	x9, [x9, _InvalidOid@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x19
	csel	x6, x9, x19, eq
	strb	w25, [sp, #5]
	strb	w20, [sp, #4]
	str	w21, [sp]
	mov	x0, x28
	mov	x1, x26
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	mov	x3, x24
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	mov	x5, x22
	mov	x7, x27
	bl	_RelationBuildLocalRelation
	mov	x19, x0
	tbnz	w23, #0, LBB0_15
; %bb.9:
	mov	x0, x19
	bl	_RelationOpenSmgr
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_15
; %bb.10:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #817
	tst	w8, w9
	b.eq	LBB0_12
; %bb.11:
	mov	w0, #0
	bl	_Assert
	b	LBB0_15
LBB0_12:
	mov	w9, #74
	tst	w8, w9
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	bl	_table_relation_set_new_filenode
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_RelationCreateStorage
LBB0_15:
	mov	x0, x19
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied to create \"%s.%s\""

l_.str.1:                               ; @.str.1
	.asciz	"System catalog modifications are currently disallowed."

	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_InvalidMultiXactId,4,2         ; @InvalidMultiXactId
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_MyDatabaseTableSpace,8,3       ; @MyDatabaseTableSpace
.subsections_via_symbols
