	.file	"extr_i915_random.c_i915_prandom_shuffle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i915_prandom_shuffle
	.type	i915_prandom_shuffle, @function
i915_prandom_shuffle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, 1
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	cmp	rsi, 128
	ja	.L2
	xor	edi, edi
	cmp	QWORD PTR U32_MAX[rip], rdx
	setb	dil
.L2:
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L1
	test	rbp, rbp
	je	.L1
	test	r14, r14
	je	.L1
	sub	r14, 1
	je	.L1
	mov	r12, rbp
	lea	r15, 16[rsp]
	imul	r12, r14
	add	r12, QWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, 1[r14]
	mov	rsi, r13
	call	i915_prandom_u32_max_state@PLT
	mov	rbx, rax
	cmp	rax, r14
	je	.L4
	mov	rdx, rbp
	imul	rbx, rbp
	mov	rsi, r12
	mov	rdi, r15
	call	memcpy@PLT
	add	rbx, QWORD PTR 8[rsp]
	mov	rdx, rbp
	mov	rdi, r12
	mov	rsi, rbx
	call	memcpy@PLT
	mov	rdx, rbp
	mov	rsi, r15
	mov	rdi, rbx
	call	memcpy@PLT
.L4:
	sub	r12, rbp
	sub	r14, 1
	jne	.L5
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	i915_prandom_shuffle, .-i915_prandom_shuffle
	.comm	U32_MAX,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_i915_random.c_i915_prandom_shuffle.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	i915_prandom_shuffle
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_prandom_shuffle, %function
i915_prandom_shuffle:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r3
	ldr	r3, .L15
	sub	sp, sp, #140
	cmp	r1, #128
	mov	r7, r0
	mov	r6, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	movhi	r0, #1
	bhi	.L2
	ldr	r3, .L15+4
	ldr	r0, [r3]
	cmp	r0, r2
	movcs	r0, #0
	movcc	r0, #1
.L2:
	bl	WARN_ON
	cmp	r0, #0
	bne	.L1
	cmp	r4, #0
	cmpne	r6, #0
	beq	.L1
	subs	r4, r4, #1
	beq	.L1
	mla	r9, r4, r6, r7
.L5:
	mov	r1, r8
	add	r0, r4, #1
	bl	i915_prandom_u32_max_state
	cmp	r0, r4
	beq	.L4
	mla	r5, r0, r6, r7
	mov	r2, r6
	mov	r1, r9
	add	r0, sp, #4
	bl	memcpy
	mov	r1, r5
	mov	r2, r6
	mov	r0, r9
	bl	memcpy
	mov	r2, r6
	mov	r0, r5
	add	r1, sp, #4
	bl	memcpy
.L4:
	subs	r4, r4, #1
	sub	r9, r9, r6
	bne	.L5
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #140
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	U32_MAX
	.size	i915_prandom_shuffle, .-i915_prandom_shuffle
	.comm	U32_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
