	.file	"extr_usb_controller.c_usb_bus_mem_alloc_all.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usb_def_mtx"
.LC1:
	.string	"usb_spin_mtx"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Devices field has not been initialised properly\n"
	.text
	.p2align 4
	.globl	usb_bus_mem_alloc_all
	.type	usb_bus_mem_alloc_all, @function
usb_bus_mem_alloc_all:
.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, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	r13, 28[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	DWORD PTR [rdi], 0
	mov	edi, DWORD PTR 48[rdi]
	mov	r12d, DWORD PTR MTX_DEF[rip]
	or	r12d, DWORD PTR MTX_RECURSE[rip]
	call	device_get_nameunit@PLT
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	mov	esi, eax
	call	mtx_init@PLT
	mov	edi, DWORD PTR 48[rbx]
	mov	r12d, DWORD PTR MTX_SPIN[rip]
	or	r12d, DWORD PTR MTX_RECURSE[rip]
	call	device_get_nameunit@PLT
	mov	ecx, r12d
	lea	rdi, 52[rbx]
	lea	rdx, .LC1[rip]
	mov	esi, eax
	call	mtx_init@PLT
	xor	edx, edx
	lea	rdi, 44[rbx]
	mov	rsi, r13
	call	usb_callout_init_mtx@PLT
	lea	rdi, 40[rbx]
	call	TAILQ_INIT@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR USB_MAX_DEVICES[rip]
	jg	.L2
	cmp	rax, QWORD PTR USB_MIN_DEVICES[rip]
	jge	.L12
.L2:
	lea	rsi, .LC2[rip]
	xor	edi, edi
	call	DPRINTFN@PLT
	mov	DWORD PTR [rbx], 1
.L4:
	mov	rsi, rbp
	mov	rdi, rbx
	call	usb_bus_mem_free_all@PLT
	mov	eax, DWORD PTR [rbx]
	add	rsp, 8
	.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
.L12:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbx], 0
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L4
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	usb_bus_mem_alloc_all, .-usb_bus_mem_alloc_all
	.comm	usb_bus_mem_alloc_all_cb,4,4
	.comm	USB_MIN_DEVICES,8,8
	.comm	USB_MAX_DEVICES,8,8
	.comm	USB_BUS_DMA_TAG_MAX,4,4
	.comm	MTX_SPIN,4,4
	.comm	MTX_RECURSE,4,4
	.comm	MTX_DEF,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_usb_controller.c_usb_bus_mem_alloc_all.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usb_def_mtx\000"
	.align	2
.LC1:
	.ascii	"usb_spin_mtx\000"
	.align	2
.LC2:
	.ascii	"Devices field has not been initialised properly\012"
	.ascii	"\000"
	.text
	.align	2
	.global	usb_bus_mem_alloc_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_bus_mem_alloc_all, %function
usb_bus_mem_alloc_all:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, #0
	mov	r4, r0
	str	r7, [r5], #16
	ldr	r0, [r0, #36]
	mov	r6, r2
	bl	device_get_nameunit
	ldr	r8, .L12
	ldr	r3, .L12+4
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r3, [r8]
	mov	r0, r5
	orr	r3, r2, r3
	ldr	r2, .L12+8
	bl	mtx_init
	ldr	r0, [r4, #36]
	bl	device_get_nameunit
	ldr	r2, .L12+12
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r1, r0
	orr	r3, r2, r3
	add	r0, r4, #40
	ldr	r2, .L12+16
	bl	mtx_init
	mov	r2, r7
	mov	r1, r5
	add	r0, r4, #32
	bl	usb_callout_init_mtx
	add	r0, r4, #28
	bl	TAILQ_INIT
	ldr	r2, .L12+20
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L2
	ldr	r2, .L12+24
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L11
.L2:
	mov	r0, #0
	ldr	r1, .L12+28
	bl	DPRINTFN
	mov	r3, #1
	str	r3, [r4]
.L4:
	mov	r1, r6
	mov	r0, r4
	bl	usb_bus_mem_free_all
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, [r4, #8]
	cmp	r3, r7
	beq	.L2
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L4
.L13:
	.align	2
.L12:
	.word	MTX_RECURSE
	.word	MTX_DEF
	.word	.LC0
	.word	MTX_SPIN
	.word	.LC1
	.word	USB_MAX_DEVICES
	.word	USB_MIN_DEVICES
	.word	.LC2
	.size	usb_bus_mem_alloc_all, .-usb_bus_mem_alloc_all
	.comm	usb_bus_mem_alloc_all_cb,4,4
	.comm	USB_MIN_DEVICES,4,4
	.comm	USB_MAX_DEVICES,4,4
	.comm	USB_BUS_DMA_TAG_MAX,4,4
	.comm	MTX_SPIN,4,4
	.comm	MTX_RECURSE,4,4
	.comm	MTX_DEF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
