	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_sql_table_to_xmlschema
_map_sql_table_to_xmlschema:            ## @map_sql_table_to_xmlschema
	.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	%r8, %r13
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	callq	_initStringInfo
	movl	%r14d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_3:
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_map_sql_identifier_to_xml_name
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MyDatabaseId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_database_name
	movl	%eax, %r14d
	movl	4(%r13), %edi
	callq	_get_namespace_name
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_NameStr
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_map_multipart_sql_identifier_to_xml_name
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_MyDatabaseId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_database_name
	movl	%eax, %r14d
	movl	4(%r13), %edi
	callq	_get_namespace_name
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_NameStr
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_map_multipart_sql_identifier_to_xml_name
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	testl	%r15d, %r15d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %r15
LBB0_5:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_xsd_schema_element_start
	movq	%rbx, %rdi
	callq	_list_make1
	movl	%eax, %edi
	callq	_map_sql_typecoll_to_xmlschema_types
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_appendStringInfoString
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_appendStringInfo
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.6:
	testl	%r12d, %r12d
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %r12
	cmoveq	%rax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	cmpl	(%rbx), %r13d
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_TupleDescAttr
	cmpq	$0, 8(%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_map_sql_identifier_to_xml_name
	movq	%rax, %r14
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_map_sql_type_to_xml_name
	leaq	-48(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_appendStringInfo
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.9(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.10(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_appendStringInfo
LBB0_13:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	L_.str.11(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_appendStringInfo
	movq	%r14, %rdi
	callq	_xsd_schema_element_end
	movq	-48(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for relation %u"

L_.str.1:                               ## @.str.1
	.asciz	"TableType"

	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
L_.str.2:                               ## @.str.2
	.asciz	"RowType"

L_.str.3:                               ## @.str.3
	.asciz	"row"

L_.str.4:                               ## @.str.4
	.asciz	"table"

L_.str.5:                               ## @.str.5
	.asciz	"<xsd:complexType name=\"%s\">\n  <xsd:sequence>\n"

L_.str.6:                               ## @.str.6
	.asciz	"    <xsd:element name=\"%s\" type=\"%s\"%s></xsd:element>\n"

L_.str.7:                               ## @.str.7
	.asciz	" nillable=\"true\""

L_.str.8:                               ## @.str.8
	.asciz	" minOccurs=\"0\""

L_.str.9:                               ## @.str.9
	.asciz	"  </xsd:sequence>\n</xsd:complexType>\n\n"

L_.str.10:                              ## @.str.10
	.asciz	"<xsd:complexType name=\"%s\">\n  <xsd:sequence>\n    <xsd:element name=\"row\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n  </xsd:sequence>\n</xsd:complexType>\n\n"

L_.str.11:                              ## @.str.11
	.asciz	"<xsd:element name=\"%s\" type=\"%s\"/>\n\n"

	.no_dead_strip	_map_sql_table_to_xmlschema
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_sql_table_to_xmlschema
_map_sql_table_to_xmlschema:            ; @map_sql_table_to_xmlschema
	.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, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #24
	bl	_initStringInfo
	mov	x0, x21
	bl	_OidIsValid
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _RELOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x26, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_3:
	mov	x0, x26
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	w0, [x0]
	bl	_NameStr
	mov	w1, #1
	mov	w2, #0
	bl	_map_sql_identifier_to_xml_name
	mov	x21, x0
Lloh8:
	adrp	x28, _MyDatabaseId@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MyDatabaseId@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_get_database_name
	mov	x23, x0
	ldr	w0, [x25, #4]
	bl	_get_namespace_name
	mov	x27, x0
	ldr	w0, [x25]
	bl	_NameStr
	mov	x3, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x27
	bl	_map_multipart_sql_identifier_to_xml_name
	mov	x23, x0
	ldr	w0, [x28]
	bl	_get_database_name
	mov	x27, x0
	ldr	w0, [x25, #4]
	bl	_get_namespace_name
	mov	x28, x0
	ldr	w0, [x25]
	bl	_NameStr
	mov	x3, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	mov	x2, x28
	bl	_map_multipart_sql_identifier_to_xml_name
	mov	x25, x0
	mov	x0, x26
	bl	_ReleaseSysCache
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, l_.str.3@PAGE
Lloh15:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh16:
	adrp	x9, l_.str.4@PAGE
Lloh17:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w19, #0
	csel	x21, x9, x8, eq
Lloh18:
	adrp	x23, l_.str.1@PAGE
Lloh19:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh20:
	adrp	x25, l_.str.2@PAGE
Lloh21:
	add	x25, x25, l_.str.2@PAGEOFF
LBB0_5:
	add	x0, sp, #24
	mov	x1, x24
	bl	_xsd_schema_element_start
	mov	x0, x20
	bl	_list_make1
	bl	_map_sql_typecoll_to_xmlschema_types
	mov	x1, x0
	add	x0, sp, #24
	bl	_appendStringInfoString
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #24
	mov	x2, x25
	bl	_appendStringInfo
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w24, #0
Lloh24:
	adrp	x8, l_.str.7@PAGE
Lloh25:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh26:
	adrp	x9, l_.str.8@PAGE
Lloh27:
	add	x9, x9, l_.str.8@PAGEOFF
	cmp	w22, #0
	csel	x28, x9, x8, eq
Lloh28:
	adrp	x22, l_.str.6@PAGE
Lloh29:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w8, [x20]
	cmp	w24, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_TupleDescAttr
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x26, x0
	ldr	w0, [x0, #4]
	bl	_NameStr
	mov	w1, #1
	mov	w2, #0
	bl	_map_sql_identifier_to_xml_name
	mov	x27, x0
	ldr	w0, [x26]
	mov	w1, #-1
	bl	_map_sql_type_to_xml_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x28, [sp]
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x27
	bl	_appendStringInfo
	b	LBB0_7
LBB0_10:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #24
	bl	_appendStringInfoString
	cbz	w19, LBB0_12
; %bb.11:
	mov	x23, x25
	b	LBB0_13
LBB0_12:
	str	x25, [sp]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #24
	mov	x2, x23
	bl	_appendStringInfo
LBB0_13:
	str	x23, [sp]
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x0, sp, #24
	mov	x2, x21
	bl	_appendStringInfo
	add	x0, sp, #24
	bl	_xsd_schema_element_end
	ldr	x0, [sp, #24]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for relation %u"

l_.str.1:                               ; @.str.1
	.asciz	"TableType"

	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
l_.str.2:                               ; @.str.2
	.asciz	"RowType"

l_.str.3:                               ; @.str.3
	.asciz	"row"

l_.str.4:                               ; @.str.4
	.asciz	"table"

l_.str.5:                               ; @.str.5
	.asciz	"<xsd:complexType name=\"%s\">\n  <xsd:sequence>\n"

l_.str.6:                               ; @.str.6
	.asciz	"    <xsd:element name=\"%s\" type=\"%s\"%s></xsd:element>\n"

l_.str.7:                               ; @.str.7
	.asciz	" nillable=\"true\""

l_.str.8:                               ; @.str.8
	.asciz	" minOccurs=\"0\""

l_.str.9:                               ; @.str.9
	.asciz	"  </xsd:sequence>\n</xsd:complexType>\n\n"

l_.str.10:                              ; @.str.10
	.asciz	"<xsd:complexType name=\"%s\">\n  <xsd:sequence>\n    <xsd:element name=\"row\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n  </xsd:sequence>\n</xsd:complexType>\n\n"

l_.str.11:                              ; @.str.11
	.asciz	"<xsd:element name=\"%s\" type=\"%s\"/>\n\n"

	.no_dead_strip	_map_sql_table_to_xmlschema
.subsections_via_symbols
