	.file	"extr_usbh_audio.c_USBH_AUDIO_FindLinkedUnit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	USBH_AUDIO_FindLinkedUnit, @function
USBH_AUDIO_FindLinkedUnit:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	r8, QWORD PTR [rax]
	mov	rcx, QWORD PTR [r8]
	test	rcx, rcx
	je	.L2
	mov	rdi, QWORD PTR 56[r8]
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 1
	cmp	rcx, rax
	je	.L2
.L5:
	mov	rdx, QWORD PTR [rdi+rax*8]
	cmp	QWORD PTR [rdx], rsi
	jne	.L3
	mov	ecx, DWORD PTR UAC_FEATURE_UNIT[rip]
	mov	rdx, QWORD PTR 8[rdx]
	sal	ecx, 8
	sal	rdx, 16
	movsx	rcx, ecx
	or	rax, rcx
	or	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rcx, QWORD PTR 8[r8]
	test	rcx, rcx
	je	.L6
	mov	rdi, QWORD PTR 48[r8]
	xor	eax, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR 8[rdx], rsi
	je	.L8
	add	rax, 1
	cmp	rcx, rax
	je	.L6
.L9:
	mov	rdx, QWORD PTR [rdi+rax*8]
	cmp	QWORD PTR [rdx], rsi
	jne	.L7
.L8:
	mov	ecx, DWORD PTR UAC_MIXER_UNIT[rip]
	mov	rdx, QWORD PTR 16[rdx]
	sal	ecx, 8
	sal	rdx, 16
	movsx	rcx, ecx
	or	rax, rcx
	or	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[r8]
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR 40[r8]
	xor	ecx, ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	add	rcx, 1
	cmp	rax, rcx
	je	.L10
.L12:
	mov	rdi, QWORD PTR [rdx+rcx*8]
	cmp	QWORD PTR [rdi], rsi
	jne	.L11
	mov	edx, DWORD PTR UAC_SELECTOR_UNIT[rip]
	sal	edx, 8
	movsx	rax, edx
	mov	rdx, QWORD PTR 8[rdi]
	or	rax, rcx
	sal	rdx, 16
	or	rax, rdx
	ret
.L10:
	mov	rax, QWORD PTR 24[r8]
	test	rax, rax
	je	.L15
	mov	rdi, QWORD PTR 32[r8]
	xor	edx, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	add	rdx, 1
	cmp	rax, rdx
	je	.L15
.L14:
	mov	rcx, QWORD PTR [rdi+rdx*8]
	cmp	QWORD PTR [rcx], rsi
	jne	.L13
	mov	eax, DWORD PTR UAC_OUTPUT_TERMINAL[rip]
	sal	eax, 8
	cdqe
	or	rax, rdx
	mov	rdx, QWORD PTR 8[rcx]
	sal	rdx, 16
	or	rax, rdx
	ret
.L15:
	mov	rax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	USBH_AUDIO_FindLinkedUnit, .-USBH_AUDIO_FindLinkedUnit
	.comm	UAC_SELECTOR_UNIT,4,4
	.comm	UAC_OUTPUT_TERMINAL,4,4
	.comm	UAC_MIXER_UNIT,4,4
	.comm	UAC_FEATURE_UNIT,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_usbh_audio.c_USBH_AUDIO_FindLinkedUnit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	USBH_AUDIO_FindLinkedUnit, %function
USBH_AUDIO_FindLinkedUnit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	ldr	r4, [r3]
	ldr	lr, [r4]
	cmp	lr, #0
	beq	.L2
	ldr	r2, [r4, #28]
	mov	r3, #0
	sub	r2, r2, #4
	b	.L5
.L3:
	add	r3, r3, #1
	cmp	lr, r3
	beq	.L2
.L5:
	ldr	r0, [r2, #4]!
	ldr	ip, [r0]
	cmp	ip, r1
	bne	.L3
	ldr	r2, .L31
	ldr	r0, [r0, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2, lsl #8
	orr	r0, r3, r0, lsl #16
	pop	{r4, pc}
.L2:
	ldr	lr, [r4, #4]
	cmp	lr, #0
	beq	.L6
	ldr	r0, [r4, #24]
	mov	r3, #0
	sub	r0, r0, #4
	b	.L9
.L7:
	ldr	ip, [r2, #4]
	cmp	ip, r1
	beq	.L8
	add	r3, r3, #1
	cmp	lr, r3
	beq	.L6
.L9:
	ldr	r2, [r0, #4]!
	ldr	ip, [r2]
	cmp	ip, r1
	bne	.L7
.L8:
	ldr	r1, .L31+4
	ldr	r0, [r2, #8]
	ldr	r2, [r1]
	orr	r3, r3, r2, lsl #8
	orr	r0, r3, r0, lsl #16
	pop	{r4, pc}
.L6:
	ldr	lr, [r4, #8]
	cmp	lr, #0
	beq	.L10
	ldr	r2, [r4, #20]
	mov	r3, #0
	sub	r2, r2, #4
	b	.L12
.L11:
	add	r3, r3, #1
	cmp	lr, r3
	beq	.L10
.L12:
	ldr	r0, [r2, #4]!
	ldr	ip, [r0]
	cmp	ip, r1
	bne	.L11
	ldr	r2, .L31+8
	ldr	r0, [r0, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2, lsl #8
	orr	r0, r3, r0, lsl #16
	pop	{r4, pc}
.L10:
	ldr	lr, [r4, #12]
	cmp	lr, #0
	beq	.L15
	ldr	r2, [r4, #16]
	mov	r3, #0
	sub	r2, r2, #4
	b	.L14
.L13:
	add	r3, r3, #1
	cmp	lr, r3
	beq	.L15
.L14:
	ldr	r0, [r2, #4]!
	ldr	ip, [r0]
	cmp	ip, r1
	bne	.L13
	ldr	r2, .L31+12
	ldr	r0, [r0, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2, lsl #8
	orr	r0, r3, r0, lsl #16
	pop	{r4, pc}
.L15:
	mvn	r0, #0
	pop	{r4, pc}
.L32:
	.align	2
.L31:
	.word	UAC_FEATURE_UNIT
	.word	UAC_MIXER_UNIT
	.word	UAC_SELECTOR_UNIT
	.word	UAC_OUTPUT_TERMINAL
	.size	USBH_AUDIO_FindLinkedUnit, .-USBH_AUDIO_FindLinkedUnit
	.comm	UAC_SELECTOR_UNIT,4,4
	.comm	UAC_OUTPUT_TERMINAL,4,4
	.comm	UAC_MIXER_UNIT,4,4
	.comm	UAC_FEATURE_UNIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
