	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_filt_conv_utf32be_wchar   ## -- Begin function mbfl_filt_conv_utf32be_wchar
	.p2align	4, 0x90
_mbfl_filt_conv_utf32be_wchar:          ## @mbfl_filt_conv_utf32be_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
	cmpl	$2, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$1, %ecx
	je	LBB0_4
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.3:
	movl	$1, (%rax)
	movl	%ebx, %ecx
	shll	$24, %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_10
LBB0_5:
	movl	$3, (%rax)
	movl	%ebx, %ecx
	shll	$8, %ecx
	movzwl	%cx, %ecx
	orl	%ecx, 4(%rax)
	jmp	LBB0_10
LBB0_4:
	movl	$2, (%rax)
	movzbl	%bl, %ecx
	shll	$16, %ecx
	orl	%ecx, 4(%rax)
	jmp	LBB0_10
LBB0_6:
	movl	$0, (%rax)
	movzbl	%bl, %edi
	orl	4(%rax), %edi
	movq	_MBFL_WCSPLANE_UTF32MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jge	LBB0_8
## %bb.7:
	leal	-57344(%rdi), %ecx
	cmpl	$-2049, %ecx                    ## imm = 0xF7FF
	jbe	LBB0_9
LBB0_8:
	movq	_MBFL_WCSGROUP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_MBFL_WCSGROUP_THROUGH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
LBB0_9:
	movl	8(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*16(%rax)
	movl	%eax, %edi
	callq	_CK
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBFL_WCSPLANE_UTF32MAX,4,2     ## @MBFL_WCSPLANE_UTF32MAX
	.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_utf32be_wchar   ; -- Begin function mbfl_filt_conv_utf32be_wchar
	.p2align	2
_mbfl_filt_conv_utf32be_wchar:          ; @mbfl_filt_conv_utf32be_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]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w8, LBB0_8
; %bb.3:
	mov	w8, #1
	lsl	w9, w19, #24
	b	LBB0_7
LBB0_4:
	mov	w8, #3
	ubfiz	w9, w19, #8, #8
	b	LBB0_6
LBB0_5:
	mov	w8, #2
	ubfiz	w9, w19, #16, #8
LBB0_6:
	ldr	w10, [x1, #4]
	orr	w9, w10, w9
LBB0_7:
	stp	w8, w9, [x1]
	b	LBB0_12
LBB0_8:
	str	wzr, [x1]
	and	w8, w19, #0xff
	ldr	w9, [x1, #4]
	orr	w0, w9, w8
Lloh0:
	adrp	x8, _MBFL_WCSPLANE_UTF32MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBFL_WCSPLANE_UTF32MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.9:
	sub	w8, w0, #14, lsl #12            ; =57344
	cmn	w8, #2049
	b.ls	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _MBFL_WCSGROUP_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBFL_WCSGROUP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _MBFL_WCSGROUP_THROUGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBFL_WCSGROUP_THROUGH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_11:
	ldr	x8, [x1, #16]
	ldr	w1, [x1, #8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBFL_WCSPLANE_UTF32MAX,4,2     ; @MBFL_WCSPLANE_UTF32MAX
	.comm	_MBFL_WCSGROUP_MASK,4,2         ; @MBFL_WCSGROUP_MASK
	.comm	_MBFL_WCSGROUP_THROUGH,4,2      ; @MBFL_WCSGROUP_THROUGH
.subsections_via_symbols
