	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgFormInnerTuple              ## -- Begin function spgFormInnerTuple
	.p2align	4, 0x90
_spgFormInnerTuple:                     ## @spgFormInnerTuple
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %ebx
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%edx, %esi
	callq	_SpGistGetTypeSize
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_SGITHDRSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	%eax, %r14d
	movl	%ebx, %r13d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_IndexTupleSize
	addl	%eax, %r14d
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_5
LBB0_6:
	movq	_SGDTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %r14d
	cmoval	%r14d, %r12d
	movq	_SPGIST_PAGE_CAPACITY@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	addq	$-4, %rax
	cmpq	%r12, %rax
	jae	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %edx
	addl	$-4, %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	_SGITMAXSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	ja	LBB0_11
## %bb.9:
	movq	_SGITMAXPREFIXSIZE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	ja	LBB0_11
## %bb.10:
	movq	_SGITMAXNNODES@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_12
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_12:
	movl	%r12d, %edi
	callq	_palloc0
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	%r12d, 8(%rbx)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_SGITDATAPTR
	movl	%eax, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpyDatum
LBB0_14:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_SGITNODEPTR
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.15:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %r14d
	movl	%r14d, %edi
	callq	_IndexTupleSize
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movl	%r14d, %edi
	callq	_IndexTupleSize
	addq	%rax, %r12
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_16
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGITHDRSZ,4,2                  ## @SGITHDRSZ
	.comm	_SGDTSIZE,4,2                   ## @SGDTSIZE
	.comm	_SPGIST_PAGE_CAPACITY,4,2       ## @SPGIST_PAGE_CAPACITY
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SP-GiST inner tuple size %zu exceeds maximum %zu"

L_.str.1:                               ## @.str.1
	.asciz	"Values larger than a buffer page cannot be indexed."

	.comm	_SGITMAXSIZE,4,2                ## @SGITMAXSIZE
	.comm	_SGITMAXPREFIXSIZE,4,2          ## @SGITMAXPREFIXSIZE
	.comm	_SGITMAXNNODES,4,2              ## @SGITMAXNNODES
L_.str.2:                               ## @.str.2
	.asciz	"SPGiST inner tuple header field is too small"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgFormInnerTuple              ; -- Begin function spgFormInnerTuple
	.p2align	2
_spgFormInnerTuple:                     ; @spgFormInnerTuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x23, x1
	mov	x22, x0
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x2
	bl	_SpGistGetTypeSize
	mov	x24, x0
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
Lloh0:
	adrp	x8, _SGITHDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGITHDRSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w25, w8, w24
	mov	w27, w20
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x26, x27
	mov	x28, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28], #4
	bl	_IndexTupleSize
	add	w25, w25, w0
	subs	x26, x26, #1
	b.ne	LBB0_5
LBB0_6:
Lloh3:
	adrp	x8, _SGDTSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGDTSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x21, _SPGIST_PAGE_CAPACITY@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SPGIST_PAGE_CAPACITY@GOTPAGEOFF]
	cmp	w25, w8
	csel	w26, w25, w8, hi
	ldrsw	x8, [x21]
	sub	x8, x8, #4
Lloh8:
	adrp	x28, _ERROR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
	cmp	x8, x26
	b.hs	LBB0_8
; %bb.7:
	ldr	w25, [x28]
Lloh10:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x21]
	sub	w2, w8, #4
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x26
	bl	_errmsg
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_8:
Lloh17:
	adrp	x8, _SGITMAXSIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SGITMAXSIZE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _SGITMAXPREFIXSIZE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SGITMAXPREFIXSIZE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _SGITMAXNNODES@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SGITMAXNNODES@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w26, w8
	ccmp	w24, w9, #2, ls
	ccmp	w10, w20, #8, ls
	b.ge	LBB0_10
; %bb.9:
	ldr	w0, [x28]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_10:
	mov	x0, x26
	bl	_palloc0
	mov	x25, x0
	stp	w20, w24, [x0]
	str	w26, [x0, #8]
	cbz	w23, LBB0_12
; %bb.11:
	mov	x0, x25
	bl	_SGITDATAPTR
	mov	x1, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_memcpyDatum
LBB0_12:
	mov	x0, x25
	bl	_SGITNODEPTR
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, x0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19], #4
	mov	x0, x20
	bl	_IndexTupleSize
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
	mov	x0, x20
	bl	_IndexTupleSize
	add	x21, x21, x0
	subs	x27, x27, #1
	b.ne	LBB0_14
LBB0_15:
	mov	x0, x25
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SGITHDRSZ,4,2                  ; @SGITHDRSZ
	.comm	_SGDTSIZE,4,2                   ; @SGDTSIZE
	.comm	_SPGIST_PAGE_CAPACITY,4,2       ; @SPGIST_PAGE_CAPACITY
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SP-GiST inner tuple size %zu exceeds maximum %zu"

l_.str.1:                               ; @.str.1
	.asciz	"Values larger than a buffer page cannot be indexed."

	.comm	_SGITMAXSIZE,4,2                ; @SGITMAXSIZE
	.comm	_SGITMAXPREFIXSIZE,4,2          ; @SGITMAXPREFIXSIZE
	.comm	_SGITMAXNNODES,4,2              ; @SGITMAXNNODES
l_.str.2:                               ; @.str.2
	.asciz	"SPGiST inner tuple header field is too small"

.subsections_via_symbols
