	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_utf16be   ## -- Begin function mbfl_filt_conv_wchar_utf16be
	.p2align	4, 0x90
_mbfl_filt_conv_wchar_utf16be:          ## @mbfl_filt_conv_wchar_utf16be
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	movq	_MBFL_WCSPLANE_UCS2MAX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_4
## %bb.2:
	movzbl	%bh, %edi
	jmp	LBB0_3
LBB0_4:
	movq	_MBFL_WCSPLANE_SUPMIN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_7
## %bb.5:
	movq	_MBFL_WCSPLANE_SUPMAX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_7
## %bb.6:
	movl	%ebx, %r15d
	sarl	$10, %r15d
	addl	$-64, %r15d
	movl	%r15d, %eax
	shrl	$8, %eax
	orl	$216, %eax
	movzbl	%al, %edi
	movl	(%r14), %esi
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_CK
	movzbl	%r15b, %edi
	movl	(%r14), %esi
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %edi
	shrl	$8, %edi
	andl	$3, %edi
	orl	$220, %edi
LBB0_3:
	movl	(%r14), %esi
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_CK
	movzbl	%bl, %edi
	movl	(%r14), %esi
	callq	*8(%r14)
	jmp	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_mbfl_filt_conv_illegal_output
LBB0_8:
	movl	%eax, %edi
	callq	_CK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBFL_WCSPLANE_UCS2MAX,4,2      ## @MBFL_WCSPLANE_UCS2MAX
	.comm	_MBFL_WCSPLANE_SUPMIN,4,2       ## @MBFL_WCSPLANE_SUPMIN
	.comm	_MBFL_WCSPLANE_SUPMAX,4,2       ## @MBFL_WCSPLANE_SUPMAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_wchar_utf16be   ; -- Begin function mbfl_filt_conv_wchar_utf16be
	.p2align	2
_mbfl_filt_conv_wchar_utf16be:          ; @mbfl_filt_conv_wchar_utf16be
	.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
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MBFL_WCSPLANE_UCS2MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBFL_WCSPLANE_UCS2MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ubfx	w0, w19, #8, #8
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _MBFL_WCSPLANE_SUPMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBFL_WCSPLANE_SUPMIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MBFL_WCSPLANE_SUPMAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBFL_WCSPLANE_SUPMAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, le
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_mbfl_filt_conv_illegal_output
	b	LBB0_7
LBB0_5:
	asr	w8, w19, #10
	sub	w21, w8, #64
	ldr	x8, [x20, #8]
	lsr	w9, w21, #8
	and	w9, w9, #0xff
	mov	w10, #216
	orr	w0, w9, w10
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	and	w0, w21, #0xff
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	mov	w0, #220
	bfxil	w0, w19, #8, #2
LBB0_6:
	ldr	w1, [x20]
	blr	x8
	bl	_CK
	ldr	x8, [x20, #8]
	and	w0, w19, #0xff
	ldr	w1, [x20]
	blr	x8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBFL_WCSPLANE_UCS2MAX,4,2      ; @MBFL_WCSPLANE_UCS2MAX
	.comm	_MBFL_WCSPLANE_SUPMIN,4,2       ; @MBFL_WCSPLANE_SUPMIN
	.comm	_MBFL_WCSPLANE_SUPMAX,4,2       ; @MBFL_WCSPLANE_SUPMAX
.subsections_via_symbols
