	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_encoding_mbcliplen          ## -- Begin function pg_encoding_mbcliplen
	.p2align	4, 0x90
_pg_encoding_mbcliplen:                 ## @pg_encoding_mbcliplen
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	callq	_pg_encoding_max_length
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cliplen                        ## TAILCALL
LBB0_1:
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.3:
	movq	_pg_wchar_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	*%r13
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %ecx
	cmpl	%r14d, %ecx
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdx
	addq	%rdx, %rbx
	movl	%ecx, %r12d
	subl	%eax, %r15d
	jg	LBB0_4
	jmp	LBB0_9
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_7:
	movl	%r14d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pg_wchar_table,8,3             ## @pg_wchar_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_encoding_mbcliplen          ; -- Begin function pg_encoding_mbcliplen
	.p2align	2
_pg_encoding_mbcliplen:                 ; @pg_encoding_mbcliplen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_pg_encoding_max_length
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cliplen
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x8, _pg_wchar_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pg_wchar_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x23, [x8, w23, sxtw #3]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	blr	x23
	add	w8, w0, w22
	cmp	w8, w19
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, w0
	add	x21, x21, w0, sxtw
	mov	x22, x8
	cmp	w20, #0
	b.gt	LBB0_4
	b	LBB0_10
LBB0_8:
	mov	w22, #0
	b	LBB0_10
LBB0_9:
	mov	x22, x19
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pg_wchar_table,8,3             ; @pg_wchar_table
.subsections_via_symbols
