	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinFormTuple                   ## -- Begin function GinFormTuple
	.p2align	4, 0x90
_GinFormTuple:                          ## @GinFormTuple
	.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
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_GIN_CAT_NORM_KEY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	setne	%cl
	jmp	LBB0_3
LBB0_2:
	movl	%r13d, %edi
	callq	_UInt16GetDatum
	movq	_GIN_CAT_NORM_KEY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	movl	%ebx, -52(%rbp)
	setne	%dl
	movl	%edx, -60(%rbp)
	xorl	%ecx, %ecx
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, -56(%rbp)
	movl	%ecx, -64(%rbp)
	movq	8(%r15), %rax
	movslq	%r13d, %rcx
	movl	-4(%rax,%rcx,4), %edi
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_index_form_tuple
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_IndexTupleHasNulls
	testl	%eax, %eax
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.4:
	movq	_GIN_CAT_NORM_KEY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setne	%dil
	callq	_Assert
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_GinCategoryOffset
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %esi
	movl	%r13d, %edi
	callq	_Max
	movl	%eax, %r13d
LBB0_5:
	movl	%r13d, %edi
	callq	_SHORTALIGN
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_GinSetPostingOffset
	movq	%r12, %rdi
	movl	16(%rbp), %esi
	callq	_GinSetNPosting
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %edi
	callq	_MAXALIGN
	movl	%eax, %r13d
	movq	_GinMaxItemSize@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jle	LBB0_9
## %bb.6:
	cmpl	$0, 24(%rbp)
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movslq	%r13d, %rbx
	movslq	(%r14), %r13
	movl	(%r15), %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_errmsg
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	%r12, %rdi
	callq	_pfree
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_9:
	movq	%r12, %rdi
	callq	_IndexTupleSize
	cmpl	%eax, %r13d
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_repalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movslq	%eax, %rbx
	addq	%r12, %rbx
	movq	%r12, %rdi
	callq	_IndexTupleSize
	movl	%r13d, %edx
	subl	%eax, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_INDEX_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r12), %eax
	orl	%r13d, %eax
	movl	%eax, (%r12)
LBB0_11:
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_GinGetPosting
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
LBB0_13:
	movq	_GIN_CAT_NORM_KEY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_IndexTupleHasNulls
	movl	%eax, %edi
	callq	_Assert
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_GinSetNullCategory
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GIN_CAT_NORM_KEY,4,2           ## @GIN_CAT_NORM_KEY
	.comm	_GinMaxItemSize,4,2             ## @GinMaxItemSize
	.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	"index row size %zu exceeds maximum %zu for index \"%s\""

	.comm	_INDEX_SIZE_MASK,4,2            ## @INDEX_SIZE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinFormTuple                   ; -- Begin function GinFormTuple
	.p2align	2
_GinFormTuple:                          ; @GinFormTuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x7
	mov	x25, x6
	mov	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x26, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x27, _GIN_CAT_NORM_KEY@GOTPAGE
Lloh4:
	ldr	x27, [x27, _GIN_CAT_NORM_KEY@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x27]
	cmp	w8, w20
	cset	w8, ne
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_UInt16GetDatum
	mov	w8, #0
	str	w26, [sp, #20]
	ldr	w9, [x27]
	cmp	w9, w20
	cset	w9, ne
	str	w9, [sp, #12]
	mov	x26, x0
LBB0_3:
	str	w26, [sp, #16]
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	sub	w9, w21, #1
	ldr	w0, [x8, w9, sxtw #2]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_index_form_tuple
	mov	x21, x0
	bl	_IndexTupleSize
	mov	x26, x0
	mov	x0, x21
	bl	_IndexTupleHasNulls
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x27]
	cmp	w8, w20
	cset	w0, ne
	bl	_Assert
	mov	x0, x21
	mov	x1, x19
	bl	_GinCategoryOffset
	add	w1, w0, #4
	mov	x0, x26
	bl	_Max
	mov	x26, x0
LBB0_5:
	mov	x0, x26
	bl	_SHORTALIGN
	mov	x26, x0
	mov	x0, x21
	mov	x1, x26
	bl	_GinSetPostingOffset
	mov	x0, x21
	mov	x1, x25
	bl	_GinSetNPosting
	add	w0, w26, w22
	bl	_MAXALIGN
	mov	x25, x0
Lloh5:
	adrp	x26, _GinMaxItemSize@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GinMaxItemSize@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.le	LBB0_9
; %bb.6:
	cbz	w24, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
Lloh10:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	sxtw	x22, w25
	ldrsw	x23, [x26]
	ldr	w0, [x19]
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_8:
	mov	x0, x21
	bl	_pfree
	mov	x21, #0
	b	LBB0_15
LBB0_9:
	mov	x0, x21
	bl	_IndexTupleSize
	cmp	w25, w0
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x25
	bl	_repalloc
	mov	x21, x0
	bl	_IndexTupleSize
	add	x24, x21, w0, sxtw
	mov	x0, x21
	bl	_IndexTupleSize
	sub	w2, w25, w0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
Lloh15:
	adrp	x8, _INDEX_SIZE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INDEX_SIZE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	orr	w8, w8, w25
	str	w8, [x21]
LBB0_11:
	cbz	x23, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_GinGetPosting
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
LBB0_13:
	ldr	w8, [x27]
	cmp	w8, w20
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_IndexTupleHasNulls
	bl	_Assert
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_GinSetNullCategory
LBB0_15:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GIN_CAT_NORM_KEY,4,2           ; @GIN_CAT_NORM_KEY
	.comm	_GinMaxItemSize,4,2             ; @GinMaxItemSize
	.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	"index row size %zu exceeds maximum %zu for index \"%s\""

	.comm	_INDEX_SIZE_MASK,4,2            ; @INDEX_SIZE_MASK
.subsections_via_symbols
