	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_utf16_wchar     ## -- Begin function mbfl_filt_conv_utf16_wchar
	.p2align	4, 0x90
_mbfl_filt_conv_utf16_wchar:            ## @mbfl_filt_conv_utf16_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rcx
	movl	%edi, %r14d
	movl	(%rsi), %edx
	movl	%edi, %eax
	shll	$8, %eax
	testb	$15, %dl
	je	LBB0_1
## %bb.2:
	testl	$65280, %edx                    ## imm = 0xFF00
	movzwl	%ax, %eax
	movzbl	%r14b, %esi
	cmovnel	%eax, %esi
	movl	4(%rcx), %eax
	movzwl	%ax, %edi
	orl	%esi, %edi
	movl	%edx, %esi
	andl	$-16, %esi
	movl	%esi, (%rcx)
	movl	%edi, %ebx
	andl	$64512, %ebx                    ## imm = 0xFC00
	cmpl	$56320, %ebx                    ## imm = 0xDC00
	je	LBB0_5
## %bb.3:
	movzwl	%bx, %eax
	cmpl	$55296, %eax                    ## imm = 0xD800
	jne	LBB0_9
## %bb.4:
	shll	$16, %edi
	andl	$67043328, %edi                 ## imm = 0x3FF0000
	addl	$4194304, %edi                  ## imm = 0x400000
	movl	%edi, 4(%rcx)
	jmp	LBB0_15
LBB0_1:
	testl	$65280, %edx                    ## imm = 0xFF00
	movzbl	%r14b, %esi
	movzwl	%ax, %eax
	cmovnel	%esi, %eax
	orl	%eax, 4(%rcx)
	incl	%edx
	movl	%edx, (%rcx)
	jmp	LBB0_15
LBB0_5:
	andl	$1023, %edi                     ## imm = 0x3FF
	shrl	$6, %eax
	andl	$4193280, %eax                  ## imm = 0x3FFC00
	orl	%edi, %eax
	movl	$0, 4(%rcx)
	movq	_MBFL_WCSPLANE_SUPMIN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_8
## %bb.6:
	movq	_MBFL_WCSPLANE_SUPMAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_7
LBB0_8:
	movq	_MBFL_WCSGROUP_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_MBFL_WCSGROUP_THROUGH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
LBB0_7:
	movl	8(%rcx), %esi
	movl	%eax, %edi
	jmp	LBB0_14
LBB0_9:
	movl	$0, 4(%rcx)
	movl	%esi, %eax
	orl	$16, %eax
	movl	%eax, (%rcx)
	testb	$16, %dl
	jne	LBB0_13
## %bb.10:
	movzwl	%di, %ebx
	cmpl	$65279, %ebx                    ## imm = 0xFEFF
	je	LBB0_15
## %bb.11:
	cmpw	$-2, %di
	jne	LBB0_13
## %bb.12:
	orl	$272, %esi                      ## imm = 0x110
	andl	$-272, %eax                     ## imm = 0xFEF0
	testl	$65280, %edx                    ## imm = 0xFF00
	cmovel	%esi, %eax
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_13:
	movl	8(%rcx), %esi
LBB0_14:
	callq	*16(%rcx)
	movl	%eax, %edi
	callq	_CK
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBFL_WCSPLANE_SUPMIN,4,2       ## @MBFL_WCSPLANE_SUPMIN
	.comm	_MBFL_WCSPLANE_SUPMAX,4,2       ## @MBFL_WCSPLANE_SUPMAX
	.comm	_MBFL_WCSGROUP_MASK,4,2         ## @MBFL_WCSGROUP_MASK
	.comm	_MBFL_WCSGROUP_THROUGH,4,2      ## @MBFL_WCSGROUP_THROUGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_utf16_wchar     ; -- Begin function mbfl_filt_conv_utf16_wchar
	.p2align	2
_mbfl_filt_conv_utf16_wchar:            ; @mbfl_filt_conv_utf16_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	w9, [x1]
	and	w8, w9, #0xff00
	tst	w9, #0xf
	b.eq	LBB0_4
; %bb.1:
	ubfiz	w10, w19, #8, #8
	and	w11, w19, #0xff
	cmp	w8, #0
	csel	w10, w11, w10, eq
	ldr	w11, [x1, #4]
	and	w12, w11, #0xffff
	orr	w0, w12, w10
	and	w10, w9, #0xfffffff0
	str	w10, [x1]
	lsr	w12, w0, #10
	cmp	w12, #55
	b.eq	LBB0_5
; %bb.2:
	and	w11, w0, #0xfc00
	mov	w12, #55296
	cmp	w11, w12
	b.ne	LBB0_7
; %bb.3:
	ubfiz	w8, w0, #16, #10
	add	w8, w8, #1024, lsl #12          ; =4194304
	str	w8, [x1, #4]
	b	LBB0_14
LBB0_4:
	and	w10, w19, #0xff
	ubfiz	w11, w19, #8, #8
	cmp	w8, #0
	csel	w8, w11, w10, eq
	ldr	w10, [x1, #4]
	orr	w8, w10, w8
	add	w9, w9, #1
	stp	w9, w8, [x1]
	b	LBB0_14
LBB0_5:
	lsr	w8, w11, #6
	and	w8, w8, #0x3ffc00
	bfxil	w8, w0, #0, #10
	str	wzr, [x1, #4]
Lloh0:
	adrp	x9, _MBFL_WCSPLANE_SUPMIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBFL_WCSPLANE_SUPMIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MBFL_WCSPLANE_SUPMAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MBFL_WCSPLANE_SUPMAX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_12
; %bb.6:
Lloh6:
	adrp	x9, _MBFL_WCSGROUP_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBFL_WCSGROUP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _MBFL_WCSGROUP_THROUGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBFL_WCSGROUP_THROUGH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_11
LBB0_7:
	orr	w11, w10, #0x10
	stp	w11, wzr, [x1]
	tbnz	w9, #4, LBB0_11
; %bb.8:
	mov	w9, #65279
	cmp	w0, w9
	b.eq	LBB0_14
; %bb.9:
	mov	w9, #65534
	cmp	w0, w9
	b.ne	LBB0_11
; %bb.10:
	mov	w9, #272
	orr	w9, w10, w9
	mov	w10, #-272
	and	w10, w11, w10
	cmp	w8, #0
	csel	w8, w9, w10, eq
	str	w8, [x1]
	b	LBB0_14
LBB0_11:
	ldr	x8, [x1, #16]
	ldr	w1, [x1, #8]
	blr	x8
	b	LBB0_13
LBB0_12:
	ldr	x9, [x1, #16]
	ldr	w1, [x1, #8]
	mov	x0, x8
	blr	x9
LBB0_13:
	bl	_CK
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBFL_WCSPLANE_SUPMIN,4,2       ; @MBFL_WCSPLANE_SUPMIN
	.comm	_MBFL_WCSPLANE_SUPMAX,4,2       ; @MBFL_WCSPLANE_SUPMAX
	.comm	_MBFL_WCSGROUP_MASK,4,2         ; @MBFL_WCSGROUP_MASK
	.comm	_MBFL_WCSGROUP_THROUGH,4,2      ; @MBFL_WCSGROUP_THROUGH
.subsections_via_symbols
