	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_xml
_scan_xml:                              ## @scan_xml
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_option_load_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movsbl	1(%rdi), %edi
	incq	%rbx
	callq	_IS_VAR_FIRST_CHAR
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	leaq	-56(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_scan_xml_name
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r12
	cmpl	$130, -80(%rbp)
	jne	LBB0_5
## %bb.3:
	movq	%r12, %r14
LBB0_4:
	addq	$4, %r15
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_add_string
LBB0_15:
	movq	_option_load_mode@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	jmp	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unnamed_xml                    ## TAILCALL
LBB0_5:
	movq	_option_load_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OPTION_LOAD_KEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_SPN_WHITESPACE_CHARS
	movq	%rax, %r12
LBB0_7:
	movq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_find_end_xml
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rax, %r14
	movl	-80(%rbp), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_15
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	addq	$4, %r15
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_add_string
	movq	_option_load_mode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_OPTION_LOAD_KEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_15
## %bb.11:
	movl	8(%rax), %edi
	callq	_munge_str
	jmp	LBB0_15
LBB0_16:
	movq	_option_load_mode@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	xorl	%r14d, %r14d
LBB0_17:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	addq	$4, %r15
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_add_number
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rdi
	incq	%rdi
	leaq	L_.str(%rip), %rsi
	callq	_AGALOC
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	_NUL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	-48(%rbp), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%rdx)
	addq	$4, %r15
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rcx, %rbx
	callq	_add_nested
	movq	%rbx, %rdi
	callq	_AGFREE
	jmp	LBB0_15
LBB0_12:
	addq	$4, %r15
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_add_bool
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_option_load_mode,8,3           ## @option_load_mode
	.comm	_OPTION_LOAD_KEEP,8,3           ## @OPTION_LOAD_KEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h scan"

	.comm	_NUL,1,0                        ## @NUL
	.no_dead_strip	_scan_xml
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_xml
_scan_xml:                              ; @scan_xml
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _option_load_mode@GOTPAGE
Lloh1:
	ldr	x24, [x24, _option_load_mode@GOTPAGEOFF]
	ldr	x25, [x24]
	ldrsb	w0, [x20, #1]!
	bl	_IS_VAR_FIRST_CHAR
	cbz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #24
	mov	x2, sp
	mov	x0, x20
	bl	_scan_xml_name
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	ldr	w8, [sp]
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x19, x22
LBB0_4:
	add	x0, x21, #4
	ldr	x2, [sp, #24]
	mov	x1, x20
	mov	x3, #0
	mov	x4, #0
	bl	_add_string
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #112
	b	_unnamed_xml
LBB0_6:
	ldr	x8, [x24]
Lloh2:
	adrp	x23, _OPTION_LOAD_KEEP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OPTION_LOAD_KEEP@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_SPN_WHITESPACE_CHARS
	mov	x22, x0
LBB0_8:
	ldr	x1, [sp, #24]
	add	x3, sp, #16
	mov	x0, x20
	mov	x2, x22
	bl	_find_end_xml
	cbz	x0, LBB0_13
; %bb.9:
	mov	x19, x0
	ldr	w8, [sp]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_14
; %bb.10:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	add	x0, x21, #4
	ldp	x4, x2, [sp, #16]
	mov	x1, x20
	mov	x3, x22
	bl	_add_string
	ldr	x1, [x24]
	ldr	x8, [x23]
	cmp	x1, x8
	b.eq	LBB0_14
; %bb.12:
	ldr	w0, [x0, #8]
	bl	_munge_str
	b	LBB0_14
LBB0_13:
	mov	x19, #0
LBB0_14:
	str	x25, [x24]
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
LBB0_15:
	add	x0, x21, #4
	ldp	x4, x2, [sp, #16]
	mov	x1, x20
	mov	x3, x22
	bl	_add_number
	b	LBB0_14
LBB0_16:
	ldr	x8, [sp, #16]
	add	x0, x8, #1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AGALOC
	mov	x23, x0
	ldr	x2, [sp, #16]
	mov	x1, x22
	bl	_memcpy
Lloh8:
	adrp	x8, _NUL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUL@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [sp, #16]
	strb	w8, [x23, x9]
	add	x0, x21, #4
	ldp	x4, x2, [sp, #16]
	mov	x1, x20
	mov	x3, x23
	bl	_add_nested
	mov	x0, x23
	bl	_AGFREE
	b	LBB0_14
LBB0_17:
	add	x0, x21, #4
	ldp	x4, x2, [sp, #16]
	mov	x1, x20
	mov	x3, x22
	bl	_add_bool
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.comm	_option_load_mode,8,3           ; @option_load_mode
	.comm	_OPTION_LOAD_KEEP,8,3           ; @OPTION_LOAD_KEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h scan"

	.comm	_NUL,1,0                        ; @NUL
	.no_dead_strip	_scan_xml
.subsections_via_symbols
