	.file	"extr_gadget.c_dwc3_gadget_free_endpoints.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc3_gadget_free_endpoints, @function
dwc3_gadget_free_endpoints:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR DWC3_ENDPOINTS_NUM[rip], 0
	je	.L11
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [r12]
	mov	rbp, QWORD PTR [rax+rbx*8]
	test	rbp, rbp
	je	.L3
	cmp	rbx, 1
	jbe	.L4
	mov	rdi, rbp
	call	dwc3_free_trb_pool@PLT
	mov	rdi, rbp
	call	list_del@PLT
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.L3:
	add	rbx, 1
	cmp	QWORD PTR DWC3_ENDPOINTS_NUM[rip], rbx
	ja	.L5
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	dwc3_gadget_free_endpoints, .-dwc3_gadget_free_endpoints
	.comm	DWC3_ENDPOINTS_NUM,8,8
	.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_gadget.c_dwc3_gadget_free_endpoints.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc3_gadget_free_endpoints, %function
dwc3_gadget_free_endpoints:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L15
	ldr	r3, [r7]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r6, r0
	mov	r4, #0
.L5:
	ldr	r3, [r6]
	ldr	r5, [r3, r4, lsl #2]
	cmp	r5, #0
	beq	.L3
	cmp	r4, #1
	bls	.L4
	mov	r0, r5
	bl	dwc3_free_trb_pool
	mov	r0, r5
	bl	list_del
.L4:
	mov	r0, r5
	bl	kfree
.L3:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	DWC3_ENDPOINTS_NUM
	.size	dwc3_gadget_free_endpoints, .-dwc3_gadget_free_endpoints
	.comm	DWC3_ENDPOINTS_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
