	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateTupleDescCopyConstr      ## -- Begin function CreateTupleDescCopyConstr
	.p2align	4, 0x90
_CreateTupleDescCopyConstr:             ## @CreateTupleDescCopyConstr
	.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	%rdi, %r15
	movq	16(%rdi), %r13
	movl	(%rdi), %edi
	callq	_CreateTemplateTupleDesc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TupleDescAttr
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_TupleDescAttr
	movl	(%rbx), %edx
	shll	$2, %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	testq	%r13, %r13
	je	LBB0_22
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$40, %edi
	callq	_palloc0
	movq	%rax, %r12
	movl	36(%r13), %eax
	movl	%eax, 36(%r12)
	movl	32(%r13), %eax
	movl	%eax, 32(%r12)
	movl	(%r13), %eax
	movl	%eax, (%r12)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	imull	$56, %eax, %edi
	callq	_palloc
	movq	%rax, 24(%r12)
	movq	24(%r13), %rsi
	imull	$56, (%r12), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:
	incq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	24(%r13), %rcx
	imulq	$56, %rax, %r14
	movq	48(%rcx,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_pstrdup
	movq	24(%r12), %rcx
	movq	%rax, 48(%rcx,%r14)
	jmp	LBB0_6
LBB0_7:
	cmpq	$0, 16(%r13)
	je	LBB0_12
## %bb.8:
	imull	$56, (%r15), %edi
	callq	_palloc
	movq	%rax, 16(%r12)
	movq	16(%r13), %rsi
	imull	$56, (%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%r15), %esi
	testl	%esi, %esi
	jg	LBB0_9
LBB0_12:
	movl	4(%r13), %eax
	movl	%eax, 4(%r12)
	testl	%eax, %eax
	jle	LBB0_21
## %bb.13:
	imull	$56, %eax, %edi
	callq	_palloc
	movq	%rax, 8(%r12)
	movq	8(%r13), %rsi
	imull	$56, 4(%r12), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	4(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.14:
	movq	8(%r13), %rax
	incq	%rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rbx), %rax
	movq	%rbx, %rsi
	cmpq	$1, %rax
	jbe	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rsi), %rbx
	movq	16(%r13), %rax
	movl	%ebx, %ecx
	imulq	$56, %rcx, %r14
	cmpq	$0, 40(%rax,%r14)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TupleDescAttr
	movq	16(%r13), %rcx
	movl	32(%rcx,%r14), %edi
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	callq	_datumCopy
	movq	16(%r12), %rcx
	movl	%eax, 32(%rcx,%r14)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	callq	_pstrdup
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx,%r14)
	movq	8(%r13), %rax
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	4(%rax,%r14), %edx
	movl	%edx, 4(%rcx,%r14)
	movl	(%rax,%r14), %edx
	movl	%edx, (%rcx,%r14)
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %ecx
	imulq	$56, %rcx, %r14
	movq	16(%rax,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	callq	_pstrdup
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx,%r14)
	movq	8(%r13), %rax
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rax,%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r12), %rcx
	jmp	LBB0_20
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, 16(%rbx)
LBB0_22:
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateTupleDescCopyConstr      ; -- Begin function CreateTupleDescCopyConstr
	.p2align	2
_CreateTupleDescCopyConstr:             ; @CreateTupleDescCopyConstr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w0, [x0]
	bl	_CreateTemplateTupleDesc
	mov	x20, x0
	mov	w1, #0
	bl	_TupleDescAttr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_TupleDescAttr
	mov	x1, x0
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	x0, x21
	bl	_memcpy
	cbz	x22, LBB0_23
; %bb.1:
	mov	w0, #40
	bl	_palloc0
	mov	x21, x0
	ldr	d0, [x22, #32]
	str	d0, [x0, #32]
	ldr	w8, [x22]
	str	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w23, #56
	mul	w0, w8, w23
	bl	_palloc
	str	x0, [x21, #24]
	ldr	x1, [x22, #24]
	ldr	w8, [x21]
	mul	w2, w8, w23
	bl	_memcpy
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	add	x24, x8, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x24, x24, #1
	cmp	x24, #1
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w24, #2
	ldr	x8, [x22, #24]
	umaddl	x8, w25, w23, x8
	ldr	x0, [x8, #48]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_pstrdup
	ldr	x8, [x21, #24]
	madd	x8, x25, x23, x8
	str	x0, [x8, #48]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	w8, [x19]
	mov	w23, #56
	mul	w0, w8, w23
	bl	_palloc
	str	x0, [x21, #16]
	ldr	x1, [x22, #16]
	ldr	w8, [x19]
	mul	w2, w8, w23
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	w23, #56
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x24, #1
	mov	x8, x24
	cmp	x9, #1
	b.ls	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x24, x8, #1
	ldr	x9, [x22, #16]
	and	x25, x24, #0xffffffff
	madd	x9, x25, x23, x9
	ldr	x9, [x9, #40]
	cbz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w1, w8, #1
	mov	x0, x19
	bl	_TupleDescAttr
	ldr	x8, [x22, #16]
	mul	x25, x25, x23
	add	x8, x8, x25
	ldr	w8, [x8, #32]
	ldp	w2, w1, [x0, #24]
	mov	x0, x8
	bl	_datumCopy
	ldr	x8, [x21, #16]
	add	x8, x8, x25
	str	w0, [x8, #32]
	b	LBB0_10
LBB0_13:
	ldr	w8, [x22, #4]
	str	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.14:
	mov	w23, #56
	mul	w0, w8, w23
	bl	_palloc
	str	x0, [x21, #8]
	ldr	x1, [x22, #8]
	ldr	w8, [x21, #4]
	mul	w2, w8, w23
	bl	_memcpy
	ldr	w9, [x21, #4]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.15:
	ldr	x8, [x22, #8]
	add	x24, x9, #1
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_pstrdup
	ldr	x9, [x21, #8]
	madd	x8, x25, x23, x9
	str	x0, [x8, #8]
	ldr	x8, [x22, #8]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mul	x10, x25, x23
	ldr	d0, [x8, x10]
	str	d0, [x9, x10]
	sub	x24, x24, #1
	cmp	x24, #1
	b.ls	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	w25, w24, #2
	umaddl	x9, w25, w23, x8
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_pstrdup
	ldr	x8, [x21, #8]
	madd	x8, x25, x23, x8
	str	x0, [x8, #16]
	ldr	x8, [x22, #8]
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	madd	x9, x25, x23, x8
	ldr	x0, [x9, #8]
	cbnz	x0, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [x21, #8]
	b	LBB0_17
LBB0_22:
	str	x21, [x20, #16]
LBB0_23:
	ldur	d0, [x19, #4]
	stur	d0, [x20, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
