	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_utf8      ## -- Begin function mbfl_filt_conv_wchar_utf8
	.p2align	4, 0x90
_mbfl_filt_conv_wchar_utf8:             ## @mbfl_filt_conv_wchar_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	cmpl	$1114111, %edi                  ## imm = 0x10FFFF
	ja	LBB0_3
## %bb.1:
	cmpl	$127, %ebx
	ja	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	movl	%ebx, %edi
	jmp	LBB0_11
LBB0_3:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_mbfl_filt_conv_illegal_output
	jmp	LBB0_12
LBB0_4:
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	ja	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	shrl	$6, %edi
	orl	$192, %edi
	jmp	LBB0_10
LBB0_6:
	movq	8(%r14), %rax
	movl	%ebx, %edi
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	ja	LBB0_8
## %bb.7:
	shrl	$12, %edi
	orl	$224, %edi
	movl	(%r14), %esi
	callq	*%rax
	jmp	LBB0_9
LBB0_8:
	shrl	$18, %edi
	orl	$240, %edi
	movl	(%r14), %esi
	callq	*%rax
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %edi
	shrl	$12, %edi
	andl	$63, %edi
	orl	$128, %edi
	movl	(%r14), %esi
	callq	*8(%r14)
LBB0_9:
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %edi
	shrl	$6, %edi
	andl	$63, %edi
	orl	$128, %edi
LBB0_10:
	movl	(%r14), %esi
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %edi
	andl	$63, %edi
	orl	$128, %edi
	movl	(%r14), %esi
LBB0_11:
	callq	*8(%r14)
LBB0_12:
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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	_mbfl_filt_conv_wchar_utf8      ; -- Begin function mbfl_filt_conv_wchar_utf8
	.p2align	2
_mbfl_filt_conv_wchar_utf8:             ; @mbfl_filt_conv_wchar_utf8
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	lsr	w9, w0, #16
	cmp	w9, #16
	b.hi	LBB0_3
; %bb.1:
	cmp	w19, #127
	b.hi	LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mbfl_filt_conv_illegal_output
LBB0_4:
	bl	_CK
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w19, #2047
	b.hi	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	lsr	w9, w19, #6
	orr	w0, w9, #0xc0
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	mov	w0, #128
	bfxil	w0, w19, #0, #6
	ldr	w1, [x20]
	blr	x8
	b	LBB0_4
LBB0_7:
	ldr	x8, [x20, #8]
	cbnz	w9, LBB0_9
; %bb.8:
	lsr	w9, w19, #12
	orr	w0, w9, #0xe0
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	mov	w21, #128
	b	LBB0_10
LBB0_9:
	lsr	w9, w19, #18
	orr	w0, w9, #0xf0
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	mov	w21, #128
	mov	w0, #128
	bfxil	w0, w19, #12, #6
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
LBB0_10:
	mov	w0, #128
	bfxil	w0, w19, #6, #6
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	bfxil	w21, w19, #0, #6
	ldr	w1, [x20]
	mov	x0, x21
	blr	x8
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
