	.file	"extr_bfa_msgq.c_cmdq_sm_init_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cmdq_sm_init_wait, @function
cmdq_sm_init_wait:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 130
	je	.L2
	ja	.L3
	cmp	esi, 128
	je	.L4
	cmp	esi, 129
	jne	.L6
	mov	eax, DWORD PTR BFA_MSGQ_CMDQ_F_DB_UPDATE[rip]
	or	DWORD PTR [rdi], eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	esi, 131
	jne	.L6
.L4:
	mov	esi, DWORD PTR cmdq_sm_stopped[rip]
	jmp	bfa_fsm_set_state@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR [rdi]
	mov	eax, DWORD PTR BFA_MSGQ_CMDQ_F_DB_UPDATE[rip]
	test	edx, eax
	je	.L8
	not	eax
	and	eax, edx
	mov	DWORD PTR [rdi], eax
	mov	esi, DWORD PTR cmdq_sm_dbell_wait[rip]
	jmp	bfa_fsm_set_state@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, esi
	jmp	bfa_sm_fault@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR cmdq_sm_ready[rip]
	jmp	bfa_fsm_set_state@PLT
	.cfi_endproc
.LFE0:
	.size	cmdq_sm_init_wait, .-cmdq_sm_init_wait
	.comm	cmdq_sm_stopped,4,4
	.comm	cmdq_sm_ready,4,4
	.comm	cmdq_sm_dbell_wait,4,4
	.comm	BFA_MSGQ_CMDQ_F_DB_UPDATE,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_bfa_msgq.c_cmdq_sm_init_wait.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmdq_sm_init_wait, %function
cmdq_sm_init_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	r3, r1, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L3
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L11
	ldr	r1, [r3]
	b	bfa_fsm_set_state
.L5:
	ldr	r2, .L11+4
	ldr	r3, [r0]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L8
	bic	r3, r3, r2
	ldr	r2, .L11+8
	str	r3, [r0]
	ldr	r1, [r2]
	b	bfa_fsm_set_state
.L6:
	ldr	r2, .L11+4
	ldr	r3, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r0]
	bx	lr
.L8:
	ldr	r3, .L11+12
	ldr	r1, [r3]
	b	bfa_fsm_set_state
.L2:
	mov	r0, r1
	b	bfa_sm_fault
.L12:
	.align	2
.L11:
	.word	cmdq_sm_stopped
	.word	BFA_MSGQ_CMDQ_F_DB_UPDATE
	.word	cmdq_sm_dbell_wait
	.word	cmdq_sm_ready
	.size	cmdq_sm_init_wait, .-cmdq_sm_init_wait
	.comm	cmdq_sm_stopped,4,4
	.comm	cmdq_sm_ready,4,4
	.comm	cmdq_sm_dbell_wait,4,4
	.comm	BFA_MSGQ_CMDQ_F_DB_UPDATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
