	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_heap_new_cid
_log_heap_new_cid:                      ## @log_heap_new_cid
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %r14
	leaq	8(%rsi), %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	(%rbx), %rax
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetTopTransactionId
	movl	%eax, -32(%rbp)
	movl	(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	(%r14), %edi
	movq	_HEAP_COMBOCID@GOTPCREL(%rip), %rax
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%edi, %ecx
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	movq	%r14, %rdi
	callq	_HeapTupleHeaderXminInvalid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetCmin
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetCmax
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawCommandId
	jmp	LBB0_6
LBB0_2:
	testl	%edi, %ecx
	jne	LBB0_4
## %bb.3:
	callq	_HEAP_XMAX_IS_LOCKED_ONLY
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawCommandId
	movq	%rax, -48(%rbp)
	movq	_InvalidCommandId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
LBB0_6:
	movq	%rax, -64(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfHeapNewCid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_XLogRegisterData
	movq	_RM_HEAP2_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_HEAP2_NEW_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_InvalidCommandId@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawCommandId
	movq	%rax, -56(%rbp)
	movq	(%rbx), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_HEAP_COMBOCID,4,2              ## @HEAP_COMBOCID
	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
	.comm	_InvalidCommandId,8,3           ## @InvalidCommandId
	.comm	_SizeOfHeapNewCid,4,2           ## @SizeOfHeapNewCid
	.comm	_RM_HEAP2_ID,4,2                ## @RM_HEAP2_ID
	.comm	_XLOG_HEAP2_NEW_CID,4,2         ## @XLOG_HEAP2_NEW_CID
	.no_dead_strip	_log_heap_new_cid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_heap_new_cid
_log_heap_new_cid:                      ; @log_heap_new_cid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	ldr	x19, [x1, #16]
	add	x0, x1, #8
	bl	_ItemPointerIsValid
	bl	_Assert
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidOid@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	bl	_GetTopTransactionId
	ldr	w8, [x21]
	ldr	w9, [x20, #8]
	stp	w8, w0, [sp, #36]
	str	w9, [sp, #32]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _HEAP_COMBOCID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEAP_COMBOCID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _HEAP_XMAX_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_HeapTupleHeaderXminInvalid
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_HeapTupleHeaderGetCmin
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_HeapTupleHeaderGetCmax
	str	x0, [sp, #16]
	mov	x0, x19
	bl	_HeapTupleHeaderGetRawCommandId
	str	x0, [sp, #8]
	b	LBB0_6
LBB0_2:
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_HEAP_XMAX_IS_LOCKED_ONLY
	cbz	x0, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_HeapTupleHeaderGetRawCommandId
Lloh9:
	adrp	x8, _InvalidCommandId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidCommandId@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x0, [sp, #16]
LBB0_5:
	str	x8, [sp, #8]
LBB0_6:
	bl	_XLogBeginInsert
Lloh12:
	adrp	x8, _SizeOfHeapNewCid@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SizeOfHeapNewCid@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_XLogRegisterData
Lloh15:
	adrp	x8, _RM_HEAP2_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RM_HEAP2_ID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _XLOG_HEAP2_NEW_CID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XLOG_HEAP2_NEW_CID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_XLogInsert
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
Lloh21:
	adrp	x20, _InvalidCommandId@GOTPAGE
Lloh22:
	ldr	x20, [x20, _InvalidCommandId@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [sp, #24]
	mov	x0, x19
	bl	_HeapTupleHeaderGetRawCommandId
	str	x0, [sp, #16]
	ldr	x8, [x20]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_HEAP_COMBOCID,4,2              ; @HEAP_COMBOCID
	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
	.comm	_InvalidCommandId,8,3           ; @InvalidCommandId
	.comm	_SizeOfHeapNewCid,4,2           ; @SizeOfHeapNewCid
	.comm	_RM_HEAP2_ID,4,2                ; @RM_HEAP2_ID
	.comm	_XLOG_HEAP2_NEW_CID,4,2         ; @XLOG_HEAP2_NEW_CID
	.no_dead_strip	_log_heap_new_cid
.subsections_via_symbols
