	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_xml_name_to_sql_identifier ## -- Begin function map_xml_name_to_sql_identifier
	.p2align	4, 0x90
_map_xml_name_to_sql_identifier:        ## @map_xml_name_to_sql_identifier
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_initStringInfo
	leaq	L_.str(%rip), %r15
	leaq	-36(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_12
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_pg_mblen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_appendBinaryStringInfo
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_pg_mblen
	cltq
	addq	%rax, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$95, %al
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$120, 1(%rbx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	2(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	3(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	4(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	5(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$95, 6(%rbx)
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	2(%rbx), %rdi
	addq	$6, %rbx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sscanf
	movl	-36(%rbp), %edi
	callq	_unicode_to_sqlchar
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_appendStringInfoString
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%X"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_xml_name_to_sql_identifier ; -- Begin function map_xml_name_to_sql_identifier
	.p2align	2
_map_xml_name_to_sql_identifier:        ; @map_xml_name_to_sql_identifier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	add	x0, sp, #8
	bl	_initStringInfo
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_12
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pg_mblen
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_appendBinaryStringInfo
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pg_mblen
	add	x20, x20, w0, sxtw
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #95
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20, #1]
	cmp	w8, #120
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x20
	ldrb	w0, [x21, #2]!
	bl	_isxdigit
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x20, #3]
	bl	_isxdigit
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x20, #4]
	bl	_isxdigit
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x20, #5]
	bl	_isxdigit
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x20
	ldrb	w8, [x22, #6]!
	cmp	w8, #95
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #4
	mov	x0, x21
	mov	x1, x19
	bl	_sscanf
	ldr	w0, [sp, #4]
	bl	_unicode_to_sqlchar
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	mov	x20, x22
	b	LBB0_3
LBB0_12:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%X"

.subsections_via_symbols
