	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationPutHeapTuple           ## -- Begin function RelationPutHeapTuple
	.p2align	4, 0x90
_RelationPutHeapTuple:                  ## @RelationPutHeapTuple
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %rdi
	callq	_HeapTupleHeaderIsSpeculative
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_Assert
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, %edi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_PageAddItem
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_5:
	movl	%r15d, %edi
	callq	_BufferGetBlockNumber
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_ItemPointerSet
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	cltq
	movl	(%r13), %ecx
	movl	%ecx, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add tuple to page"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationPutHeapTuple           ; -- Begin function RelationPutHeapTuple
	.p2align	2
_RelationPutHeapTuple:                  ; @RelationPutHeapTuple
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	cbz	w3, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_HeapTupleHeaderIsSpeculative
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_Assert
	mov	x0, x21
	bl	_BufferGetPage
	mov	x22, x0
	ldp	w2, w1, [x19, #4]
Lloh0:
	adrp	x24, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x24, [x24, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	x3, [x24]
	mov	w4, #0
	mov	w5, #1
	bl	_PageAddItem
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _PANIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_5:
	mov	x0, x21
	bl	_BufferGetBlockNumber
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_ItemPointerSet
	cbnz	w20, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	w9, [x19]
	str	w9, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add tuple to page"

.subsections_via_symbols
