	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_alphastr                  ## -- Begin function rand_alphastr
	.p2align	4, 0x90
_rand_alphastr:                         ## @rand_alphastr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L___const.rand_alphastr.alphaset(%rip), %r15
	movabsq	$1117984489315730401, %r12      ## imm = 0xF83E0F83E0F83E1
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	movq	%rcx, %rax
	mulq	%r12
	shrq	%rdx
	movl	%edx, %eax
	shll	$5, %eax
	addl	%edx, %eax
	subl	%eax, %ecx
	movl	%ecx, (%rbx)
	movl	$-1, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	addl	%eax, %r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand_next
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$4, %r14d
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	shrl	$11, %ecx
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$31, %edx
	movsbl	(%rdx,%r15), %edx
	movl	%edx, (%rbx)
	andl	$31, %ecx
	movsbl	(%rcx,%r15), %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$19, %eax
	shrq	$27, %rcx
	andl	$31, %eax
	movsbl	(%rax,%r15), %eax
	movl	%eax, 8(%rbx)
	movsbl	(%rcx,%r15), %eax
	movl	%eax, 12(%rbx)
	addq	$12, %rbx
	movl	$-4, %eax
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.rand_alphastr.alphaset
L___const.rand_alphastr.alphaset:
	.asciz	"abcdefghijklmnopqrstuvw012345678"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_alphastr                  ; -- Begin function rand_alphastr
	.p2align	2
_rand_alphastr:                         ; @rand_alphastr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, l___const.rand_alphastr.alphaset@PAGE
Lloh1:
	add	x21, x21, l___const.rand_alphastr.alphaset@PAGEOFF
	mov	x22, #33761
	movk	x22, #15887, lsl #16
	movk	x22, #57592, lsl #32
	movk	x22, #3971, lsl #48
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x0
	sxtw	x8, w8
	umulh	x8, x8, x22
	lsr	x8, x8, #1
	add	w8, w8, w8, lsl #5
	sub	w8, w0, w8
	str	w8, [x20]
	mov	w8, #-1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	adds	w19, w19, w8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand_next
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w19, #4
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x8, x0, #3, #5
	ldrsb	w8, [x21, x8]
	ubfx	x9, x0, #11, #5
	ldrsb	w9, [x21, x9]
	stp	w8, w9, [x20]
	mov	w8, w0
	lsr	x8, x8, #27
	ubfx	x9, x0, #19, #5
	ldrsb	w9, [x21, x9]
	ldrsb	w8, [x21, x8]
	str	w9, [x20, #8]
	str	w8, [x20, #12]!
	mov	w8, #-4
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.rand_alphastr.alphaset:       ; @__const.rand_alphastr.alphaset
	.asciz	"abcdefghijklmnopqrstuvw012345678"

.subsections_via_symbols
