	.file	"extr_3w-9xxx.c_twa_poll_response.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Found unexpected request id while polling for response"
	.text
	.p2align 4
	.type	twa_poll_response, @function
twa_poll_response:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	rcx, esi
	mov	r13d, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR TW_STATUS_RESPONSE_QUEUE_EMPTY[rip]
	mov	rbx, QWORD PTR [rax+rcx*8]
	call	twa_poll_status_gone@PLT
	test	rax, rax
	je	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	TW_RESPONSE_QUEUE_REG_ADDR@PLT
	mov	edi, eax
	call	readl@PLT
	xor	edi, edi
	call	TW_RESID_OUT@PLT
	cmp	r12d, eax
	jne	.L11
	mov	edi, DWORD PTR 16[rbx]
	call	TW_OP_OUT@PLT
	cmp	rax, QWORD PTR TW_OP_EXECUTE_SCSI[rip]
	je	.L12
	cmp	QWORD PTR [rbx], 0
	jne	.L5
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR TW_DRIVER[rip]
	mov	edx, 30
	lea	rcx, .LC0[rip]
	call	TW_PRINTK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L12:
	.cfi_restore_state
.L2:
	endbr64
	xor	r13d, r13d
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
.L5:
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rbp
	call	twa_fill_sense@PLT
	mov	r13d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	twa_poll_response, .-twa_poll_response
	.comm	TW_STATUS_RESPONSE_QUEUE_EMPTY,4,4
	.comm	TW_OP_EXECUTE_SCSI,8,8
	.comm	TW_DRIVER,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_3w-9xxx.c_twa_poll_response.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Found unexpected request id while polling for respo"
	.ascii	"nse\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	twa_poll_response, %function
twa_poll_response:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, .L15
	ldr	r3, [r0, #4]
	ldr	r1, [r1]
	mov	r4, r0
	ldr	r6, [r3, r5, lsl #2]
	bl	twa_poll_status_gone
	cmp	r0, #0
	beq	.L12
.L2:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r4
	bl	TW_RESPONSE_QUEUE_REG_ADDR
	bl	readl
	mov	r0, #0
	bl	TW_RESID_OUT
	cmp	r5, r0
	bne	.L13
	ldr	r0, [r6, #8]
	bl	TW_OP_OUT
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
	ldr	r0, [r6]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
.L5:
	mov	r3, #0
	mov	r1, r5
	mov	r0, r4
	mov	r2, r3
	bl	twa_fill_sense
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L15+8
	mov	r2, #30
	ldr	r1, [r3]
	ldr	r0, [r4]
	ldr	r3, .L15+12
	bl	TW_PRINTK
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, [r6, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	b	.L5
.L16:
	.align	2
.L15:
	.word	TW_STATUS_RESPONSE_QUEUE_EMPTY
	.word	TW_OP_EXECUTE_SCSI
	.word	TW_DRIVER
	.word	.LC0
	.size	twa_poll_response, .-twa_poll_response
	.comm	TW_STATUS_RESPONSE_QUEUE_EMPTY,4,4
	.comm	TW_OP_EXECUTE_SCSI,4,4
	.comm	TW_DRIVER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
