	.file	"extr_mod_host.c_usbhsh_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"start host\n"
	.text
	.p2align 4
	.type	usbhsh_start, @function
usbhsh_start:
.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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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
	call	usbhsh_priv_to_hpriv@PLT
	mov	rdi, rax
	call	usbhsh_hpriv_to_hcd@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	usbhs_mod_get_current@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	usbhs_priv_to_dev@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbx
	mov	r14, rax
	call	usb_add_hcd@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR [rbx]
	mov	r13d, eax
	call	device_wakeup_enable@PLT
	mov	rdi, rbp
	call	usbhs_fifo_init@PLT
	mov	esi, DWORD PTR usbhsh_dma_map_ctrl[rip]
	mov	rdi, rbp
	call	usbhs_pipe_init@PLT
	mov	rdi, rbp
	call	usbhsh_pipe_init_for_host@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	usbhs_sys_host_ctrl@PLT
	mov	eax, DWORD PTR usbhsh_irq_attch[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR usbhsh_irq_dtch[rip]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR usbhsh_irq_setup_ack[rip]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR usbhsh_irq_setup_err[rip]
	mov	DWORD PTR [r12], eax
	call	usbhs_irq_callback_update@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_dbg@PLT
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	usbhsh_start, .-usbhsh_start
	.comm	usbhsh_irq_setup_err,4,4
	.comm	usbhsh_irq_setup_ack,4,4
	.comm	usbhsh_irq_dtch,4,4
	.comm	usbhsh_irq_attch,4,4
	.comm	usbhsh_dma_map_ctrl,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_mod_host.c_usbhsh_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start host\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbhsh_start, %function
usbhsh_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	usbhsh_priv_to_hpriv
	bl	usbhsh_hpriv_to_hcd
	mov	r6, r0
	mov	r0, r4
	bl	usbhs_mod_get_current
	mov	r5, r0
	mov	r0, r4
	bl	usbhs_priv_to_dev
	mov	r2, #0
	mov	r8, r0
	mov	r1, r2
	mov	r0, r6
	bl	usb_add_hcd
	subs	r7, r0, #0
	movlt	r7, #0
	blt	.L1
	ldr	r0, [r6]
	bl	device_wakeup_enable
	mov	r0, r4
	bl	usbhs_fifo_init
	ldr	r3, .L6
	mov	r0, r4
	ldr	r1, [r3]
	bl	usbhs_pipe_init
	mov	r0, r4
	bl	usbhsh_pipe_init_for_host
	mov	r1, #1
	mov	r0, r4
	bl	usbhs_sys_host_ctrl
	ldr	r0, .L6+4
	ldr	r1, .L6+8
	ldr	r2, .L6+12
	ldr	r3, .L6+16
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r5, #8]
	mov	r0, r4
	mov	r1, r5
	str	ip, [r5, #12]
	str	r2, [r5, #4]
	str	r3, [r5]
	bl	usbhs_irq_callback_update
	mov	r0, r8
	ldr	r1, .L6+20
	bl	dev_dbg
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	usbhsh_dma_map_ctrl
	.word	usbhsh_irq_attch
	.word	usbhsh_irq_dtch
	.word	usbhsh_irq_setup_ack
	.word	usbhsh_irq_setup_err
	.word	.LC0
	.size	usbhsh_start, .-usbhsh_start
	.comm	usbhsh_irq_setup_err,4,4
	.comm	usbhsh_irq_setup_ack,4,4
	.comm	usbhsh_irq_dtch,4,4
	.comm	usbhsh_irq_attch,4,4
	.comm	usbhsh_dma_map_ctrl,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
