	.file	"extr_pcm.c_usb6fire_pcm_in_urb_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"internal error: stream disabled in in-urb handler.\n"
	.text
	.p2align 4
	.type	usb6fire_pcm_in_urb_handler, @function
usb6fire_pcm_in_urb_handler:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	jne	.L31
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 24[r12]
	mov	rbx, QWORD PTR [rax]
	mov	ebp, DWORD PTR [rbx]
	test	ebp, ebp
	jne	.L1
	mov	rcx, QWORD PTR 8[rbx]
	cmp	rcx, QWORD PTR STREAM_STOPPING[rip]
	je	.L1
	mov	edx, DWORD PTR PCM_N_PACKETS_PER_URB[rip]
	test	edx, edx
	jle	.L3
	mov	rsi, QWORD PTR 8[r12]
	sub	edx, 1
	lea	rdx, [rdx+rdx*2]
	lea	rax, 16[rsi]
	lea	rdx, 40[rsi+rdx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 24
	cmp	rax, rdx
	je	.L3
.L5:
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	DWORD PTR [rbx], 1
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
.L31:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
.L3:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	cmp	rcx, QWORD PTR STREAM_DISABLED[rip]
	je	.L35
	lea	r13, 56[rbx]
	xor	esi, esi
	mov	rbp, QWORD PTR 32[r12]
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 80[rbx], 0
	je	.L7
	mov	rsi, r12
	mov	rdi, r13
	call	usb6fire_pcm_capture@PLT
	mov	rdx, QWORD PTR 64[rbx]
	mov	eax, DWORD PTR 72[rbx]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, DWORD PTR [rdx]
	cmp	eax, ecx
	jge	.L36
.L7:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
.L9:
	mov	eax, DWORD PTR PCM_N_PACKETS_PER_URB[rip]
	test	eax, eax
	jle	.L21
	mov	ecx, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 16[rbx]
	sub	eax, 1
	xor	r8d, r8d
	lea	r9, 3[rax+rax*2]
	mov	rsi, QWORD PTR 8[rbp]
	mov	r11, QWORD PTR 8[r12]
	lea	r10d, 0[0+rcx*4]
	sal	edi, 2
	sal	r9, 3
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR [rsi+rcx], r8d
	mov	eax, DWORD PTR 8[r11+rcx]
	mov	QWORD PTR 16[rsi+rcx], 0
	sub	eax, 4
	cdq
	idiv	edi
	imul	eax, r10d
	add	eax, 4
	mov	DWORD PTR 4[rsi+rcx], eax
	add	rcx, 24
	add	r8d, eax
	cmp	r9, rcx
	jne	.L11
.L10:
	mov	rdi, QWORD PTR 16[rbp]
	xor	esi, esi
	mov	edx, r8d
	lea	r13, 24[rbx]
	call	memset@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 48[rbx], 0
	je	.L12
	mov	rsi, rbp
	mov	rdi, r13
	call	usb6fire_pcm_playback@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	eax, DWORD PTR 40[rbx]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, DWORD PTR [rdx]
	cmp	eax, ecx
	jge	.L37
.L12:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
.L14:
	mov	r11d, DWORD PTR PCM_N_PACKETS_PER_URB[rip]
	mov	rcx, QWORD PTR 16[rbp]
	test	r11d, r11d
	jle	.L15
	mov	rax, QWORD PTR 8[rbp]
	xor	r8d, r8d
	movabs	r9, 730144440490
	lea	rdi, 4[rax]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L16:
	add	r8d, 1
	add	rdi, 24
	cmp	DWORD PTR PCM_N_PACKETS_PER_URB[rip], r8d
	jle	.L15
.L20:
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 3
	jle	.L16
	mov	esi, DWORD PTR 20[rbx]
	sub	eax, 4
	mov	QWORD PTR [rcx], r9
	add	rcx, 16
	cdq
	mov	DWORD PTR -4[rcx], 0
	sal	esi, 2
	idiv	esi
	xor	esi, esi
	mov	DWORD PTR -8[rcx], eax
	test	eax, eax
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r10d, DWORD PTR 20[rbx]
	xor	edx, edx
	test	r10d, r10d
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	add	rcx, 16
	add	edx, 1
	mov	DWORD PTR -4[rcx], 64
	cmp	DWORD PTR 20[rbx], edx
	jg	.L18
.L19:
	add	esi, 1
	cmp	eax, esi
	jne	.L17
	jmp	.L16
.L15:
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, rbp
	call	usb_submit_urb@PLT
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	usb_submit_urb@PLT
.L37:
	.cfi_restore_state
	cdq
	mov	rdi, r13
	xor	esi, esi
	idiv	ecx
	mov	DWORD PTR 40[rbx], edx
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR 32[rbx]
	call	snd_pcm_period_elapsed@PLT
	jmp	.L14
.L36:
	cdq
	mov	rdi, r13
	xor	esi, esi
	idiv	ecx
	mov	DWORD PTR 72[rbx], edx
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR 64[rbx]
	call	snd_pcm_period_elapsed@PLT
	jmp	.L9
.L35:
	mov	rax, QWORD PTR 88[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
.L21:
	.cfi_restore_state
	xor	r8d, r8d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	usb6fire_pcm_in_urb_handler, .-usb6fire_pcm_in_urb_handler
	.comm	STREAM_STOPPING,8,8
	.comm	STREAM_DISABLED,8,8
	.comm	PCM_N_PACKETS_PER_URB,4,4
	.comm	GFP_ATOMIC,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_pcm.c_usb6fire_pcm_in_urb_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"internal error: stream disabled in in-urb handler.\012"
	.ascii	"\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb6fire_pcm_in_urb_handler, %function
usb6fire_pcm_in_urb_handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxne	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0, #4]
	sub	sp, sp, #28
	ldr	r3, [r6, #12]
	ldr	r4, [r3]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L1
	ldr	r2, .L36
	ldr	ip, [r4, #4]
	ldr	r2, [r2]
	cmp	ip, r2
	beq	.L1
	ldr	r7, .L36+4
	ldr	r0, [r7]
	cmp	r0, #0
	ble	.L3
	ldr	r1, [r6, #4]
	add	r1, r1, #12
	b	.L5
.L4:
	cmp	r0, r3
	beq	.L3
.L5:
	ldr	r2, [r1, r3, lsl #4]
	add	r3, r3, #1
	cmp	r2, #0
	beq	.L4
	mov	r3, #1
	str	r3, [r4]
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	ip, r3
	beq	.L33
	ldr	r3, [r6, #16]
	add	r5, r4, #32
	mov	r0, r5
	mov	r1, #0
	str	r3, [sp, #12]
	bl	spin_lock_irqsave
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L7
	mov	r1, r6
	mov	r0, r5
	bl	usb6fire_pcm_capture
	ldr	r3, [r4, #36]
	ldr	r0, [r4, #40]
	ldr	r3, [r3]
	ldr	r1, [r3]
	cmp	r0, r1
	bge	.L34
.L7:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L9:
	ldr	r2, [r7]
	cmp	r2, #0
	ble	.L21
	mov	r5, #0
	ldr	r3, [sp, #12]
	ldr	r1, [r4, #8]
	ldr	r8, [r3, #4]
	ldr	r3, [r6, #4]
	lsl	fp, r1, #2
	add	r9, r3, #8
	add	ip, r8, #4
	ldr	r0, [r4, #12]
	mov	r10, fp
	str	r6, [sp, #16]
	str	r4, [sp, #20]
	mov	r6, r9
	mov	r4, r5
	mov	fp, ip
	mov	r9, r2
	add	lr, r8, #12
	lsl	r3, r0, #2
	str	lr, [sp, #8]
	str	r3, [sp, #4]
.L11:
	str	r4, [r8, r5, lsl #4]
	ldr	r0, [r6, r5, lsl #4]
	mov	r1, r10
	sub	r0, r0, #4
	bl	__aeabi_idiv
	mov	r2, #0
	ldr	r3, [sp, #4]
	mul	r3, r0, r3
	add	r0, r3, #4
	ldr	r3, [sp, #8]
	str	r0, [fp, r5, lsl #4]
	str	r2, [r3, r5, lsl #4]
	add	r5, r5, #1
	cmp	r5, r9
	add	r4, r4, r0
	bne	.L11
	mov	r10, r4
	ldr	r6, [sp, #16]
	ldr	r4, [sp, #20]
.L10:
	ldr	r8, [sp, #12]
	mov	r2, r10
	mov	r1, #0
	ldr	r0, [r8, #8]
	add	r5, r4, #16
	bl	memset
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L12
	mov	r1, r8
	mov	r0, r5
	bl	usb6fire_pcm_playback
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #24]
	ldr	r3, [r3]
	ldr	r1, [r3]
	cmp	r0, r1
	bge	.L35
.L12:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L14:
	ldr	r3, [r7]
	ldr	r2, [sp, #12]
	cmp	r3, #0
	ldr	r5, [r2, #8]
	ble	.L15
	ldr	fp, [r2, #4]
	mov	r9, #0
	mov	r10, #170
	mov	r8, #64
	add	fp, fp, #4
	b	.L20
.L16:
	ldr	r3, [r7]
	add	r9, r9, #1
	cmp	r3, r9
	ble	.L15
.L20:
	ldr	r0, [fp, r9, lsl #4]
	cmp	r0, #3
	ble	.L16
	ldr	r1, [r4, #12]
	sub	r0, r0, #4
	lsl	r1, r1, #2
	bl	__aeabi_idiv
	mov	r3, #0
	cmp	r0, #0
	str	r0, [r5, #8]
	str	r10, [r5]
	str	r10, [r5, #4]
	str	r3, [r5, #12]
	movgt	r1, #0
	ldrgt	r2, [r4, #12]
	add	r5, r5, #16
	ble	.L16
.L17:
	cmp	r2, #0
	movgt	r3, #0
	ble	.L19
.L18:
	str	r8, [r5, #12]
	ldr	r2, [r4, #12]
	add	r3, r3, #1
	cmp	r2, r3
	add	r5, r5, #16
	bgt	.L18
.L19:
	add	r1, r1, #1
	cmp	r0, r1
	bne	.L17
	ldr	r3, [r7]
	add	r9, r9, #1
	cmp	r3, r9
	bgt	.L20
.L15:
	ldr	r4, .L36+12
	ldr	r0, [sp, #12]
	ldr	r1, [r4]
	bl	usb_submit_urb
	mov	r0, r6
	ldr	r1, [r4]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	usb_submit_urb
.L35:
	bl	__aeabi_idivmod
	mov	r0, r5
	str	r1, [r4, #24]
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r0, [r4, #20]
	bl	snd_pcm_period_elapsed
	b	.L14
.L34:
	bl	__aeabi_idivmod
	mov	r0, r5
	str	r1, [r4, #40]
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r0, [r4, #36]
	bl	snd_pcm_period_elapsed
	b	.L9
.L33:
	ldr	r3, [r4, #48]
	ldr	r1, .L36+16
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	dev_err
.L21:
	mov	r10, #0
	b	.L10
.L37:
	.align	2
.L36:
	.word	STREAM_STOPPING
	.word	PCM_N_PACKETS_PER_URB
	.word	STREAM_DISABLED
	.word	GFP_ATOMIC
	.word	.LC0
	.size	usb6fire_pcm_in_urb_handler, .-usb6fire_pcm_in_urb_handler
	.comm	STREAM_STOPPING,4,4
	.comm	STREAM_DISABLED,4,4
	.comm	PCM_N_PACKETS_PER_URB,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
