	.file	"extr_qib_sdma.c_sdma_set_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdma_set_state, @function
sdma_set_state:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 12[rdi]
	mov	DWORD PTR 12[rdi], esi
	mov	esi, esi
	mov	DWORD PTR 8[rdi], eax
	mov	eax, DWORD PTR 20[rdi]
	mov	DWORD PTR 16[rdi], eax
	lea	rax, [rsi+rsi*2]
	xor	esi, esi
	sal	rax, 4
	add	rax, QWORD PTR 32[rdi]
	cmp	QWORD PTR 40[rax], 0
	je	.L2
	mov	esi, DWORD PTR QIB_SDMA_SENDCTRL_OP_ENABLE[rip]
.L2:
	cmp	QWORD PTR 32[rax], 0
	je	.L3
	or	esi, DWORD PTR QIB_SDMA_SENDCTRL_OP_INTENABLE[rip]
.L3:
	cmp	QWORD PTR 24[rax], 0
	je	.L4
	or	esi, DWORD PTR QIB_SDMA_SENDCTRL_OP_HALT[rip]
.L4:
	cmp	QWORD PTR 16[rax], 0
	je	.L5
	or	esi, DWORD PTR QIB_SDMA_SENDCTRL_OP_DRAIN[rip]
.L5:
	cmp	QWORD PTR 8[rax], 0
	je	.L6
	mov	DWORD PTR 24[rdi], 0
.L6:
	cmp	QWORD PTR [rax], 0
	je	.L7
	mov	DWORD PTR 24[rdi], 1
.L7:
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR 20[rdi], esi
	jmp	[QWORD PTR [rax]]
	.cfi_endproc
.LFE0:
	.size	sdma_set_state, .-sdma_set_state
	.comm	QIB_SDMA_SENDCTRL_OP_INTENABLE,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_HALT,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_ENABLE,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_DRAIN,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_qib_sdma.c_sdma_set_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdma_set_state, %function
sdma_set_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, lr}
	ldr	lr, [r0, #24]
	add	r2, r1, r1, lsl #1
	add	ip, lr, r2, lsl #3
	ldr	r1, [ip, #20]
	ldr	r4, [r0, #8]
	str	r3, [r0, #8]
	ldr	r3, [r0, #16]
	cmp	r1, #0
	str	r3, [r0, #12]
	ldrne	r3, .L26
	lsl	r2, r2, #3
	ldrne	r1, [r3]
	ldr	r3, [ip, #16]
	str	r4, [r0, #4]
	cmp	r3, #0
	ldrne	r3, .L26+4
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	ldr	r3, [ip, #12]
	cmp	r3, #0
	ldrne	r3, .L26+8
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	ldr	r3, [ip, #8]
	cmp	r3, #0
	ldrne	r3, .L26+12
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	ldr	r3, [ip, #4]
	cmp	r3, #0
	movne	r3, #0
	strne	r3, [r0, #20]
	ldr	r3, [lr, r2]
	str	r1, [r0, #16]
	cmp	r3, #0
	movne	r3, #1
	pop	{r4, lr}
	strne	r3, [r0, #20]
	ldr	r3, [r0]
	ldr	r3, [r3]
	bx	r3
.L27:
	.align	2
.L26:
	.word	QIB_SDMA_SENDCTRL_OP_ENABLE
	.word	QIB_SDMA_SENDCTRL_OP_INTENABLE
	.word	QIB_SDMA_SENDCTRL_OP_HALT
	.word	QIB_SDMA_SENDCTRL_OP_DRAIN
	.size	sdma_set_state, .-sdma_set_state
	.comm	QIB_SDMA_SENDCTRL_OP_INTENABLE,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_HALT,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_ENABLE,4,4
	.comm	QIB_SDMA_SENDCTRL_OP_DRAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
