	.file	"extr_usb_parse.c_usbd_get_no_alts.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	usbd_get_no_alts
	.type	usbd_get_no_alts, @function
usbd_get_no_alts:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rbp, QWORD PTR [rsi]
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbx
	call	usb_desc_foreach@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR UDESC_INTERFACE[rip]
	jne	.L2
	cmp	DWORD PTR 8[rsi], 7
	jbe	.L2
	cmp	rax, rbp
	jne	.L2
	add	r12, 1
	cmp	r12, 255
	jne	.L2
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	usbd_get_no_alts, .-usbd_get_no_alts
	.comm	UDESC_INTERFACE,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_usb_parse.c_usbd_get_no_alts.c"
	.text
	.align	2
	.global	usbd_get_no_alts
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbd_get_no_alts, %function
usbd_get_no_alts:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r6, [r1]
	mov	r4, r0
	mov	r1, r7
	ldr	r5, .L14
.L2:
	mov	r0, r4
	bl	usb_desc_foreach
	subs	r1, r0, #0
	beq	.L1
	ldr	r3, [r1]
	ldr	r2, [r5]
	cmp	r3, r2
	bne	.L2
	ldr	r2, [r1, #4]
	cmp	r2, #3
	movls	r2, #0
	movhi	r2, #1
	cmp	r3, r6
	movne	r2, #0
	cmp	r2, #0
	beq	.L2
	add	r7, r7, #1
	cmp	r7, #255
	bne	.L2
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	UDESC_INTERFACE
	.size	usbd_get_no_alts, .-usbd_get_no_alts
	.comm	UDESC_INTERFACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
