	.file	"extr_m88rs2000.c_m88rs2000_tab_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	m88rs2000_tab_set, @function
m88rs2000_tab_set:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L24
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 3060[rsi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
.L12:
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 16
	je	.L4
	jg	.L5
	test	eax, eax
	je	.L6
	cmp	eax, 1
	jne	.L8
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r12
	call	m88rs2000_writereg@PLT
	test	eax, eax
	jns	.L6
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	eax, 255
	jne	.L8
	cmp	DWORD PTR 4[rbx], 170
	je	.L25
.L6:
	add	rbx, 12
	cmp	rbp, rbx
	jne	.L12
.L11:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	test	edi, edi
	jle	.L6
	call	mdelay@PLT
	add	rbx, 12
	cmp	rbp, rbx
	jne	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	cmp	DWORD PTR 8[rbx], 255
	je	.L11
	add	rbx, 12
	cmp	rbp, rbx
	jne	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	m88rs2000_tab_set, .-m88rs2000_tab_set
	.comm	ENODEV,4,4
	.comm	EINVAL,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_m88rs2000.c_m88rs2000_tab_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	m88rs2000_tab_set, %function
m88rs2000_tab_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	addne	r5, r4, #3056
	movne	r6, r0
	addne	r5, r5, #4
	beq	.L8
.L12:
	ldr	r3, [r4]
	cmp	r3, #16
	beq	.L4
	bgt	.L5
	cmp	r3, #0
	beq	.L6
	cmp	r3, #1
	bne	.L8
	ldmib	r4, {r1, r2}
	mov	r0, r6
	bl	m88rs2000_writereg
	cmp	r0, #0
	bge	.L6
	ldr	r3, .L24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	cmp	r3, #255
	bne	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #170
	beq	.L23
.L6:
	add	r4, r4, #12
	cmp	r5, r4
	bne	.L12
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L24+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	ble	.L6
	add	r4, r4, #12
	bl	mdelay
	cmp	r5, r4
	bne	.L12
	b	.L11
.L23:
	ldr	r3, [r4, #8]
	cmp	r3, #255
	beq	.L11
	add	r4, r4, #12
	cmp	r5, r4
	bne	.L12
	b	.L11
.L25:
	.align	2
.L24:
	.word	ENODEV
	.word	EINVAL
	.size	m88rs2000_tab_set, .-m88rs2000_tab_set
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
