	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_perm                      ## -- Begin function rand_perm
	.p2align	4, 0x90
_rand_perm:                             ## @rand_perm
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movslq	%edi, %r15
	leaq	(,%r15,4), %rdi
	callq	_dl_malloc
	movq	%rax, %r12
	movl	$1, %edi
	callq	_usleep
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_clock_gettime
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	imull	$123456789, -40(%rbp), %eax     ## imm = 0x75BCD15
	imull	$987654321, -48(%rbp), %edi     ## imm = 0x3ADE68B1
	addl	%eax, %edi
	callq	_srand
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	leaq	1(%rbx), %rcx
	cltd
	idivl	%ecx
	movl	%edx, (%r12,%rbx,4)
	movq	%rcx, %rbx
	cmpq	%rcx, %r14
	jne	LBB0_2
LBB0_3:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_perm                      ; -- Begin function rand_perm
	.p2align	2
_rand_perm:                             ; @rand_perm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	sbfiz	x0, x20, #2, #32
	bl	_dl_malloc
	mov	x19, x0
	mov	w0, #1
	bl	_usleep
Lloh0:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_clock_gettime
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	mov	w8, #52501
	movk	w8, #1883, lsl #16
	ldr	w9, [sp, #8]
	ldr	w10, [sp]
	mul	w8, w9, w8
	mov	w9, #26801
	movk	w9, #15070, lsl #16
	madd	w0, w10, w9, w8
	bl	_srand
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	w20, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	add	x8, x21, #1
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	str	w9, [x19, x21, lsl #2]
	mov	x21, x8
	cmp	x20, x8
	b.ne	LBB0_2
LBB0_3:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
.subsections_via_symbols
