	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapam_relation_set_new_filenode
_heapam_relation_set_new_filenode:      ## @heapam_relation_set_new_filenode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_RecentXmin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_GetOldestMultiXactId
	movl	%eax, (%r12)
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_RelationCreateStorage
	movl	%eax, %r12d
	movq	_RELPERSISTENCE_UNLOGGED@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_RELKIND_TOASTVALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	orb	%dl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	_INIT_FORKNUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	callq	_smgrcreate
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_log_smgrcreate
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_smgrimmedsync
LBB0_2:
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smgrclose                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RecentXmin,4,2                 ## @RecentXmin
	.comm	_RELPERSISTENCE_UNLOGGED,1,0    ## @RELPERSISTENCE_UNLOGGED
	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
	.comm	_RELKIND_TOASTVALUE,8,3         ## @RELKIND_TOASTVALUE
	.comm	_INIT_FORKNUM,4,2               ## @INIT_FORKNUM
	.no_dead_strip	_heapam_relation_set_new_filenode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapam_relation_set_new_filenode
_heapam_relation_set_new_filenode:      ; @heapam_relation_set_new_filenode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x4
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RecentXmin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RecentXmin@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x3]
	bl	_GetOldestMultiXactId
	str	w0, [x20]
	ldr	w0, [x19]
	mov	x1, x22
	bl	_RelationCreateStorage
	mov	x20, x0
Lloh3:
	adrp	x8, _RELPERSISTENCE_UNLOGGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RELPERSISTENCE_UNLOGGED@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w22, uxtb
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _RELKIND_RELATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RELKIND_RELATION@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh8:
	adrp	x9, _RELKIND_MATVIEW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh11:
	adrp	x9, _RELKIND_TOASTVALUE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RELKIND_TOASTVALUE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
Lloh14:
	adrp	x21, _INIT_FORKNUM@GOTPAGE
Lloh15:
	ldr	x21, [x21, _INIT_FORKNUM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_smgrcreate
	ldr	w1, [x21]
	mov	x0, x19
	bl	_log_smgrcreate
	ldr	w1, [x21]
	mov	x0, x20
	bl	_smgrimmedsync
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_smgrclose
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RecentXmin,4,2                 ; @RecentXmin
	.comm	_RELPERSISTENCE_UNLOGGED,1,0    ; @RELPERSISTENCE_UNLOGGED
	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
	.comm	_RELKIND_TOASTVALUE,8,3         ; @RELKIND_TOASTVALUE
	.comm	_INIT_FORKNUM,4,2               ; @INIT_FORKNUM
	.no_dead_strip	_heapam_relation_set_new_filenode
.subsections_via_symbols
