	.file	"extr_utf8.c_utf8_padcstr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	utf8_padcstr
	.type	utf8_padcstr, @function
utf8_padcstr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	utf8_cstrwidth@PLT
	cmp	rax, rbx
	jge	.L7
	mov	r12, rax
	mov	rdi, rbp
	call	strlen@PLT
	sub	rbx, r12
	lea	rdi, 1[rax+rbx]
	mov	r13, rax
	call	xmalloc@PLT
	add	rbx, r13
	mov	rdx, r13
	mov	rsi, rbp
	mov	r12, rax
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, [r12+r13]
	lea	rdx, [r12+rbx]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	BYTE PTR [rax], 32
	add	rax, 1
	cmp	rax, rdx
	jne	.L3
	mov	BYTE PTR [r12+rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	xstrdup@PLT
	.cfi_endproc
.LFE0:
	.size	utf8_padcstr, .-utf8_padcstr
	.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_utf8.c_utf8_padcstr.c"
	.text
	.align	2
	.global	utf8_padcstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_padcstr, %function
utf8_padcstr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r9, r0
	bl	utf8_cstrwidth
	cmp	r0, r4
	bge	.L7
	mov	r8, r0
	mov	r0, r9
	bl	strlen
	mov	r7, r0
	sub	r6, r4, r8
	add	r0, r6, #1
	add	r0, r0, r7
	bl	xmalloc
	mov	r1, r9
	mov	r5, r0
	mov	r2, r7
	bl	memcpy
	mov	r2, #32
	sub	r1, r4, #1
	sub	r1, r1, r8
	add	r1, r1, r7
	sub	r3, r7, #1
	add	r1, r5, r1
	add	r3, r5, r3
.L3:
	strb	r2, [r3, #1]!
	cmp	r3, r1
	bne	.L3
	mov	r3, #0
	add	r7, r5, r7
	mov	r0, r5
	strb	r3, [r7, r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	xstrdup
	.size	utf8_padcstr, .-utf8_padcstr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
