	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logical_rewrite_heap_tuple
_logical_rewrite_heap_tuple:            ## @logical_rewrite_heap_tuple
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_15
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rdi), %ebx
	movq	(%rdx), %rdi
	callq	_HeapTupleHeaderGetXmin
	movl	%eax, %r15d
	movq	(%r12), %rdi
	callq	_HeapTupleHeaderGetUpdateXid
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_HEAP_XMAX_IS_LOCKED_ONLY
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	sete	%bl
LBB0_9:
	movl	%r14d, %eax
	orb	%bl, %al
	cmpb	$1, %al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_15
## %bb.10:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%rcx, -80(%rbp)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -96(%rbp)
	testb	%r14b, %r14b
	je	LBB0_12
## %bb.11:
	leaq	-96(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_logical_rewrite_log_mapping
LBB0_12:
	testb	%bl, %bl
	je	LBB0_15
## %bb.13:
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_TransactionIdEquals
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	leaq	-96(%rbp), %rdx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_logical_rewrite_log_mapping
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_logical_rewrite_heap_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logical_rewrite_heap_tuple
_logical_rewrite_heap_tuple:            ; @logical_rewrite_heap_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w23, [x0, #20]
	ldp	x0, x25, [x2]
	bl	_HeapTupleHeaderGetXmin
	mov	x21, x0
	ldr	x0, [x24]
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x20, x0
	mov	x0, x21
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x23
	bl	_TransactionIdPrecedes
	cmp	w0, #0
	cset	w26, eq
	b	LBB0_4
LBB0_3:
	mov	w26, #0
LBB0_4:
	mov	x0, x20
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_HEAP_XMAX_IS_LOCKED_ONLY
	cbz	x0, LBB0_7
LBB0_6:
	mov	w23, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x23
	bl	_TransactionIdPrecedes
	cmp	w0, #0
	cset	w23, eq
LBB0_8:
	orr	w8, w26, w23
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.9:
	ldp	x9, x8, [x19]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x22, [sp, #16]
	ldr	w8, [x9]
	str	w8, [sp, #8]
	str	x25, [sp]
	cbz	w26, LBB0_11
; %bb.10:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_logical_rewrite_log_mapping
LBB0_11:
	cbz	w23, LBB0_14
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	bl	_TransactionIdEquals
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_logical_rewrite_log_mapping
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_logical_rewrite_heap_tuple
.subsections_via_symbols
