	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yxml_refend
_yxml_refend:                           ## @yxml_refend
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movb	(%r12), %al
	movzbl	1(%r12), %esi
	cmpb	$35, %al
	jne	LBB0_9
## %bb.1:
	cmpb	$120, %sil
	jne	LBB0_2
## %bb.5:
	movzbl	2(%r12), %edi
	addq	$2, %r12
	callq	_yxml_isHex
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	shll	$4, %ebx
	movzbl	(%r12), %eax
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	orl	$32, %edx
	addl	$-87, %edx
	cmpl	$58, %eax
	cmovbl	%ecx, %edx
	addl	%edx, %ebx
	movzbl	1(%r12), %edi
	incq	%r12
	callq	_yxml_isHex
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	xorl	%esi, %esi
	cmpb	$0, (%r12)
	cmovel	%ebx, %esi
	jmp	LBB0_14
LBB0_9:
	movsbl	2(%r12), %edx
	movsbl	3(%r12), %ecx
	movzbl	4(%r12), %r8d
	movsbl	%al, %edi
	callq	_INTFROM5CHARS
	movl	%eax, %ebx
	movl	$108, %edi
	movl	$116, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_INTFROM5CHARS
	movl	$60, %esi
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.10:
	movl	$103, %edi
	movl	$116, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_INTFROM5CHARS
	movl	$62, %esi
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.11:
	movl	$97, %edi
	movl	$109, %esi
	movl	$112, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_INTFROM5CHARS
	movl	$38, %esi
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.12:
	xorl	%r12d, %r12d
	movl	$97, %edi
	movl	$112, %esi
	movl	$111, %edx
	movl	$115, %ecx
	xorl	%r8d, %r8d
	callq	_INTFROM5CHARS
	movl	$39, %esi
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.13:
	movl	$113, %edi
	movl	$117, %esi
	movl	$111, %edx
	movl	$116, %ecx
	xorl	%r8d, %r8d
	callq	_INTFROM5CHARS
	cmpl	%eax, %ebx
	movl	$34, %esi
	cmovnel	%r12d, %esi
LBB0_14:
	movl	%esi, %eax
	andl	$-2, %eax
	cmpl	$65534, %eax                    ## imm = 0xFFFE
	je	LBB0_17
## %bb.15:
	leal	-1114112(%rsi), %eax
	cmpl	$-1114111, %eax                 ## imm = 0xFFEF0001
	jb	LBB0_17
## %bb.16:
	leal	-57343(%rsi), %eax
	cmpl	$2046, %eax                     ## imm = 0x7FE
	jbe	LBB0_17
## %bb.18:
	movq	(%r15), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_yxml_setutf8
	jmp	LBB0_19
LBB0_17:
	movq	_YXML_EREF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	incq	%r12
	movl	%esi, %edi
	callq	_yxml_isNum
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx,4), %eax
	movzbl	(%r12), %ecx
	leal	(%rcx,%rax,2), %ebx
	addl	$-48, %ebx
	movzbl	1(%r12), %edi
	incq	%r12
	callq	_yxml_isNum
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_YXML_EREF,4,2                  ## @YXML_EREF
	.no_dead_strip	_yxml_refend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yxml_refend
_yxml_refend:                           ; @yxml_refend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldrb	w9, [x8]
	mov	x21, x8
	ldrb	w1, [x21, #1]!
	cmp	w9, #35
	b.ne	LBB0_4
; %bb.1:
	cmp	w1, #120
	b.ne	LBB0_6
; %bb.2:
	ldrb	w0, [x8, #2]!
	mov	x21, x8
	bl	_yxml_isHex
	mov	w22, #0
	cbz	x0, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	orr	w10, w8, #0x20
	sub	w10, w10, #87
	cmp	w8, #58
	csel	w8, w9, w10, lo
	add	w22, w8, w22, lsl #4
	ldrb	w0, [x21, #1]!
	bl	_yxml_isHex
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_4:
	ldrsb	w2, [x8, #2]
	ldrsb	w3, [x8, #3]
	ldrb	w4, [x8, #4]
	sxtb	w0, w9
	bl	_INTFROM5CHARS
	mov	x21, x0
	mov	w0, #108
	mov	w1, #116
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_INTFROM5CHARS
	cmp	w21, w0
	b.ne	LBB0_10
; %bb.5:
	mov	w1, #60
	b	LBB0_17
LBB0_6:
	mov	x0, x1
	bl	_yxml_isNum
	mov	w22, #0
	cbz	x0, LBB0_9
; %bb.7:
	mov	w23, #10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	madd	w8, w22, w23, w8
	sub	w22, w8, #48
	ldrb	w0, [x21, #1]!
	bl	_yxml_isNum
	cbnz	x0, LBB0_8
LBB0_9:
	ldrb	w8, [x21]
	cmp	w8, #0
	csel	w1, w22, wzr, eq
	b	LBB0_17
LBB0_10:
	mov	w0, #103
	mov	w1, #116
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_INTFROM5CHARS
	cmp	w21, w0
	b.ne	LBB0_12
; %bb.11:
	mov	w1, #62
	b	LBB0_17
LBB0_12:
	mov	w0, #97
	mov	w1, #109
	mov	w2, #112
	mov	w3, #0
	mov	w4, #0
	bl	_INTFROM5CHARS
	cmp	w21, w0
	b.ne	LBB0_14
; %bb.13:
	mov	w1, #38
	b	LBB0_17
LBB0_14:
	mov	w0, #97
	mov	w1, #112
	mov	w2, #111
	mov	w3, #115
	mov	w4, #0
	bl	_INTFROM5CHARS
	cmp	w21, w0
	b.ne	LBB0_16
; %bb.15:
	mov	w1, #39
	b	LBB0_17
LBB0_16:
	mov	w0, #113
	mov	w1, #117
	mov	w2, #111
	mov	w3, #116
	mov	w4, #0
	bl	_INTFROM5CHARS
	mov	w8, #34
	cmp	w21, w0
	csel	w1, w8, wzr, eq
LBB0_17:
	mov	w8, #32767
	cmp	w8, w1, lsr #1
	b.eq	LBB0_21
; %bb.18:
	sub	w8, w1, #272, lsl #12           ; =1114112
	mov	w9, #-1114112
	orr	w9, w9, #0x1
	cmp	w8, w9
	b.lo	LBB0_21
; %bb.19:
	mov	w8, #-57343
	add	w8, w1, w8
	cmp	w8, #2046
	b.ls	LBB0_21
; %bb.20:
	ldr	x0, [x20]
	bl	_yxml_setutf8
	b	LBB0_22
LBB0_21:
Lloh0:
	adrp	x8, _YXML_EREF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YXML_EREF@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
LBB0_22:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_YXML_EREF,4,2                  ; @YXML_EREF
	.no_dead_strip	_yxml_refend
.subsections_via_symbols
