	.file	"extr_vsp1_clu.c_clu_set_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clu_set_table, @function
clu_set_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	call	vsp1_dl_body_get@PLT
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR VI6_CLU_ADDR[rip]
	xor	edx, edx
	mov	rdi, rax
	mov	rbp, rax
	call	vsp1_dl_body_write@PLT
	mov	eax, DWORD PTR CLU_SIZE[rip]
	test	eax, eax
	je	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [r12]
	mov	edx, ebx
	mov	esi, DWORD PTR VI6_CLU_DATA[rip]
	mov	rdi, rbp
	add	ebx, 1
	mov	edx, DWORD PTR [rax+rdx*4]
	call	vsp1_dl_body_write@PLT
	cmp	DWORD PTR CLU_SIZE[rip], ebx
	ja	.L5
.L4:
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, rbp
	call	swap@PLT
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	vsp1_dl_body_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	clu_set_table, .-clu_set_table
	.comm	VI6_CLU_DATA,4,4
	.comm	VI6_CLU_ADDR,4,4
	.comm	ENOMEM,4,4
	.comm	CLU_SIZE,4,4
	.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_vsp1_clu.c_clu_set_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clu_set_table, %function
clu_set_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r0, [r0, #8]
	mov	r6, r1
	bl	vsp1_dl_body_get
	subs	r5, r0, #0
	beq	.L12
	ldr	r3, .L13
	ldr	r7, .L13+4
	ldr	r1, [r3]
	mov	r2, #0
	bl	vsp1_dl_body_write
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L4
	mov	r4, #0
	ldr	r8, .L13+8
.L5:
	ldr	r3, [r6]
	mov	r0, r5
	ldr	r2, [r3, r4, lsl #2]
	ldr	r1, [r8]
	bl	vsp1_dl_body_write
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L5
.L4:
	mov	r0, r9
	bl	spin_lock_irq
	mov	r1, r5
	ldr	r0, [r9, #4]
	bl	swap
	mov	r0, r9
	bl	spin_unlock_irq
	mov	r0, r5
	bl	vsp1_dl_body_put
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	VI6_CLU_ADDR
	.word	CLU_SIZE
	.word	VI6_CLU_DATA
	.word	ENOMEM
	.size	clu_set_table, .-clu_set_table
	.comm	VI6_CLU_DATA,4,4
	.comm	VI6_CLU_ADDR,4,4
	.comm	ENOMEM,4,4
	.comm	CLU_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
