	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_form_tuple                ## -- Begin function heap_form_tuple
	.p2align	4, 0x90
_heap_form_tuple:                       ## @heap_form_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ebx
	movq	_MaxTupleAttributeNumber@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jle	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_TOO_MANY_COLUMNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	testl	%ebx, %ebx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movb	$1, %al
	cmpl	$0, (%r13)
	jne	LBB0_9
## %bb.5:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rax), %rcx
	cmpl	$0, (%r13,%rax,4)
	movq	%rcx, %rax
	je	LBB0_6
## %bb.8:
	decq	%rcx
	cmpq	%rbx, %rcx
	setb	%al
LBB0_9:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HeapTupleHeaderData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_t_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_BITMAPLEN
	addl	%r14d, %eax
	jmp	LBB0_12
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_10:
	seta	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	_HeapTupleHeaderData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_t_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
LBB0_12:
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, %ebx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	callq	_heap_compute_data_size
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rbx), %r12d
	movq	_HEAPTUPLESIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	addl	%r12d, %edi
	callq	_palloc0
	movq	%rax, %r15
	movslq	(%r14), %r14
	leaq	(%rax,%r14), %r13
	movq	%r13, 16(%rax)
	movl	%r12d, (%rax)
	leaq	8(%rax), %rdi
	callq	_ItemPointerSetInvalid
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_HeapTupleHeaderSetDatumLength
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_HeapTupleHeaderSetTypeId
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_HeapTupleHeaderSetTypMod
	leaq	(%r15,%r14), %rdi
	addq	$20, %rdi
	callq	_ItemPointerSetInvalid
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_HeapTupleHeaderSetNatts
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%r15,%r14)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.14:
	movq	8(%r13), %rax
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
LBB0_15:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	leaq	16(%r13), %r9
	movslq	%ecx, %rcx
	addq	%r13, %rcx
	movq	%rax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_heap_fill_tuple
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxTupleAttributeNumber,4,2    ## @MaxTupleAttributeNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_TOO_MANY_COLUMNS,4,2   ## @ERRCODE_TOO_MANY_COLUMNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"number of columns (%d) exceeds limit (%d)"

	.comm	_HeapTupleHeaderData,4,2        ## @HeapTupleHeaderData
	.comm	_t_bits,4,2                     ## @t_bits
	.comm	_HEAPTUPLESIZE,4,2              ## @HEAPTUPLESIZE
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_form_tuple                ; -- Begin function heap_form_tuple
	.p2align	2
_heap_form_tuple:                       ; @heap_form_tuple
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x24, _MaxTupleAttributeNumber@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MaxTupleAttributeNumber@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w22, w8
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _ERRCODE_TOO_MANY_COLUMNS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_TOO_MANY_COLUMNS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w2, [x24]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_2:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	w28, #1
	b	LBB0_10
LBB0_5:
	mov	w28, #0
	b	LBB0_12
LBB0_6:
	mov	w8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x8
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19, x8, lsl #2]
	add	x8, x8, #1
	cbz	w9, LBB0_7
; %bb.9:
	sub	x8, x8, #1
	cmp	x8, x22
	cset	w28, lo
LBB0_10:
Lloh10:
	adrp	x8, _HeapTupleHeaderData@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HeapTupleHeaderData@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _t_bits@GOTPAGE
Lloh14:
	ldr	x8, [x8, _t_bits@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_offsetof
	mov	x23, x0
	mov	x0, x22
	bl	_BITMAPLEN
	add	w0, w0, w23
	b	LBB0_13
LBB0_11:
	cmp	x8, x22
	cset	w28, lo
LBB0_12:
Lloh16:
	adrp	x8, _HeapTupleHeaderData@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HeapTupleHeaderData@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _t_bits@GOTPAGE
Lloh20:
	ldr	x8, [x8, _t_bits@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_offsetof
LBB0_13:
	bl	_MAXALIGN
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_heap_compute_data_size
	mov	x24, x0
Lloh22:
	adrp	x26, _HEAPTUPLESIZE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _HEAPTUPLESIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w27, w0, w23
	add	w0, w8, w27
	bl	_palloc0
	mov	x25, x0
	ldrsw	x8, [x26]
	add	x26, x0, x8
	str	x26, [x0, #16]
	str	w27, [x0], #8
	bl	_ItemPointerSetInvalid
Lloh24:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh25:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x25, #4]
	mov	x0, x26
	mov	x1, x27
	bl	_HeapTupleHeaderSetDatumLength
	ldr	w1, [x21, #8]
	mov	x0, x26
	bl	_HeapTupleHeaderSetTypeId
	ldr	w1, [x21, #4]
	mov	x0, x26
	bl	_HeapTupleHeaderSetTypMod
	add	x0, x26, #20
	bl	_ItemPointerSetInvalid
	mov	x0, x26
	mov	x1, x22
	bl	_HeapTupleHeaderSetNatts
	str	w23, [x26]
	cbz	w28, LBB0_15
; %bb.14:
	ldr	x6, [x26, #8]
	b	LBB0_16
LBB0_15:
	mov	x6, #0
LBB0_16:
	add	x5, x26, #16
	add	x3, x26, w23, sxtw
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x4, x24
	bl	_heap_fill_tuple
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxTupleAttributeNumber,4,2    ; @MaxTupleAttributeNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_TOO_MANY_COLUMNS,4,2   ; @ERRCODE_TOO_MANY_COLUMNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"number of columns (%d) exceeds limit (%d)"

	.comm	_HeapTupleHeaderData,4,2        ; @HeapTupleHeaderData
	.comm	_t_bits,4,2                     ; @t_bits
	.comm	_HEAPTUPLESIZE,4,2              ; @HEAPTUPLESIZE
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
