	.file	"extr_1564.c_create_rand_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	create_rand_string
	.type	create_rand_string, @function
create_rand_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	mov	r9d, 8
	mov	r8, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ecx, DWORD PTR [rdx]
	lea	r11, table.1925[rip]
	movabs	r10, -8925843906633654007
	mov	eax, ecx
	cdq
	idiv	esi
	cmp	edx, 8
	cmovl	edx, r9d
	lea	eax, -2[rdx]
	mov	r9, rax
	lea	rbx, 1[rdi+rax]
	.p2align 4,,10
	.p2align 3
.L2:
	imul	ecx, ecx, 214013
	add	r8, 1
	add	ecx, 2531011
	sar	ecx, 3
	movsx	rsi, ecx
	mov	rdx, rsi
	shr	rdx
	mov	rax, rdx
	mul	r10
	shr	rdx, 4
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	add	rax, rax
	sub	rsi, rax
	movzx	eax, BYTE PTR [r11+rsi]
	mov	BYTE PTR -1[r8], al
	cmp	r8, rbx
	jne	.L2
	movsx	r9, r9d
	mov	BYTE PTR 1[rdi+r9], 0
	lea	rax, 2[r9]
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	DWORD PTR 0[rbp], ecx
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	create_rand_string, .-create_rand_string
	.section	.rodata
	.align 32
	.type	table.1925, @object
	.size	table.1925, 63
table.1925:
	.string	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	.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_1564.c_create_rand_string.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	create_rand_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_rand_string, %function
create_rand_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r2]
	mov	r5, r0
	mov	r0, r4
	mov	r6, r2
	bl	__aeabi_idivmod
	cmp	r1, #8
	movge	r0, r1
	movlt	r0, #8
	ldr	r8, .L6
	sub	ip, r0, #1
	ldr	r7, .L6+4
	ldr	r2, .L6+8
	ldr	lr, .L6+12
	add	ip, r5, ip
.L2:
	mla	r4, r7, r4, r2
	asr	r4, r4, #3
	lsr	r3, r4, #1
	umull	r1, r3, lr, r3
	lsr	r3, r3, #4
	rsb	r3, r3, r3, lsl #5
	sub	r3, r4, r3, lsl #1
	ldrb	r3, [r8, r3]	@ zero_extendqisi2
	strb	r3, [r5], #1
	cmp	ip, r5
	bne	.L2
	mov	r3, #0
	strb	r3, [ip]
	str	r4, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	.LANCHOR0
	.word	214013
	.word	2531011
	.word	-2078209981
	.size	create_rand_string, .-create_rand_string
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	table.4209, %object
	.size	table.4209, 63
table.4209:
	.ascii	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno"
	.ascii	"pqrstuvwxyz\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
