	.file	"extr_wa-xfer.c_wa_xfer_result_chew.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xfer %p#%u: bTransferStatus 0x%02x (seg %u)\n"
	.align 8
.LC1:
	.string	"xfer %p#%u: Bad segment state %u\n"
	.align 8
.LC2:
	.string	"DTI: xfer %p#%u failed (0x%02x)\n"
	.align 8
.LC3:
	.string	"DTI: URB max acceptable errors exceeded, resetting device\n"
	.align 8
.LC4:
	.string	"xfer %p#%u: can't submit DTI data phase: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"xfer %p#%u: bad segment\n"
	.text
	.p2align 4
	.type	wa_xfer_result_chew, @function
wa_xfer_result_chew:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 16[rsi]
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 24[rdi]
	mov	r13, QWORD PTR 16[rdi]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	spin_lock_irqsave@PLT
	mov	r12d, DWORD PTR 0[r13]
	xor	edi, edi
	and	r12d, 127
	cmp	QWORD PTR [r15], r12
	setbe	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L50
	mov	rax, QWORD PTR 64[r15]
	mov	r11, QWORD PTR 8[r13]
	mov	rcx, r12
	mov	rdx, r15
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	mov	rbx, QWORD PTR [rax+r12*8]
	mov	rax, QWORD PTR 56[r15]
	mov	r8, r11
	mov	QWORD PTR 16[rsp], r11
	mov	rax, QWORD PTR [rax]
	mov	r9, QWORD PTR [rbx]
	mov	QWORD PTR 24[rsp], rax
	call	dev_dbg@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR WA_SEG_ABORTED[rip]
	je	.L43
	cmp	rax, QWORD PTR WA_SEG_ERROR[rip]
	mov	r11, QWORD PTR 16[rsp]
	je	.L43
	cmp	rax, QWORD PTR WA_SEG_SUBMITTED[rip]
	mov	rdx, QWORD PTR WA_SEG_PENDING[rip]
	je	.L51
	cmp	rax, rdx
	je	.L8
	xor	eax, eax
	mov	QWORD PTR 16[rsp], r11
	call	printk_ratelimit@PLT
	mov	r11, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L52
.L9:
	mov	rax, QWORD PTR WA_SEG_PENDING[rip]
	mov	QWORD PTR [rbx], rax
.L8:
	test	r11b, -128
	jne	.L53
	cmp	QWORD PTR 48[r15], 0
	jne	.L54
	mov	rax, QWORD PTR WA_SEG_DONE[rip]
	mov	edi, DWORD PTR 16[r13]
	mov	QWORD PTR [rbx], rax
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	DWORD PTR 8[rbx], eax
	add	DWORD PTR 32[r15], 1
	call	rpipe_avail_inc@PLT
	mov	ebx, eax
.L48:
	mov	rdi, r15
	call	__wa_xfer_is_done@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	rbp, rax
	call	spin_unlock_irqrestore@PLT
	test	rbp, rbp
	je	.L22
	mov	rdi, r15
	call	wa_xfer_completion@PLT
.L22:
	test	ebx, ebx
	je	.L1
	mov	rdi, QWORD PTR 24[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	wa_xfer_delayed_run@PLT
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	mov	rax, QWORD PTR WA_SEG_DTI_PENDING[rip]
	mov	edx, DWORD PTR EINPROGRESS[rip]
	xor	edi, edi
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	add	edx, DWORD PTR 40[rax]
	sete	dil
	call	BUG_ON@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 24[r15]
	mov	rax, r12
	cmp	QWORD PTR 40[r15], 0
	je	.L13
	imul	rax, QWORD PTR 8[r15]
	add	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 32[rdx], rax
	mov	eax, DWORD PTR URB_NO_TRANSFER_DMA_MAP[rip]
	or	DWORD PTR 16[rdx], eax
.L14:
	mov	edi, DWORD PTR 16[r13]
	mov	QWORD PTR 16[rsp], rdx
	call	le32_to_cpu@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	QWORD PTR 8[rdx], rax
	mov	QWORD PTR [rdi], rbx
	call	usb_submit_urb@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L15
.L43:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rsi, QWORD PTR 24[r15]
	mov	rdi, rbp
	call	wa_urb_dequeue@PLT
	xor	eax, eax
	call	printk_ratelimit@PLT
	test	rax, rax
	jne	.L55
.L4:
	mov	edx, DWORD PTR EDC_ERROR_TIMEFRAME[rip]
	mov	esi, DWORD PTR EDC_MAX_ERRORS[rip]
	mov	rdi, rbp
	call	edc_inc@PLT
	test	rax, rax
	jne	.L56
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	mov	r8, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r12
	mov	rdx, r15
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r11, QWORD PTR 16[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L51:
	mov	QWORD PTR [rbx], rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L56:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	wa_reset_all@PLT
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r12
	mov	rdx, r15
	xor	eax, eax
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdi, r11
	mov	QWORD PTR 16[rsp], r11
	call	wa_xfer_status_to_errno@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 12[rbx]
	mov	rdx, r15
	mov	DWORD PTR 8[rbx], eax
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	r8, r11
	call	dev_err@PLT
.L11:
	mov	rax, QWORD PTR WA_SEG_ERROR[rip]
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR 32[r15], 1
	call	rpipe_avail_inc@PLT
	mov	rdi, r15
	mov	ebx, eax
	call	__wa_xfer_abort@PLT
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L13:
	imul	rax, QWORD PTR 8[r15]
	add	rax, QWORD PTR [rcx]
	mov	QWORD PTR 24[rdx], rax
	mov	eax, DWORD PTR URB_NO_TRANSFER_DMA_MAP[rip]
	not	eax
	and	DWORD PTR 16[rdx], eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR EDC_ERROR_TIMEFRAME[rip]
	mov	esi, DWORD PTR EDC_MAX_ERRORS[rip]
	mov	rdi, rbp
	call	edc_inc@PLT
	test	rax, rax
	jne	.L57
.L17:
	xor	eax, eax
	call	printk_ratelimit@PLT
	test	rax, rax
	jne	.L58
.L21:
	mov	DWORD PTR 8[rbx], r13d
	jmp	.L11
.L57:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, rbp
	call	wa_reset_all@PLT
	jmp	.L17
.L58:
	mov	rdi, QWORD PTR 8[rsp]
	mov	r8d, r13d
	mov	rcx, r12
	mov	rdx, r15
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	wa_xfer_result_chew, .-wa_xfer_result_chew
	.comm	WA_SEG_SUBMITTED,8,8
	.comm	WA_SEG_PENDING,8,8
	.comm	WA_SEG_ERROR,8,8
	.comm	WA_SEG_DTI_PENDING,8,8
	.comm	WA_SEG_DONE,8,8
	.comm	WA_SEG_ABORTED,8,8
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	EINPROGRESS,4,4
	.comm	EDC_MAX_ERRORS,4,4
	.comm	EDC_ERROR_TIMEFRAME,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_wa-xfer.c_wa_xfer_result_chew.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xfer %p#%u: bTransferStatus 0x%02x (seg %u)\012\000"
	.align	2
.LC1:
	.ascii	"xfer %p#%u: Bad segment state %u\012\000"
	.align	2
.LC2:
	.ascii	"DTI: xfer %p#%u failed (0x%02x)\012\000"
	.align	2
.LC3:
	.ascii	"DTI: URB max acceptable errors exceeded, resetting "
	.ascii	"device\012\000"
	.align	2
.LC4:
	.ascii	"xfer %p#%u: can't submit DTI data phase: %d\012\000"
	.align	2
.LC5:
	.ascii	"xfer %p#%u: bad segment\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wa_xfer_result_chew, %function
wa_xfer_result_chew:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r1
	ldr	r8, [r0, #8]
	add	r9, r1, #8
	sub	sp, sp, #20
	mov	r1, #0
	mov	r0, r9
	ldr	r10, [r5, #12]
	bl	spin_lock_irqsave
	ldr	r6, [r8]
	ldr	r0, [r4]
	and	r6, r6, #127
	cmp	r0, r6
	movhi	r0, #0
	movls	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L50
	ldr	r2, [r4, #32]
	ldr	r3, [r4, #28]
	ldr	r7, [r2, r6, lsl #2]
	ldr	r3, [r3]
	ldr	r2, [r7]
	ldr	fp, [r8, #4]
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	mov	r3, r6
	mov	r2, r4
	mov	r0, r10
	ldr	r1, .L58
	str	fp, [sp]
	bl	dev_dbg
	ldr	r2, .L58+4
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L43
	ldr	r2, .L58+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L43
	ldr	r2, .L58+12
	ldr	r1, .L58+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r3, r2
	streq	r1, [r7]
	beq	.L8
	cmp	r3, r1
	beq	.L8
	bl	printk_ratelimit
	cmp	r0, #0
	bne	.L51
.L9:
	ldr	r3, .L58+16
	ldr	r3, [r3]
	str	r3, [r7]
.L8:
	tst	fp, #128
	bne	.L52
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L53
	ldr	r3, .L58+20
	ldr	r0, [r8, #8]
	ldr	r3, [r3]
	str	r3, [r7]
	bl	le32_to_cpu
	ldr	r3, [r4, #16]
	str	r0, [r7, #4]
	add	r3, r3, #1
	ldr	r0, [sp, #8]
	str	r3, [r4, #16]
	bl	rpipe_avail_inc
	mov	r5, r0
.L48:
	mov	r0, r4
	bl	__wa_xfer_is_done
	mov	r6, r0
	mov	r1, #0
	mov	r0, r9
	bl	spin_unlock_irqrestore
	cmp	r6, #0
	beq	.L22
	mov	r0, r4
	bl	wa_xfer_completion
.L22:
	cmp	r5, #0
	beq	.L1
	ldr	r0, [sp, #8]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	wa_xfer_delayed_run
.L53:
	ldr	r2, [r5, #4]
	ldr	r1, .L58+24
	ldr	r3, .L58+28
	ldr	r1, [r1]
	ldr	r2, [r2, #20]
	ldr	r3, [r3]
	cmn	r2, r1
	moveq	r0, #1
	movne	r0, #0
	str	r3, [r7]
	bl	BUG_ON
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #4]
	cmp	r3, #0
	ldr	r3, [r4, #12]
	beq	.L13
	ldr	r0, [r3, #4]
	ldr	r2, .L58+32
	ldr	r3, [r5, #4]
	mla	r1, r6, r1, r0
	ldr	r0, [r2]
	ldr	r2, [r3, #8]
	str	r1, [r3, #16]
	orr	r2, r2, r0
	str	r2, [r3, #8]
.L14:
	ldr	r0, [r8, #8]
	str	r3, [sp, #12]
	bl	le32_to_cpu
	ldr	r3, [sp, #12]
	ldr	r2, [r5, #4]
	str	r0, [r3, #4]
	ldr	r3, .L58+36
	mov	r0, r2
	ldr	r1, [r3]
	str	r7, [r2]
	bl	usb_submit_urb
	subs	r8, r0, #0
	blt	.L15
.L43:
	mov	r0, r9
	mov	r1, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_irqrestore
.L50:
	mov	r1, #0
	mov	r0, r9
	bl	spin_unlock_irqrestore
	ldr	r1, [r4, #12]
	mov	r0, r5
	bl	wa_urb_dequeue
	bl	printk_ratelimit
	cmp	r0, #0
	bne	.L54
.L4:
	ldr	r3, .L58+40
	ldr	r2, .L58+44
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	edc_inc
	cmp	r0, #0
	bne	.L55
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	ldr	r2, [r7]
	mov	r3, r6
	str	r2, [sp]
	mov	r0, r10
	mov	r2, r4
	ldr	r1, .L58+48
	bl	dev_err
	b	.L9
.L55:
	mov	r0, r10
	ldr	r1, .L58+52
	bl	dev_err
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	wa_reset_all
.L54:
	mov	r3, r6
	mov	r2, r4
	mov	r0, r10
	ldr	r1, .L58+56
	bl	dev_err
	b	.L4
.L52:
	mov	r0, fp
	bl	wa_xfer_status_to_errno
	ldr	r3, [r7, #8]
	str	r0, [r7, #4]
	mov	r2, r4
	mov	r0, r10
	ldr	r1, .L58+60
	str	fp, [sp]
	bl	dev_err
.L11:
	ldr	r2, .L58+8
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	add	r3, r3, #1
	str	r2, [r7]
	ldr	r0, [sp, #8]
	str	r3, [r4, #16]
	bl	rpipe_avail_inc
	mov	r5, r0
	mov	r0, r4
	bl	__wa_xfer_abort
	b	.L48
.L13:
	ldr	r0, [r3]
	ldr	r2, .L58+32
	ldr	r3, [r5, #4]
	mla	r1, r6, r1, r0
	ldr	r0, [r2]
	ldr	r2, [r3, #8]
	str	r1, [r3, #12]
	bic	r2, r2, r0
	str	r2, [r3, #8]
	b	.L14
.L15:
	ldr	r3, .L58+40
	ldr	r2, .L58+44
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	edc_inc
	cmp	r0, #0
	bne	.L56
.L17:
	bl	printk_ratelimit
	cmp	r0, #0
	bne	.L57
.L21:
	str	r8, [r7, #4]
	b	.L11
.L56:
	mov	r0, r10
	ldr	r1, .L58+52
	bl	dev_err
	mov	r0, r5
	bl	wa_reset_all
	b	.L17
.L57:
	mov	r3, r6
	mov	r0, r10
	mov	r2, r4
	ldr	r1, .L58+64
	str	r8, [sp]
	bl	dev_err
	b	.L21
.L59:
	.align	2
.L58:
	.word	.LC0
	.word	WA_SEG_ABORTED
	.word	WA_SEG_ERROR
	.word	WA_SEG_SUBMITTED
	.word	WA_SEG_PENDING
	.word	WA_SEG_DONE
	.word	EINPROGRESS
	.word	WA_SEG_DTI_PENDING
	.word	URB_NO_TRANSFER_DMA_MAP
	.word	GFP_ATOMIC
	.word	EDC_MAX_ERRORS
	.word	EDC_ERROR_TIMEFRAME
	.word	.LC1
	.word	.LC3
	.word	.LC5
	.word	.LC2
	.word	.LC4
	.size	wa_xfer_result_chew, .-wa_xfer_result_chew
	.comm	WA_SEG_SUBMITTED,4,4
	.comm	WA_SEG_PENDING,4,4
	.comm	WA_SEG_ERROR,4,4
	.comm	WA_SEG_DTI_PENDING,4,4
	.comm	WA_SEG_DONE,4,4
	.comm	WA_SEG_ABORTED,4,4
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	EINPROGRESS,4,4
	.comm	EDC_MAX_ERRORS,4,4
	.comm	EDC_ERROR_TIMEFRAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
