	.file	"extr_fwohci.c_dump_dma.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BADDMA,"
.LC1:
	.string	""
.LC2:
	.string	"BRANCH,"
.LC3:
	.string	"ACTIVE,"
.LC4:
	.string	"DEAD,"
.LC5:
	.string	"WAKE,"
.LC6:
	.string	"RUN,"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"ch %1x cntl:0x%08x cmd:0x%08x match:0x%08x\n"
	.align 8
.LC8:
	.string	"dma %d ch:%s%s%s%s%s%s %s(%x)\n"
	.section	.rodata.str1.1
.LC9:
	.string	"dma %d ch: Nostat\n"
	.text
	.p2align 4
	.globl	dump_dma
	.type	dump_dma, @function
dump_dma:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, DWORD PTR OHCI_ATQOFF[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	esi, esi
	je	.L3
	mov	r13d, DWORD PTR OHCI_ATSOFF[rip]
	cmp	esi, 1
	je	.L3
	mov	r13d, DWORD PTR OHCI_ARQOFF[rip]
	cmp	esi, 2
	je	.L3
	mov	r13d, DWORD PTR OHCI_ARSOFF[rip]
	cmp	esi, 3
	je	.L3
	mov	eax, DWORD PTR IRX_CH[rip]
	cmp	eax, esi
	jle	.L7
	movsx	rdi, esi
	sub	rdi, QWORD PTR ITX_CH[rip]
	call	OHCI_ITCTL@PLT
	mov	r13d, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, r13d
	mov	rdi, rbp
	call	OREAD@PLT
	lea	esi, 12[r13]
	mov	rdi, rbp
	mov	ebx, eax
	call	OREAD@PLT
	lea	esi, 16[r13]
	mov	rdi, rbp
	mov	r14d, eax
	call	OREAD@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r8d, r14d
	mov	ecx, ebx
	mov	r9d, eax
	mov	edx, r12d
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	device_printf@PLT
	mov	eax, ebx
	and	eax, 65535
	je	.L8
	mov	edi, ebx
	lea	rcx, .LC1[rip]
	and	ebx, 31
	mov	rdx, QWORD PTR fwohcicode[rip]
	and	edi, 31
	lea	r10, .LC0[rip]
	test	DWORD PTR OHCI_CNTL_DMA_BAD[rip], eax
	cmove	r10, rcx
	lea	rsi, .LC2[rip]
	test	DWORD PTR OHCI_CNTL_DMA_BT[rip], eax
	mov	r11d, DWORD PTR [rdx+rbx*4]
	cmove	rsi, rcx
	lea	rdx, .LC3[rip]
	test	DWORD PTR OHCI_CNTL_DMA_ACTIVE[rip], eax
	cmove	rdx, rcx
	lea	r9, .LC4[rip]
	test	DWORD PTR OHCI_CNTL_DMA_DEAD[rip], eax
	cmove	r9, rcx
	lea	r8, .LC5[rip]
	test	DWORD PTR OHCI_CNTL_DMA_WAKE[rip], eax
	cmove	r8, rcx
	test	DWORD PTR OHCI_CNTL_DMA_RUN[rip], eax
	lea	rax, .LC6[rip]
	cmovne	rcx, rax
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	push	rdi
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 0[rbp]
	push	r11
	.cfi_def_cfa_offset 72
	push	r10
	.cfi_def_cfa_offset 80
	push	rsi
	.cfi_def_cfa_offset 88
	lea	rsi, .LC8[rip]
	push	rdx
	.cfi_def_cfa_offset 96
	mov	edx, r12d
	call	device_printf@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	lea	rsi, .LC9[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	device_printf@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, esi
	sub	edi, eax
	call	OHCI_IRCTL@PLT
	mov	r13d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dump_dma, .-dump_dma
	.comm	fwohcicode,8,8
	.comm	OHCI_CNTL_DMA_WAKE,4,4
	.comm	OHCI_CNTL_DMA_RUN,4,4
	.comm	OHCI_CNTL_DMA_DEAD,4,4
	.comm	OHCI_CNTL_DMA_BT,4,4
	.comm	OHCI_CNTL_DMA_BAD,4,4
	.comm	OHCI_CNTL_DMA_ACTIVE,4,4
	.comm	OHCI_ATSOFF,4,4
	.comm	OHCI_ATQOFF,4,4
	.comm	OHCI_ARSOFF,4,4
	.comm	OHCI_ARQOFF,4,4
	.comm	ITX_CH,8,8
	.comm	IRX_CH,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_dump_dma.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RUN,\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"WAKE,\000"
	.align	2
.LC3:
	.ascii	"DEAD,\000"
	.align	2
.LC4:
	.ascii	"ACTIVE,\000"
	.align	2
.LC5:
	.ascii	"BRANCH,\000"
	.align	2
.LC6:
	.ascii	"BADDMA,\000"
	.align	2
.LC7:
	.ascii	"ch %1x cntl:0x%08x cmd:0x%08x match:0x%08x\012\000"
	.align	2
.LC8:
	.ascii	"dma %d ch:%s%s%s%s%s%s %s(%x)\012\000"
	.align	2
.LC9:
	.ascii	"dma %d ch: Nostat\012\000"
	.text
	.align	2
	.global	dump_dma
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_dma, %function
dump_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r6, r1, #0
	mov	r4, r0
	sub	sp, sp, #36
	bne	.L2
	ldr	r3, .L28
	ldr	r7, [r3]
.L3:
	mov	r1, r7
	mov	r0, r4
	bl	OREAD
	add	r1, r7, #12
	mov	r5, r0
	mov	r0, r4
	bl	OREAD
	mov	r3, r0
	add	r1, r7, #16
	mov	r0, r4
	mov	r7, r3
	bl	OREAD
	str	r7, [sp]
	str	r0, [sp, #4]
	mov	r3, r5
	mov	r2, r6
	ldr	r1, .L28+4
	ldr	r0, [r4]
	bl	device_printf
	lsl	ip, r5, #16
	lsr	ip, ip, #16
	cmp	ip, #0
	beq	.L8
	ldr	r2, .L28+8
	ldr	r3, .L28+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L28+16
	tst	ip, r1
	ldr	r0, .L28+20
	ldr	r1, .L28+24
	ldr	lr, [r3]
	ldr	r0, [r0]
	ldr	r3, .L28+28
	ldr	r8, .L28+32
	moveq	r3, r1
	tst	ip, r2
	ldr	r7, .L28+36
	and	r2, r5, #31
	moveq	r7, r1
	tst	ip, lr
	ldr	lr, .L28+40
	ldr	r8, [r8]
	ldr	r5, .L28+44
	str	r2, [sp, #24]
	moveq	r5, r1
	tst	ip, r0
	ldr	r0, .L28+48
	ldr	lr, [lr]
	ldr	r9, .L28+52
	ldr	r8, [r8, r2, lsl #2]
	mov	r2, r6
	ldr	r6, [r0]
	ldr	r0, [r4]
	moveq	r4, r1
	movne	r4, r9
	tst	ip, lr
	ldr	lr, .L28+56
	moveq	lr, r1
	tst	ip, r6
	ldr	ip, .L28+60
	str	r8, [sp, #20]
	movne	r1, ip
	str	r7, [sp]
	str	r1, [sp, #16]
	str	r5, [sp, #4]
	ldr	r1, .L28+64
	str	r4, [sp, #8]
	str	lr, [sp, #12]
	bl	device_printf
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	cmp	r6, #1
	beq	.L25
	cmp	r6, #2
	beq	.L26
	cmp	r6, #3
	beq	.L27
	ldr	r3, .L28+68
	ldr	r0, [r3]
	cmp	r0, r6
	ble	.L7
	ldr	r3, .L28+72
	ldr	r0, [r3]
	sub	r0, r6, r0
	bl	OHCI_ITCTL
	mov	r7, r0
	b	.L3
.L8:
	mov	r2, r6
	ldr	r0, [r4]
	ldr	r1, .L28+76
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	device_printf
.L27:
	ldr	r3, .L28+80
	ldr	r7, [r3]
	b	.L3
.L25:
	ldr	r3, .L28+84
	ldr	r7, [r3]
	b	.L3
.L26:
	ldr	r3, .L28+88
	ldr	r7, [r3]
	b	.L3
.L7:
	sub	r0, r6, r0
	bl	OHCI_IRCTL
	mov	r7, r0
	b	.L3
.L29:
	.align	2
.L28:
	.word	OHCI_ATQOFF
	.word	.LC7
	.word	OHCI_CNTL_DMA_RUN
	.word	OHCI_CNTL_DMA_WAKE
	.word	OHCI_CNTL_DMA_DEAD
	.word	OHCI_CNTL_DMA_ACTIVE
	.word	.LC1
	.word	.LC0
	.word	fwohcicode
	.word	.LC2
	.word	OHCI_CNTL_DMA_BT
	.word	.LC3
	.word	OHCI_CNTL_DMA_BAD
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC8
	.word	IRX_CH
	.word	ITX_CH
	.word	.LC9
	.word	OHCI_ARSOFF
	.word	OHCI_ATSOFF
	.word	OHCI_ARQOFF
	.size	dump_dma, .-dump_dma
	.comm	fwohcicode,4,4
	.comm	OHCI_CNTL_DMA_WAKE,4,4
	.comm	OHCI_CNTL_DMA_RUN,4,4
	.comm	OHCI_CNTL_DMA_DEAD,4,4
	.comm	OHCI_CNTL_DMA_BT,4,4
	.comm	OHCI_CNTL_DMA_BAD,4,4
	.comm	OHCI_CNTL_DMA_ACTIVE,4,4
	.comm	OHCI_ATSOFF,4,4
	.comm	OHCI_ATQOFF,4,4
	.comm	OHCI_ARSOFF,4,4
	.comm	OHCI_ARQOFF,4,4
	.comm	ITX_CH,4,4
	.comm	IRX_CH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
