	.file	"extr_fwohci.c_fwohci_tbuf_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Isochronous transmit err %02x(%s)\n"
	.text
	.p2align 4
	.type	fwohci_tbuf_update, @function
fwohci_tbuf_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r12, 0[0+rbp*8]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	r14, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 16[rsp], r13
	mov	ebx, DWORD PTR [rax+rbp*8]
	xor	eax, eax
	call	splfw@PLT
	mov	rdi, r13
	mov	DWORD PTR 28[rsp], eax
	sub	ebx, 1
	call	FW_GLOCK@PLT
	mov	rax, QWORD PTR [r15]
	mov	esi, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	mov	edi, DWORD PTR 4[rax+r12]
	call	fwdma_sync_multiseg_all@PLT
	cmp	QWORD PTR firewire_debug[rip], 0
	jne	.L16
.L2:
	movsx	rbx, ebx
	lea	r12, 4[r14]
	xor	ebp, ebp
	sal	rbx, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[r15]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+rbx]
	call	FWOHCI_DMA_READ@PLT
	mov	ecx, DWORD PTR OHCI_STATUS_SHIFT[rip]
	sar	eax, cl
	mov	r13d, eax
	mov	rax, QWORD PTR [r15]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+rbx]
	call	FWOHCI_DMA_READ@PLT
	test	r13d, r13d
	je	.L9
	mov	esi, DWORD PTR link[rip]
	mov	rdi, r12
	call	STAILQ_REMOVE_HEAD@PLT
	mov	eax, DWORD PTR FWOHCIEV_MASK[rip]
	and	eax, r13d
	cmp	eax, 128
	je	.L7
	mov	rax, QWORD PTR fwohcicode[rip]
	mov	ecx, r13d
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	and	ecx, 31
	mov	ecx, DWORD PTR [rax+rcx*4]
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 8[rax]
	xor	eax, eax
	call	device_printf@PLT
.L7:
	mov	edx, DWORD PTR link[rip]
	mov	rsi, r15
	mov	rdi, r14
	add	ebp, 1
	call	STAILQ_INSERT_TAIL@PLT
.L3:
	mov	rdi, r12
	call	STAILQ_FIRST@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L8
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	call	FW_GUNLOCK@PLT
	mov	edi, DWORD PTR 28[rsp]
	call	splx@PLT
	test	ebp, ebp
	jne	.L17
	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
.L16:
	.cfi_restore_state
	mov	rsi, QWORD PTR ITX_CH[rip]
	mov	rdi, QWORD PTR 8[rsp]
	add	rsi, rbp
	call	dump_db@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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	wakeup@PLT
	.cfi_endproc
.LFE0:
	.size	fwohci_tbuf_update, .-fwohci_tbuf_update
	.comm	link,4,4
	.comm	fwohcicode,8,8
	.comm	firewire_debug,8,8
	.comm	OHCI_STATUS_SHIFT,4,4
	.comm	OHCI_COUNT_MASK,4,4
	.comm	ITX_CH,8,8
	.comm	FWOHCIEV_MASK,4,4
	.comm	BUS_DMASYNC_POSTREAD,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_fwohci.c_fwohci_tbuf_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Isochronous transmit err %02x(%s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fwohci_tbuf_update, %function
fwohci_tbuf_update:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	ldr	r2, [r0]
	ldr	r3, [r3, r1, lsl #2]
	sub	sp, sp, #20
	ldr	r5, [r2, r1, lsl #3]
	mov	r6, r0
	mov	r4, r1
	str	r3, [sp]
	str	r0, [sp, #4]
	bl	splfw
	mov	r3, r0
	add	r2, r6, #4
	mov	r0, r2
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	bl	FW_GLOCK
	ldr	r3, [r6]
	ldr	r2, .L21
	lsl	r1, r4, #3
	add	r3, r3, r1
	ldr	r0, [r3, #4]
	ldr	r1, [r2]
	bl	fwdma_sync_multiseg_all
	ldr	r3, .L21+4
	sub	r5, r5, #1
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
.L2:
	ldr	r3, [sp]
	mov	r6, #0
	ldr	r10, .L21+8
	ldr	r8, .L21+12
	ldr	fp, .L21+16
	lsl	r5, r5, #2
	add	r7, r3, #4
	b	.L3
.L8:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, [r3, r5]
	bl	FWOHCI_DMA_READ
	ldr	r3, [r4]
	ldr	r2, [r10]
	ldr	r3, [r3]
	asr	r9, r0, r2
	ldr	r0, [r3, r5]
	bl	FWOHCI_DMA_READ
	cmp	r9, #0
	beq	.L9
	ldr	r1, [r8]
	mov	r0, r7
	bl	STAILQ_REMOVE_HEAD
	ldr	r3, [fp]
	and	r1, r9, #31
	and	r3, r3, r9
	cmp	r3, #128
	beq	.L7
	ldr	r3, .L21+20
	ldr	r0, [sp, #4]
	ldr	r3, [r3]
	mov	r2, r9
	ldr	r3, [r3, r1, lsl #2]
	ldr	r0, [r0, #4]
	ldr	r1, .L21+24
	bl	device_printf
.L7:
	mov	r1, r4
	ldr	r2, [r8]
	ldr	r0, [sp]
	bl	STAILQ_INSERT_TAIL
	add	r6, r6, #1
.L3:
	mov	r0, r7
	bl	STAILQ_FIRST
	subs	r4, r0, #0
	bne	.L8
.L9:
	ldr	r0, [sp, #8]
	bl	FW_GUNLOCK
	ldr	r0, [sp, #12]
	bl	splx
	cmp	r6, #0
	bne	.L20
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L21+28
	ldr	r0, [sp, #4]
	ldr	r1, [r3]
	add	r1, r4, r1
	bl	dump_db
	b	.L2
.L20:
	ldr	r0, [sp]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	wakeup
.L22:
	.align	2
.L21:
	.word	BUS_DMASYNC_POSTREAD
	.word	firewire_debug
	.word	OHCI_STATUS_SHIFT
	.word	link
	.word	FWOHCIEV_MASK
	.word	fwohcicode
	.word	.LC0
	.word	ITX_CH
	.size	fwohci_tbuf_update, .-fwohci_tbuf_update
	.comm	link,4,4
	.comm	fwohcicode,4,4
	.comm	firewire_debug,4,4
	.comm	OHCI_STATUS_SHIFT,4,4
	.comm	OHCI_COUNT_MASK,4,4
	.comm	ITX_CH,4,4
	.comm	FWOHCIEV_MASK,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
