	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_tuples_by_name_map     ## -- Begin function convert_tuples_by_name_map
	.p2align	4, 0x90
_convert_tuples_by_name_map:            ## @convert_tuples_by_name_map
	.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	%rsi, %r15
	movl	(%rsi), %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	leal	(,%rbx,8), %edi
	callq	_palloc0
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.1:
	movl	$-1, %ebx
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edi
	callq	_format_type_be
	movl	%eax, %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_format_type_be
	leaq	L_.str.2(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_errdetail
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_TupleDescAttr
	cmpq	$0, 32(%rax)
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	24(%rax), %edi
	callq	_NameStr
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	decl	%r15d
	je	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	cmpl	%r12d, %ebx
	movl	$0, %eax
	cmovgel	%eax, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, 32(%rax)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r14
	movl	24(%rax), %edi
	callq	_NameStr
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%r14), %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_format_type_be
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_format_type_be
	leaq	L_.str.1(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_errdetail
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not convert row type"

L_.str.1:                               ## @.str.1
	.asciz	"Attribute \"%s\" of type %s does not match corresponding attribute of type %s."

L_.str.2:                               ## @.str.2
	.asciz	"Attribute \"%s\" of type %s does not exist in type %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_tuples_by_name_map     ; -- Begin function convert_tuples_by_name_map
	.p2align	2
_convert_tuples_by_name_map:            ; @convert_tuples_by_name_map
	.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, x1
	mov	x20, x0
	ldr	w21, [x1]
	ldr	w24, [x0]
	lsl	w0, w21, #3
	bl	_palloc0
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w21, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x22, #0
	mov	w23, #-1
	str	x21, [sp]                       ; 8-byte Folded Spill
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	ldr	w0, [x19, #4]
	bl	_format_type_be
	mov	x26, x0
	ldr	w0, [x20, #4]
	bl	_format_type_be
	mov	x3, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x27
	mov	x2, x26
	bl	_errdetail
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x28, #16]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9, x22, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x21, [sp]                       ; 8-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x22, x21
	b.eq	LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x19
	mov	x1, x22
	bl	_TupleDescAttr
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
	ldr	w0, [x0, #24]
	bl	_NameStr
	mov	x27, x0
	cmp	w24, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x26, x25, [x28]
	mov	x21, x24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	subs	w21, w21, #1
	b.eq	LBB0_4
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w23, #1
	cmp	w8, w24
	csinc	w23, wzr, w23, ge
	mov	x0, x20
	mov	x1, x23
	bl	_TupleDescAttr
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x28, x0
	ldr	w0, [x0, #24]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x27
	bl	_strcmp
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x28]
	cmp	x26, x8
	b.ne	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x28, #8]
	cmp	x25, x8
	b.ne	LBB0_2
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
Lloh13:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	ldr	w0, [x19, #4]
	bl	_format_type_be
	mov	x26, x0
	ldr	w0, [x20, #4]
	bl	_format_type_be
	mov	x3, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	mov	x2, x26
	bl	_errdetail
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	b	LBB0_5
LBB0_16:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not convert row type"

l_.str.1:                               ; @.str.1
	.asciz	"Attribute \"%s\" of type %s does not match corresponding attribute of type %s."

l_.str.2:                               ; @.str.2
	.asciz	"Attribute \"%s\" of type %s does not exist in type %s."

.subsections_via_symbols
