	.file	"extr_ohci.c_ohci_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"start\n"
	.text
	.p2align 4
	.globl	ohci_init
	.type	ohci_init, @function
ohci_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	DPRINTF@PLT
	mov	eax, DWORD PTR OHCI_NORMAL_INTRS[rip]
	lea	rdi, 72[rbp]
	mov	DWORD PTR 96[rbp], eax
	call	ohci_init_ed@PLT
	lea	rdi, 68[rbp]
	mov	QWORD PTR 88[rbp], rax
	call	ohci_init_ed@PLT
	lea	rdi, 64[rbp]
	mov	QWORD PTR 80[rbp], rax
	call	ohci_init_ed@PLT
	cmp	QWORD PTR OHCI_NO_EDS[rip], 0
	mov	QWORD PTR 16[rbp], rax
	je	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 24[rbp]
	lea	r12, [rax+rbx*8]
	mov	rax, QWORD PTR 56[rbp]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	ohci_init_ed@PLT
	cmp	QWORD PTR OHCI_NO_EDS[rip], rbx
	mov	QWORD PTR [r12], rax
	jne	.L2
	shr	rbx
	mov	r9, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, rbx
	je	.L3
	mov	rsi, rbx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8, rsi
	mov	rcx, rsi
	mov	rdi, QWORD PTR [r9+rdx*8]
	xor	rcx, rdx
	shr	r8
	add	rdx, 1
	or	rcx, r8
	mov	rcx, QWORD PTR [r9+rcx*8]
	mov	QWORD PTR 8[rdi], 0
	mov	ecx, DWORD PTR [rcx]
	mov	DWORD PTR 4[rdi], ecx
	test	rsi, rdx
	jne	.L4
	test	r8, r8
	je	.L3
	mov	rsi, r8
	mov	rdx, r8
	jmp	.L4
.L23:
	mov	r9, QWORD PTR 24[rbp]
.L3:
	mov	rdx, QWORD PTR [r9]
	xor	esi, esi
	lea	rdi, 48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[rdx], eax
	mov	rdx, rsp
	call	usbd_get_page@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rsi, QWORD PTR OHCI_NO_INTRS[rip]
	mov	QWORD PTR 40[rbp], rax
	test	rsi, rsi
	je	.L10
	mov	rcx, QWORD PTR OHCI_NO_EDS[rip]
	mov	r8, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR [rax]
	xor	eax, eax
	shr	rcx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, rcx
	or	rdx, rax
	mov	rdx, QWORD PTR [r8+rdx*8]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rdi+rax*4], edx
	add	rax, 1
	cmp	rax, rsi
	jne	.L9
.L10:
	lea	rsi, ohci_iterate_hw_softc[rip]
	mov	rdi, rbp
	call	usb_bus_mem_flush_all@PLT
	lea	rsi, 4[rbp]
	lea	rdi, 32[rbp]
	xor	edx, edx
	lea	rax, ohci_bus_methods[rip]
	mov	QWORD PTR 8[rbp], rax
	call	usb_callout_init_mtx@PLT
	mov	eax, DWORD PTR USB_REV_1_0[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	call	ohci_controller_init@PLT
	mov	r8, rax
	mov	eax, DWORD PTR USB_ERR_INVAL[rip]
	test	r8, r8
	jne	.L1
	mov	rdi, rbp
	call	ohci_do_poll@PLT
	mov	eax, DWORD PTR USB_ERR_NORMAL_COMPLETION[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ohci_init, .-ohci_init
	.comm	ohcidebug,4,4
	.comm	ohci_iterate_hw_softc,4,4
	.comm	ohci_bus_methods,4,4
	.comm	USB_REV_1_0,4,4
	.comm	USB_ERR_NORMAL_COMPLETION,4,4
	.comm	USB_ERR_INVAL,4,4
	.comm	OHCI_NO_INTRS,8,8
	.comm	OHCI_NO_EDS,8,8
	.comm	OHCI_NORMAL_INTRS,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_ohci.c_ohci_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ohci_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ohci_init, %function
ohci_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	ldr	r3, .L23
	sub	sp, sp, #12
	ldr	r0, .L23+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	DPRINTF
	ldr	r3, .L23+8
	add	r0, r6, #44
	ldr	r3, [r3]
	ldr	r5, .L23+12
	str	r3, [r6, #56]
	bl	ohci_init_ed
	mov	r3, r0
	add	r0, r6, #40
	str	r3, [r6, #52]
	bl	ohci_init_ed
	mov	r3, r0
	add	r0, r6, #36
	str	r3, [r6, #48]
	bl	ohci_init_ed
	ldr	r3, [r5]
	str	r0, [r6, #12]
	cmp	r3, #0
	ldreq	lr, [r6, #16]
	beq	.L3
	mov	r4, #0
.L2:
	ldr	r0, [r6, #32]
	ldr	r7, [r6, #16]
	add	r0, r0, r4, lsl #2
	bl	ohci_init_ed
	ldr	r3, [r5]
	str	r0, [r7, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bne	.L2
	lsrs	r3, r4, #1
	movne	ip, r3
	movne	r7, #0
	ldr	lr, [r6, #16]
	ldr	r0, [r6, #12]
	lsrne	r1, r4, #2
	beq	.L3
.L4:
	eor	r2, ip, r3
	orr	r2, r2, r1
	ldr	r4, [lr, r2, lsl #2]
	ldr	r2, [lr, r3, lsl #2]
	ldr	r4, [r4]
	add	r3, r3, #1
	tst	ip, r3
	stmib	r2, {r4, r7}
	bne	.L4
	cmp	r1, #0
	movne	ip, r1
	movne	r3, r1
	lsrne	r1, r1, #1
	bne	.L4
.L3:
	ldr	r2, [r0]
	ldr	r3, [lr]
	mov	r1, #0
	str	r0, [r3, #8]
	str	r2, [r3, #4]
	add	r0, r6, #28
	mov	r2, sp
	bl	usbd_get_page
	ldr	r3, .L23+16
	ldr	r2, [sp]
	ldr	ip, [r3]
	str	r2, [r6, #24]
	cmp	ip, #0
	beq	.L10
	mov	r3, #0
	ldr	r0, [r5]
	ldr	r2, [r2]
	ldr	lr, [r6, #16]
	lsr	r0, r0, #1
	sub	r2, r2, #4
.L9:
	orr	r1, r0, r3
	ldr	r1, [lr, r1, lsl #2]
	add	r3, r3, #1
	ldr	r1, [r1]
	cmp	r3, ip
	str	r1, [r2, #4]!
	bne	.L9
.L10:
	ldr	r1, .L23+20
	mov	r0, r6
	bl	usb_bus_mem_flush_all
	ldr	r3, .L23+24
	mov	r2, #0
	str	r3, [r6, #8]
	add	r1, r6, #4
	add	r0, r6, #20
	bl	usb_callout_init_mtx
	ldr	r3, .L23+28
	mov	r1, #0
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r6]
	bl	ohci_controller_init
	cmp	r0, #0
	beq	.L21
	ldr	r3, .L23+32
	ldr	r0, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L21:
	mov	r0, r6
	bl	ohci_do_poll
	ldr	r3, .L23+36
	ldr	r0, [r3]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.word	OHCI_NORMAL_INTRS
	.word	OHCI_NO_EDS
	.word	OHCI_NO_INTRS
	.word	ohci_iterate_hw_softc
	.word	ohci_bus_methods
	.word	USB_REV_1_0
	.word	USB_ERR_INVAL
	.word	USB_ERR_NORMAL_COMPLETION
	.size	ohci_init, .-ohci_init
	.comm	ohcidebug,4,4
	.comm	ohci_iterate_hw_softc,4,4
	.comm	ohci_bus_methods,4,4
	.comm	USB_REV_1_0,4,4
	.comm	USB_ERR_NORMAL_COMPLETION,4,4
	.comm	USB_ERR_INVAL,4,4
	.comm	OHCI_NO_INTRS,4,4
	.comm	OHCI_NO_EDS,4,4
	.comm	OHCI_NORMAL_INTRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
