	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UTF8_putc                      ## -- Begin function UTF8_putc
	.p2align	4, 0x90
_UTF8_putc:                             ## @UTF8_putc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_2
## %bb.3:
	cmpq	$127, %rdx
	ja	LBB0_6
## %bb.4:
	movb	%dl, (%rdi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	$6, %esi
	movl	$1, %eax
	cmpq	$128, %rdx
	jb	LBB0_25
LBB0_6:
	cmpq	$2047, %rdx                     ## imm = 0x7FF
	ja	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	cmpl	$2, %esi
	setae	%al
	leal	(%rax,%rax,2), %eax
	decl	%eax
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.8:
	cmpl	$2, %esi
	jb	LBB0_25
## %bb.9:
	movq	%rdx, %rax
	shrq	$6, %rax
	orb	$-64, %al
	movb	%al, (%rdi)
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, 1(%rdi)
	movl	$2, %eax
	popq	%rbp
	retq
LBB0_2:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_10:
	cmpq	$65535, %rdx                    ## imm = 0xFFFF
	ja	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	cmpl	$3, %esi
	setae	%al
	leal	-1(,%rax,4), %eax
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.12:
	cmpl	$3, %esi
	jb	LBB0_25
## %bb.13:
	movq	%rdx, %rax
	shrq	$12, %rax
	orb	$-32, %al
	movb	%al, (%rdi)
	movq	%rdx, %rax
	shrq	$6, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rdi)
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, 2(%rdi)
	movl	$3, %eax
	popq	%rbp
	retq
LBB0_14:
	cmpq	$2097151, %rdx                  ## imm = 0x1FFFFF
	ja	LBB0_18
## %bb.15:
	xorl	%eax, %eax
	cmpl	$4, %esi
	setae	%al
	leal	(%rax,%rax,4), %eax
	decl	%eax
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.16:
	cmpl	$4, %esi
	jb	LBB0_25
## %bb.17:
	movq	%rdx, %rax
	shrq	$18, %rax
	orb	$-16, %al
	movb	%al, (%rdi)
	movq	%rdx, %rax
	shrq	$12, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rdi)
	movq	%rdx, %rax
	shrq	$6, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%rdi)
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, 3(%rdi)
	movl	$4, %eax
	popq	%rbp
	retq
LBB0_18:
	cmpq	$67108863, %rdx                 ## imm = 0x3FFFFFF
	ja	LBB0_22
## %bb.19:
	cmpl	$5, %esi
	movl	$-1, %ecx
	movl	$5, %eax
	cmovbl	%ecx, %eax
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.20:
	cmpl	$5, %esi
	jb	LBB0_25
## %bb.21:
	movq	%rdx, %rax
	shrq	$24, %rax
	orb	$-8, %al
	movb	%al, (%rdi)
	movq	%rdx, %rax
	shrq	$18, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rdi)
	movq	%rdx, %rax
	shrq	$12, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%rdi)
	movq	%rdx, %rax
	shrq	$6, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 3(%rdi)
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, 4(%rdi)
	movl	$5, %eax
	popq	%rbp
	retq
LBB0_22:
	cmpl	$6, %esi
	movl	$-1, %ecx
	movl	$6, %eax
	cmovbl	%ecx, %eax
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:
	cmpl	$6, %esi
	jb	LBB0_25
## %bb.24:
	movq	%rdx, %rax
	shrq	$30, %rax
	andb	$1, %al
	orb	$-4, %al
	movb	%al, (%rdi)
	movq	%rdx, %rax
	shrq	$24, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 1(%rdi)
	movq	%rdx, %rax
	shrq	$18, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 2(%rdi)
	movq	%rdx, %rax
	shrq	$12, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 3(%rdi)
	movq	%rdx, %rax
	shrq	$6, %rax
	andb	$63, %al
	orb	$-128, %al
	movb	%al, 4(%rdi)
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, 5(%rdi)
	movl	$6, %eax
LBB0_25:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UTF8_putc                      ; -- Begin function UTF8_putc
	.p2align	2
_UTF8_putc:                             ; @UTF8_putc
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.2:
	cmp	x2, #127
	b.hi	LBB0_8
; %bb.3:
	strb	w2, [x0]
	mov	w0, #1
	ret
LBB0_4:
	cmp	x2, #128
	b.hs	LBB0_7
; %bb.5:
	mov	w0, #1
	ret
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	mov	w1, #6
LBB0_8:
	cmp	x2, #2047
	b.hi	LBB0_12
; %bb.9:
	cmp	w1, #2
	mov	w8, #2
	csinv	w8, w8, wzr, hs
	cbz	x0, LBB0_27
; %bb.10:
	cmp	w1, #2
	b.lo	LBB0_27
; %bb.11:
	ubfx	x8, x2, #6, #26
	orr	w8, w8, #0xc0
	strb	w8, [x0]
	mov	w8, #128
	bfxil	w8, w2, #0, #6
	strb	w8, [x0, #1]
	mov	w0, #2
	ret
LBB0_12:
	lsr	x8, x2, #16
	cbnz	x8, LBB0_16
; %bb.13:
	cmp	w1, #3
	mov	w8, #3
	csinv	w8, w8, wzr, hs
	cbz	x0, LBB0_27
; %bb.14:
	cmp	w1, #3
	b.lo	LBB0_27
; %bb.15:
	ubfx	x8, x2, #12, #20
	orr	w8, w8, #0xe0
	strb	w8, [x0]
	mov	w8, #128
	mov	w9, #128
	bfxil	w9, w2, #6, #6
	strb	w9, [x0, #1]
	bfxil	w8, w2, #0, #6
	strb	w8, [x0, #2]
	mov	w0, #3
	ret
LBB0_16:
	lsr	x8, x2, #21
	cbnz	x8, LBB0_20
; %bb.17:
	cmp	w1, #4
	mov	w8, #4
	csinv	w8, w8, wzr, hs
	cbz	x0, LBB0_27
; %bb.18:
	cmp	w1, #4
	b.lo	LBB0_27
; %bb.19:
	ubfx	x8, x2, #18, #14
	orr	w8, w8, #0xf0
	strb	w8, [x0]
	mov	w8, #128
	mov	w9, #128
	bfxil	w9, w2, #12, #6
	strb	w9, [x0, #1]
	mov	w9, #128
	bfxil	w9, w2, #6, #6
	strb	w9, [x0, #2]
	bfxil	w8, w2, #0, #6
	strb	w8, [x0, #3]
	mov	w0, #4
	ret
LBB0_20:
	lsr	x8, x2, #26
	cbnz	x8, LBB0_24
; %bb.21:
	cmp	w1, #5
	mov	w8, #5
	csinv	w8, w8, wzr, hs
	cbz	x0, LBB0_27
; %bb.22:
	cmp	w1, #5
	b.lo	LBB0_27
; %bb.23:
	ubfx	x8, x2, #24, #8
	orr	w8, w8, #0xf8
	strb	w8, [x0]
	mov	w8, #128
	mov	w9, #128
	bfxil	w9, w2, #18, #6
	strb	w9, [x0, #1]
	mov	w9, #128
	bfxil	w9, w2, #12, #6
	strb	w9, [x0, #2]
	mov	w9, #128
	bfxil	w9, w2, #6, #6
	strb	w9, [x0, #3]
	bfxil	w8, w2, #0, #6
	strb	w8, [x0, #4]
	mov	w0, #5
	ret
LBB0_24:
	cmp	w1, #6
	mov	w8, #6
	csinv	w8, w8, wzr, hs
	cbz	x0, LBB0_27
; %bb.25:
	cmp	w1, #6
	b.lo	LBB0_27
; %bb.26:
	mov	w8, #252
	bfxil	w8, w2, #30, #1
	strb	w8, [x0]
	mov	w8, #128
	mov	w9, #128
	bfxil	w9, w2, #24, #6
	strb	w9, [x0, #1]
	mov	w9, #128
	bfxil	w9, w2, #18, #6
	strb	w9, [x0, #2]
	mov	w9, #128
	bfxil	w9, w2, #12, #6
	strb	w9, [x0, #3]
	mov	w9, #128
	bfxil	w9, w2, #6, #6
	strb	w9, [x0, #4]
	bfxil	w8, w2, #0, #6
	strb	w8, [x0, #5]
	mov	w8, #6
LBB0_27:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
