	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spi_printtup                   ## -- Begin function spi_printtup
	.p2align	4, 0x90
_spi_printtup:                          ## @spi_printtup
	.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	%rdi, %r14
	movq	__SPI_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	(%rbx), %rax
LBB0_2:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movl	16(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movl	4(%rbx), %esi
	cmpl	%esi, (%rbx)
	jl	LBB0_6
## %bb.5:
	leal	(%rsi,%rsi), %r12d
	movq	8(%rbx), %rdi
	shll	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc_huge
	movq	%rax, 8(%rbx)
	movl	%r12d, 4(%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	_ExecCopySlotHeapTuple
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	(%rbx)
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi_printtup called while not connected to SPI"

L_.str.1:                               ## @.str.1
	.asciz	"improper call to spi_printtup"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spi_printtup                   ; -- Begin function spi_printtup
	.p2align	2
_spi_printtup:                          ; @spi_printtup
	.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	x19, x0
Lloh0:
	adrp	x20, __SPI_current@GOTPAGE
Lloh1:
	ldr	x20, [x20, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x21, [x8]
	cbz	x21, LBB0_6
LBB0_2:
	ldr	w0, [x21, #16]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldp	w9, w8, [x21]
	cmp	w9, w8
	b.lt	LBB0_4
; %bb.3:
	lsl	w22, w8, #1
	ldr	x0, [x21, #8]
	lsl	w1, w8, #3
	bl	_repalloc_huge
	str	x0, [x21, #8]
	str	w22, [x21, #4]
LBB0_4:
	mov	x0, x19
	bl	_ExecCopySlotHeapTuple
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	str	w0, [x8, x9, lsl #2]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	w0, #1
	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
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x8, [x20]
	ldr	x21, [x8]
	cbnz	x21, LBB0_2
LBB0_6:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_printtup called while not connected to SPI"

l_.str.1:                               ; @.str.1
	.asciz	"improper call to spi_printtup"

.subsections_via_symbols
