	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_ucs4_wchar      ## -- Begin function mbfl_filt_conv_ucs4_wchar
	.p2align	4, 0x90
_mbfl_filt_conv_ucs4_wchar:             ## @mbfl_filt_conv_ucs4_wchar
	.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
	movq	%rsi, %rax
	movl	%edi, %ebx
	movl	(%rsi), %ecx
	cmpb	$2, %cl
	je	LBB0_6
## %bb.1:
	movl	%ebx, %edx
	cmpb	$1, %cl
	je	LBB0_5
## %bb.2:
	shll	$24, %edx
	testb	%cl, %cl
	jne	LBB0_7
## %bb.3:
	testl	$65280, %ecx                    ## imm = 0xFF00
	movzbl	%bl, %esi
	cmovel	%edx, %esi
	movl	%esi, 4(%rax)
	jmp	LBB0_4
LBB0_6:
	movzbl	%bl, %edx
	shll	$16, %edx
	movl	%ebx, %esi
	shll	$8, %esi
	testl	$65280, %ecx                    ## imm = 0xFF00
	movzwl	%si, %esi
	cmovnel	%edx, %esi
	orl	%esi, 4(%rax)
	jmp	LBB0_4
LBB0_5:
	shll	$8, %edx
	movzbl	%bl, %esi
	shll	$16, %esi
	testl	$65280, %ecx                    ## imm = 0xFF00
	movzwl	%dx, %edx
	cmovel	%esi, %edx
	orl	%edx, 4(%rax)
LBB0_4:
	incl	%ecx
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_7:
	testl	$65280, %ecx                    ## imm = 0xFF00
	movzbl	%bl, %edi
	cmovnel	%edx, %edi
	orl	4(%rax), %edi
	cmpl	$-131072, %edi                  ## imm = 0xFFFE0000
	jne	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	testl	$65280, %ecx                    ## imm = 0xFF00
	sete	%dl
	shll	$8, %edx
	movl	%edx, (%rax)
	movl	8(%rax), %esi
	movl	$65279, %edi                    ## imm = 0xFEFF
	jmp	LBB0_10
LBB0_9:
	andl	$-256, %ecx
	movl	%ecx, (%rax)
	movl	8(%rax), %esi
LBB0_10:
	callq	*16(%rax)
	movl	%eax, %edi
	callq	_CK
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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_ucs4_wchar      ; -- Begin function mbfl_filt_conv_ucs4_wchar
	.p2align	2
_mbfl_filt_conv_ucs4_wchar:             ; @mbfl_filt_conv_ucs4_wchar
	.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
	mov	x19, x0
	ldr	w8, [x1]
	and	w9, w8, #0xff00
	and	w10, w8, #0xff
	cmp	w10, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w10, LBB0_8
; %bb.3:
	and	w10, w19, #0xff
	lsl	w11, w19, #24
	cmp	w9, #0
	csel	w9, w11, w10, eq
	b	LBB0_7
LBB0_4:
	ubfiz	w10, w19, #16, #8
	ubfiz	w11, w19, #8, #8
	b	LBB0_6
LBB0_5:
	ubfiz	w10, w19, #8, #8
	ubfiz	w11, w19, #16, #8
LBB0_6:
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w10, [x1, #4]
	orr	w9, w10, w9
LBB0_7:
	add	w8, w8, #1
	stp	w8, w9, [x1]
	b	LBB0_12
LBB0_8:
	lsl	w10, w19, #24
	and	w11, w19, #0xff
	cmp	w9, #0
	csel	w10, w11, w10, eq
	ldr	w11, [x1, #4]
	orr	w0, w11, w10
	cmn	w0, #32, lsl #12                ; =131072
	b.ne	LBB0_10
; %bb.9:
	cmp	w9, #0
	cset	w8, eq
	lsl	w8, w8, #8
	str	w8, [x1]
	ldr	x8, [x1, #16]
	ldr	w1, [x1, #8]
	mov	w0, #65279
	b	LBB0_11
LBB0_10:
	and	w8, w8, #0xffffff00
	str	w8, [x1]
	ldr	x8, [x1, #16]
	ldr	w1, [x1, #8]
LBB0_11:
	blr	x8
	bl	_CK
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
