	.file	"extr_knav_qmss_acc.c_knav_acc_setup_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	knav_acc_setup_cmd, @function
knav_acc_setup_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	r12, QWORD PTR 8[rsi]
	mov	r13d, DWORD PTR 4[rsi]
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR RANGE_MULTI_QUEUE[rip], eax
	jne	.L10
	movsx	rax, ecx
	add	r13d, ecx
	xor	r14d, r14d
	sal	rax, 4
	add	r12, rax
.L3:
	mov	edx, 32
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	edx, DWORD PTR ACC_LIST_ENTRY_TYPE[rip]
	mov	QWORD PTR 16[rbp], r14
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR [r12]
	sal	edx, 18
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR 20[rbx]
	sal	eax, 16
	or	eax, r13d
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RANGE_MULTI_QUEUE[rip], eax
	je	.L4
	or	edx, DWORD PTR ACC_CFG_MULTI_QUEUE[rip]
.L4:
	mov	eax, DWORD PTR 24[rbx]
	sal	eax, 16
	or	eax, DWORD PTR 28[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	or	eax, edx
	mov	DWORD PTR 4[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rsi]
	call	BIT@PLT
	lea	r14, -1[rax]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	knav_acc_setup_cmd, .-knav_acc_setup_cmd
	.comm	RANGE_MULTI_QUEUE,4,4
	.comm	ACC_LIST_ENTRY_TYPE,4,4
	.comm	ACC_CFG_MULTI_QUEUE,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_knav_qmss_acc.c_knav_acc_setup_cmd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	knav_acc_setup_cmd, %function
knav_acc_setup_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldmib	r1, {r7, r8}
	ldr	r9, .L11
	ldr	r0, [r1]
	ldr	r6, [r9]
	mov	r4, r1
	ands	r6, r0, r6
	mov	r5, r2
	addeq	r8, r8, r3, lsl #3
	addeq	r7, r7, r3
	bne	.L10
.L3:
	mov	r2, #20
	mov	r1, #0
	mov	r0, r5
	bl	memset
	ldr	r1, [r8]
	ldr	r3, .L11+4
	ldr	lr, [r4]
	ldr	ip, [r9]
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r8, #4]
	tst	lr, ip
	ldr	r2, [r4, #16]
	str	r1, [r5, #16]
	lsl	r1, r3, #18
	ldrne	r3, .L11+8
	orr	r2, r7, r2, lsl #16
	ldrne	r3, [r3]
	str	r2, [r5]
	orrne	r1, r1, r3
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #24]
	str	r0, [r5, #8]
	orr	r3, r3, r2, lsl #16
	orr	r3, r3, r1
	str	r6, [r5, #12]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r0, [r1, #12]
	bl	BIT
	sub	r6, r0, #1
	b	.L3
.L12:
	.align	2
.L11:
	.word	RANGE_MULTI_QUEUE
	.word	ACC_LIST_ENTRY_TYPE
	.word	ACC_CFG_MULTI_QUEUE
	.size	knav_acc_setup_cmd, .-knav_acc_setup_cmd
	.comm	RANGE_MULTI_QUEUE,4,4
	.comm	ACC_LIST_ENTRY_TYPE,4,4
	.comm	ACC_CFG_MULTI_QUEUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
