	.file	"extr_sli4.c_sli_queue_arm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"should only be used for EQ/CQ, not %s\n"
	.text
	.p2align 4
	.globl	sli_queue_arm
	.type	sli_queue_arm, @function
sli_queue_arm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rsi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ocs_lock@PLT
	movsx	rax, DWORD PTR [rbx]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	mov	rdx, QWORD PTR SLI_QNAME[rip]
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rdx+rax*4]
	call	ocs_log_test@PLT
.L5:
	mov	rdi, r13
	call	ocs_unlock@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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r12d
	call	sli_eq_doorbell@PLT
.L8:
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	ecx, eax
	mov	edi, DWORD PTR 0[rbp]
	call	ocs_reg_write32@PLT
	mov	DWORD PTR 8[rbx], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r12d
	call	sli_cq_doorbell@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sli_queue_arm, .-sli_queue_arm
	.comm	SLI_QNAME,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_sli4.c_sli_queue_arm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"should only be used for EQ/CQ, not %s\012\000"
	.text
	.align	2
	.global	sli_queue_arm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sli_queue_arm, %function
sli_queue_arm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	add	r7, r1, #4
	mov	r6, r0
	mov	r0, r7
	mov	r5, r2
	bl	ocs_lock
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	beq	.L3
	ldr	r2, .L10
	ldr	r0, [r6]
	ldr	r2, [r2]
	ldr	r1, .L10+4
	ldr	r2, [r2, r3, lsl #2]
	bl	ocs_log_test
.L5:
	mov	r0, r7
	bl	ocs_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r2, r5
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #8]
	bl	sli_eq_doorbell
.L8:
	mov	r3, r0
	ldr	r2, [r4, #12]
	ldr	r0, [r6]
	ldr	r1, [r4, #16]
	bl	ocs_reg_write32
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L5
.L3:
	mov	r2, r5
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #8]
	bl	sli_cq_doorbell
	b	.L8
.L11:
	.align	2
.L10:
	.word	SLI_QNAME
	.word	.LC0
	.size	sli_queue_arm, .-sli_queue_arm
	.comm	SLI_QNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
