	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_tuple_needs_freeze        ## -- Begin function heap_tuple_needs_freeze
	.p2align	4, 0x90
_heap_tuple_needs_freeze:               ## @heap_tuple_needs_freeze
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_HeapTupleHeaderGetXmin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_18
LBB0_2:
	movq	_HEAP_XMAX_IS_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawXmax
	movq	%rax, %r13
	movq	%rax, %rdi
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.3:
	callq	_MultiXactIdIsValid
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	(%r14), %edi
	callq	_HEAP_LOCKED_UPGRADED
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	jne	LBB0_18
## %bb.6:
	movl	(%r14), %edi
	callq	_HEAP_XMAX_IS_LOCKED_ONLY
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_GetMultiXactIdMembers
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
## %bb.11:
	movq	-56(%rbp), %rdi
	callq	_pfree
	jmp	LBB0_14
LBB0_12:
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_18
LBB0_14:
	movq	_HEAP_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetXvac
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_18
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_pfree
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ## @HEAP_XMAX_IS_MULTI
	.comm	_HEAP_MOVED,4,2                 ## @HEAP_MOVED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_tuple_needs_freeze        ; -- Begin function heap_tuple_needs_freeze
	.p2align	2
_heap_tuple_needs_freeze:               ; @heap_tuple_needs_freeze
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_HeapTupleHeaderGetXmin
	mov	x22, x0
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_16
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _HEAP_XMAX_IS_MULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEAP_XMAX_IS_MULTI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w8
	mov	x0, x20
	bl	_HeapTupleHeaderGetRawXmax
	mov	x22, x0
	cbz	w23, LBB0_11
; %bb.3:
	bl	_MultiXactIdIsValid
	cbz	w0, LBB0_13
; %bb.4:
	ldr	w0, [x20]
	bl	_HEAP_LOCKED_UPGRADED
	cbnz	x0, LBB0_16
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	bl	_MultiXactIdPrecedes
	cbnz	x0, LBB0_16
; %bb.6:
	ldr	w0, [x20]
	bl	_HEAP_XMAX_IS_LOCKED_ONLY
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #0
	bl	_GetMultiXactIdMembers
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x21, #0
	mov	w8, w0
	lsl	x22, x8, #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, x21]
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #8
	cmp	x22, x21
	b.ne	LBB0_8
; %bb.10:
	ldr	x0, [sp, #8]
	bl	_pfree
	b	LBB0_13
LBB0_11:
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_16
LBB0_13:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	mov	x0, x20
	bl	_HeapTupleHeaderGetXvac
	mov	x20, x0
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_17
LBB0_16:
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_pfree
	mov	w0, #1
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ; @HEAP_XMAX_IS_MULTI
	.comm	_HEAP_MOVED,4,2                 ; @HEAP_MOVED
.subsections_via_symbols
