	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_char_utf8                ## -- Begin function write_char_utf8
	.p2align	4, 0x90
_write_char_utf8:                       ## @write_char_utf8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	movl	%edi, %ebx
	cmpl	$127, %edi
	jg	LBB0_4
## %bb.2:
	movsbl	%bl, %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_buff_char                ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	ja	LBB0_5
## %bb.9:
	movl	%ebx, %eax
	shrl	$6, %eax
	addb	$-64, %al
	andb	$63, %bl
	orb	$-128, %bl
	movsbl	%al, %edi
	movsbl	%bl, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_buff_char_2              ## TAILCALL
LBB0_5:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	ja	LBB0_6
## %bb.10:
	movl	%ebx, %edi
	shrl	$12, %edi
	addl	$224, %edi
	movl	%ebx, %esi
	shrl	$6, %esi
	andl	$63, %esi
	orl	$128, %esi
	andl	$63, %ebx
	orl	$128, %ebx
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_buff_char_3              ## TAILCALL
LBB0_6:
	leal	-126976(%rbx), %eax
	cmpl	$1728, %eax                     ## imm = 0x6C0
	ja	LBB0_7
## %bb.11:
	movl	%ebx, %edx
	shrl	$6, %edx
	andl	$63, %edx
	orl	$128, %edx
	andl	$63, %ebx
	orl	$128, %ebx
	movl	$240, %edi
	movl	$159, %esi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_buff_char_4              ## TAILCALL
LBB0_7:
	movl	$36, %edi
	movl	$35, %esi
	callq	_write_buff_char_2
	movl	%ebx, %edi
	callq	_write_buff_long
	movl	$59, %edi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_char_utf8                ; -- Begin function write_char_utf8
	.p2align	2
_write_char_utf8:                       ; @write_char_utf8
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	w0, #127
	b.gt	LBB0_5
; %bb.2:
	sxtb	w0, w19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_buff_char
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w19, #2047
	b.hi	LBB0_7
; %bb.6:
	lsr	w8, w19, #6
	sub	w8, w8, #64
	mov	w1, #-128
	bfxil	w1, w19, #0, #6
	sxtb	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_buff_char_2
LBB0_7:
	lsr	w8, w19, #16
	cbnz	w8, LBB0_9
; %bb.8:
	lsr	w8, w19, #12
	add	w0, w8, #224
	mov	w2, #128
	mov	w1, #128
	bfxil	w1, w19, #6, #6
	bfxil	w2, w19, #0, #6
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_buff_char_3
LBB0_9:
	sub	w8, w19, #31, lsl #12           ; =126976
	cmp	w8, #1728
	b.hi	LBB0_11
; %bb.10:
	mov	w3, #128
	mov	w2, #128
	bfxil	w2, w19, #6, #6
	bfxil	w3, w19, #0, #6
	mov	w0, #240
	mov	w1, #159
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_buff_char_4
LBB0_11:
	mov	w0, #36
	mov	w1, #35
	bl	_write_buff_char_2
	mov	x0, x19
	bl	_write_buff_long
	mov	w0, #59
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
