	.file	"extr_mbutils.c_pg_encoding_mbcliplen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pg_encoding_mbcliplen
	.type	pg_encoding_mbcliplen, @function
pg_encoding_mbcliplen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rbx, edi
	mov	edi, ebx
	call	pg_encoding_max_length@PLT
	cmp	eax, 1
	je	.L12
	mov	rax, QWORD PTR pg_wchar_table[rip]
	xor	r14d, r14d
	mov	rbx, QWORD PTR [rax+rbx*8]
	test	r13d, r13d
	jg	.L3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	rbx
	lea	edx, [rax+r14]
	cmp	edx, r12d
	jg	.L1
	je	.L7
	sub	r13d, eax
	cdqe
	mov	r14d, edx
	add	rbp, rax
	test	r13d, r13d
	jle	.L1
.L3:
	cmp	BYTE PTR 0[rbp], 0
	jne	.L5
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	cliplen@PLT
	.cfi_endproc
.LFE0:
	.size	pg_encoding_mbcliplen, .-pg_encoding_mbcliplen
	.comm	pg_wchar_table,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mbutils.c_pg_encoding_mbcliplen.c"
	.text
	.align	2
	.global	pg_encoding_mbcliplen
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_encoding_mbcliplen, %function
pg_encoding_mbcliplen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r7, r3
	mov	r6, r0
	bl	pg_encoding_max_length
	cmp	r0, #1
	beq	.L11
	ldr	r3, .L12
	cmp	r5, #0
	ldr	r3, [r3]
	ldr	r8, [r3, r6, lsl #2]
	mov	r6, #0
	bgt	.L3
	b	.L1
.L5:
	mov	r0, r4
	blx	r8
	add	r2, r0, r6
	cmp	r2, r7
	sub	r5, r5, r0
	bgt	.L1
	beq	.L7
	cmp	r5, #0
	mov	r6, r2
	add	r4, r4, r0
	ble	.L1
.L3:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r6, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	cliplen
.L13:
	.align	2
.L12:
	.word	pg_wchar_table
	.size	pg_encoding_mbcliplen, .-pg_encoding_mbcliplen
	.comm	pg_wchar_table,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
