	.file	"extr_omap_ehci.c_omap_ehci_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Texas Instruments"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error: Could not map EHCI memory\n"
	.align 8
.LC2:
	.string	"Error: could not allocate irq\n"
	.section	.rodata.str1.1
.LC3:
	.string	"usbus"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Error: could not add USB device\n"
	.align 8
.LC5:
	.string	"Error: could not setup OMAP EHCI, %d\n"
	.align 8
.LC6:
	.string	"Error: could not setup irq, %d\n"
	.align 8
.LC7:
	.string	"Error: USB init failed err=%d\n"
	.text
	.p2align 4
	.type	omap_ehci_attach, @function
omap_ehci_attach:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	device_get_softc@PLT
	lea	rsi, .LC0[rip]
	mov	rbx, rax
	mov	QWORD PTR 24[rax], rbp
	lea	r12, 8[rax]
	mov	eax, DWORD PTR 72[rax]
	mov	DWORD PTR 8[rbx], 32
	mov	edi, DWORD PTR 68[rbx]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR EHCI_MAX_DEVICES[rip]
	mov	DWORD PTR 16[rbx], eax
	call	sprintf@PLT
	mov	QWORD PTR [rbx], rbp
	mov	rdi, rbp
	call	USB_GET_DMA_TAG@PLT
	lea	rdx, ehci_iterate_hw_softc[rip]
	mov	rdi, r12
	mov	esi, eax
	call	usb_bus_mem_alloc_all@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR ENOMEM[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR RF_ACTIVE[rip]
	mov	esi, DWORD PTR SYS_RES_MEMORY[rip]
	lea	r13, 4[rsp]
	mov	rdi, rbp
	mov	rdx, r13
	mov	DWORD PTR 4[rsp], 0
	call	bus_alloc_resource_any@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L18
	mov	ecx, DWORD PTR RF_ACTIVE[rip]
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	mov	rdx, r13
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], 0
	call	bus_alloc_resource_any@PLT
	mov	QWORD PTR 40[rbx], rax
	test	rax, rax
	je	.L19
	mov	rdi, rbp
	mov	edx, -1
	lea	rsi, .LC3[rip]
	call	device_add_child@PLT
	mov	DWORD PTR 12[rbx], eax
	mov	edi, eax
	test	eax, eax
	je	.L20
	mov	rsi, r12
	call	device_set_ivars@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR OMAP_EHCI_HC_DEVSTR[rip]
	call	device_set_desc@PLT
	mov	rdi, rbx
	call	omap_ehci_init@PLT
	test	eax, eax
	jne	.L21
	mov	rdi, QWORD PTR 48[rbx]
	call	rman_get_bushandle@PLT
	mov	rdi, QWORD PTR 48[rbx]
	mov	DWORD PTR 64[rbx], eax
	call	rman_get_bustag@PLT
	mov	rdi, QWORD PTR 48[rbx]
	mov	DWORD PTR 60[rbx], eax
	call	rman_get_size@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rsi, QWORD PTR 40[rbx]
	xor	ecx, ecx
	mov	DWORD PTR 56[rbx], eax
	lea	rax, 32[rbx]
	mov	edx, DWORD PTR INTR_TYPE_BIO[rip]
	mov	r9, r12
	push	rax
	.cfi_def_cfa_offset 80
	mov	r8, QWORD PTR ehci_interrupt[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR INTR_MPSAFE[rip]
	call	bus_setup_intr@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L22
	mov	rdi, r12
	call	ehci_init@PLT
	test	eax, eax
	je	.L23
.L10:
	mov	edx, eax
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	device_printf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	omap_ehci_detach@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	device_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	device_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	device_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR 12[rbx]
	call	device_probe_and_attach@PLT
	test	eax, eax
	je	.L1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	device_printf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	device_printf@PLT
	mov	QWORD PTR 32[rbx], 0
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	omap_ehci_attach, .-omap_ehci_attach
	.comm	ehci_iterate_hw_softc,4,4
	.comm	ehci_interrupt,8,8
	.comm	SYS_RES_MEMORY,4,4
	.comm	SYS_RES_IRQ,4,4
	.comm	RF_ACTIVE,4,4
	.comm	OMAP_EHCI_HC_DEVSTR,4,4
	.comm	INTR_TYPE_BIO,4,4
	.comm	INTR_MPSAFE,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EHCI_MAX_DEVICES,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_omap_ehci.c_omap_ehci_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Texas Instruments\000"
	.align	2
.LC1:
	.ascii	"Error: Could not map EHCI memory\012\000"
	.align	2
.LC2:
	.ascii	"Error: could not allocate irq\012\000"
	.align	2
.LC3:
	.ascii	"usbus\000"
	.align	2
.LC4:
	.ascii	"Error: could not add USB device\012\000"
	.align	2
.LC5:
	.ascii	"Error: could not setup OMAP EHCI, %d\012\000"
	.align	2
.LC6:
	.ascii	"Error: could not setup irq, %d\012\000"
	.align	2
.LC7:
	.ascii	"Error: USB init failed err=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_ehci_attach, %function
omap_ehci_attach:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L24
	sub	sp, sp, #24
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	device_get_softc
	mov	r3, #32
	mov	r4, r0
	ldr	r2, .L24+4
	ldr	r1, [r0, #52]
	ldr	r2, [r2]
	str	r3, [r0, #4]
	str	r2, [r0, #12]
	str	r1, [r0, #16]
	str	r5, [r0, #20]
	ldr	r1, .L24+8
	ldr	r0, [r0, #48]
	bl	sprintf
	mov	r0, r5
	str	r5, [r4]
	bl	USB_GET_DMA_TAG
	add	r7, r4, #4
	mov	r1, r0
	ldr	r2, .L24+12
	mov	r0, r7
	bl	usb_bus_mem_alloc_all
	subs	r6, r0, #0
	beq	.L2
	ldr	r3, .L24+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L24+20
	ldr	r8, .L24+24
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r3, [r8]
	add	r2, sp, #16
	str	r6, [sp, #16]
	bl	bus_alloc_resource_any
	cmp	r0, #0
	str	r0, [r4, #32]
	beq	.L18
	ldr	r1, .L24+28
	mov	r0, r5
	ldr	r3, [r8]
	ldr	r1, [r1]
	add	r2, sp, #16
	str	r6, [sp, #16]
	bl	bus_alloc_resource_any
	cmp	r0, #0
	str	r0, [r4, #28]
	beq	.L19
	mvn	r2, #0
	mov	r0, r5
	ldr	r1, .L24+32
	bl	device_add_child
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L20
	mov	r1, r7
	bl	device_set_ivars
	ldr	r3, .L24+36
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	device_set_desc
	mov	r0, r4
	bl	omap_ehci_init
	subs	r6, r0, #0
	bne	.L21
	ldr	r0, [r4, #32]
	bl	rman_get_bushandle
	mov	r3, r0
	ldr	r0, [r4, #32]
	str	r3, [r4, #44]
	bl	rman_get_bustag
	mov	r3, r0
	ldr	r0, [r4, #32]
	str	r3, [r4, #40]
	bl	rman_get_size
	ldr	r1, .L24+40
	ldr	r3, .L24+44
	ldr	r2, .L24+48
	ldr	lr, [r1]
	ldr	r2, [r2]
	ldr	ip, [r3]
	add	r3, r4, #24
	str	r0, [r4, #36]
	ldr	r1, [r4, #28]
	orr	r2, lr, r2
	str	r3, [sp, #8]
	mov	r0, r5
	mov	r3, r6
	str	ip, [sp]
	str	r7, [sp, #4]
	bl	bus_setup_intr
	subs	r2, r0, #0
	bne	.L22
	mov	r0, r7
	bl	ehci_init
	cmp	r0, #0
	beq	.L23
.L10:
	mov	r2, r0
	ldr	r1, .L24+52
	mov	r0, r5
	bl	device_printf
.L5:
	mov	r0, r5
	bl	omap_ehci_detach
	ldr	r3, .L24+56
	ldr	r0, [r3]
	b	.L1
.L21:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L24+60
	bl	device_printf
	b	.L5
.L20:
	mov	r0, r5
	ldr	r1, .L24+64
	bl	device_printf
	b	.L5
.L18:
	mov	r0, r5
	ldr	r1, .L24+68
	bl	device_printf
	b	.L5
.L23:
	ldr	r0, [r4, #8]
	bl	device_probe_and_attach
	cmp	r0, #0
	beq	.L1
	b	.L10
.L19:
	mov	r0, r5
	ldr	r1, .L24+72
	bl	device_printf
	b	.L5
.L22:
	mov	r0, r5
	ldr	r1, .L24+76
	bl	device_printf
	str	r6, [r4, #24]
	b	.L5
.L17:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	EHCI_MAX_DEVICES
	.word	.LC0
	.word	ehci_iterate_hw_softc
	.word	ENOMEM
	.word	SYS_RES_MEMORY
	.word	RF_ACTIVE
	.word	SYS_RES_IRQ
	.word	.LC3
	.word	OMAP_EHCI_HC_DEVSTR
	.word	INTR_TYPE_BIO
	.word	ehci_interrupt
	.word	INTR_MPSAFE
	.word	.LC7
	.word	ENXIO
	.word	.LC5
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC6
	.size	omap_ehci_attach, .-omap_ehci_attach
	.comm	ehci_iterate_hw_softc,4,4
	.comm	ehci_interrupt,4,4
	.comm	SYS_RES_MEMORY,4,4
	.comm	SYS_RES_IRQ,4,4
	.comm	RF_ACTIVE,4,4
	.comm	OMAP_EHCI_HC_DEVSTR,4,4
	.comm	INTR_TYPE_BIO,4,4
	.comm	INTR_MPSAFE,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EHCI_MAX_DEVICES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
