	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yxml_setutf8
_yxml_setutf8:                          ## @yxml_setutf8
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	cmpl	$127, %esi
	ja	LBB0_2
## %bb.1:
	leaq	1(%r14), %rbx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_yxml_setchar
	jmp	LBB0_9
LBB0_2:
	cmpl	$2047, %r13d                    ## imm = 0x7FF
	ja	LBB0_4
## %bb.3:
	leal	1(%r14), %r15d
	movl	%r13d, %esi
	shrl	$6, %esi
	orl	$192, %esi
	movl	%r14d, %edi
	callq	_yxml_setchar
	addq	$2, %r14
	jmp	LBB0_7
LBB0_4:
	leaq	1(%r14), %r15
	movl	%r13d, %esi
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	ja	LBB0_6
## %bb.5:
	shrl	$12, %esi
	orl	$224, %esi
	movl	%r14d, %edi
	callq	_yxml_setchar
	leal	2(%r14), %r12d
	movl	%r13d, %esi
	shrl	$6, %esi
	andl	$63, %esi
	orl	$128, %esi
	movl	%r15d, %edi
	callq	_yxml_setchar
	addq	$3, %r14
	andl	$63, %r13d
	orl	$128, %r13d
	movl	%r12d, %edi
	jmp	LBB0_8
LBB0_6:
	shrl	$18, %esi
	orl	$240, %esi
	movl	%r14d, %edi
	callq	_yxml_setchar
	leal	2(%r14), %r12d
	movl	%r13d, %esi
	shrl	$12, %esi
	andl	$63, %esi
	orl	$128, %esi
	movl	%r15d, %edi
	callq	_yxml_setchar
	leal	3(%r14), %r15d
	movl	%r13d, %esi
	shrl	$6, %esi
	andl	$63, %esi
	orl	$128, %esi
	movl	%r12d, %edi
	callq	_yxml_setchar
	addq	$4, %r14
LBB0_7:
	andl	$63, %r13d
	orl	$128, %r13d
	movl	%r15d, %edi
LBB0_8:
	movl	%r13d, %esi
	callq	_yxml_setchar
	movq	%r14, %rbx
LBB0_9:
	movb	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yxml_setutf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yxml_setutf8
_yxml_setutf8:                          ; @yxml_setutf8
	.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
	cmp	w1, #127
	b.hi	LBB0_2
; %bb.1:
	add	x24, x20, #1
	mov	x0, x20
	mov	x1, x19
	b	LBB0_8
LBB0_2:
	cmp	w19, #2047
	b.hi	LBB0_4
; %bb.3:
	add	w21, w20, #1
	lsr	w8, w19, #6
	orr	w1, w8, #0xc0
	mov	x0, x20
	bl	_yxml_setchar
	add	x24, x20, #2
	mov	w1, #128
	bfxil	w1, w19, #0, #6
	mov	x0, x21
	b	LBB0_8
LBB0_4:
	add	x21, x20, #1
	lsr	w8, w19, #16
	cbnz	w8, LBB0_6
; %bb.5:
	lsr	w8, w19, #12
	orr	w1, w8, #0xe0
	mov	x0, x20
	bl	_yxml_setchar
	add	w22, w20, #2
	mov	w23, #128
	mov	w1, #128
	bfxil	w1, w19, #6, #6
	mov	x0, x21
	bl	_yxml_setchar
	add	x24, x20, #3
	bfxil	w23, w19, #0, #6
	mov	x0, x22
	b	LBB0_7
LBB0_6:
	lsr	w8, w19, #18
	orr	w1, w8, #0xf0
	mov	x0, x20
	bl	_yxml_setchar
	add	w22, w20, #2
	mov	w23, #128
	mov	w1, #128
	bfxil	w1, w19, #12, #6
	mov	x0, x21
	bl	_yxml_setchar
	add	w21, w20, #3
	mov	w1, #128
	bfxil	w1, w19, #6, #6
	mov	x0, x22
	bl	_yxml_setchar
	add	x24, x20, #4
	bfxil	w23, w19, #0, #6
	mov	x0, x21
LBB0_7:
	mov	x1, x23
LBB0_8:
	bl	_yxml_setchar
	strb	wzr, [x24]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yxml_setutf8
.subsections_via_symbols
