	.file	"extr_usb_quirk.c_usb_quirk_get_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usb_quirk_get_entry, @function
usb_quirk_get_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	mov	esi, DWORD PTR MA_OWNED[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	lea	rdi, usb_quirk_mtx[rip]
	call	USB_MTX_ASSERT@PLT
	mov	eax, r13d
	or	eax, r14d
	or	eax, ebp
	or	eax, ebx
	je	.L2
	mov	eax, DWORD PTR USB_DEV_QUIRKS_MAX[rip]
	test	eax, eax
	je	.L10
	mov	rdx, QWORD PTR usb_quirks[rip]
	sub	eax, 1
	sal	rax, 4
	lea	rsi, 16[rdx+rax]
	mov	rax, rdx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r9, rax
	cmp	DWORD PTR [rax], ebx
	jne	.L5
	cmp	DWORD PTR 4[rax], ebp
	jne	.L5
	cmp	DWORD PTR 8[rax], r13d
	jne	.L5
	cmp	DWORD PTR 12[rax], r14d
	jne	.L5
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r9
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rax, 16
	cmp	rax, rsi
	jne	.L6
	test	r12, r12
	je	.L10
.L9:
	mov	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR 4[rdx]
	mov	r9, rdx
	or	eax, DWORD PTR 8[rdx]
	or	eax, DWORD PTR 12[rdx]
	jne	.L16
	mov	DWORD PTR [rdx], ebx
	mov	rax, r9
	mov	DWORD PTR 4[rdx], ebp
	mov	DWORD PTR 8[rdx], r13d
	mov	DWORD PTR 12[rdx], r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movsx	rax, DWORD PTR USB_DEV_QUIRKS_MAX[rip]
	mov	rdx, QWORD PTR usb_quirks[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	sal	rax, 4
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	lea	r9, -16[rdx+rax]
	pop	r14
	.cfi_def_cfa_offset 8
	mov	rax, r9
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdx, 16[rdx]
	cmp	rdx, rsi
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r9d, r9d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	usb_quirk_get_entry, .-usb_quirk_get_entry
	.comm	usb_quirks,8,8
	.comm	usb_quirk_mtx,4,4
	.comm	USB_DEV_QUIRKS_MAX,4,4
	.comm	MA_OWNED,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_quirk.c_usb_quirk_get_entry.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_quirk_get_entry, %function
usb_quirk_get_entry:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r8, r3
	mov	r6, r1
	mov	r5, r0
	ldr	r3, .L18
	ldr	r0, .L18+4
	ldr	r1, [r3]
	bl	USB_MTX_ASSERT
	orr	r3, r7, r8
	orr	r3, r3, r6
	orrs	r3, r3, r5
	ldr	r3, .L18+8
	beq	.L2
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L15
	ldr	r3, .L18+12
	mov	lr, #0
	ldr	r3, [r3]
	mov	ip, r3
.L6:
	ldr	r4, [ip]
	mov	r0, ip
	cmp	r4, r5
	add	lr, lr, #1
	bne	.L5
	ldr	r2, [ip, #4]
	cmp	r2, r6
	bne	.L5
	ldr	r2, [ip, #8]
	cmp	r2, r7
	bne	.L5
	ldr	r2, [ip, #12]
	cmp	r2, r8
	popeq	{r4, r5, r6, r7, r8, pc}
.L5:
	cmp	lr, r1
	add	ip, ip, #16
	bne	.L6
	ldr	r2, [sp, #24]
	cmp	r2, #0
	beq	.L15
	mov	lr, #0
.L9:
	ldmib	r3, {r0, ip}
	ldr	r2, [r3]
	orr	r2, r2, r0
	ldr	r0, [r3, #12]
	orr	r2, r2, ip
	orrs	r2, r2, r0
	mov	r0, r3
	bne	.L17
	stm	r3, {r5, r6, r7, r8}
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L18+12
	ldr	r3, [r3]
	ldr	r0, [r2]
	sub	r3, r3, #-268435455
	add	r0, r0, r3, lsl #4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	add	lr, lr, #1
	cmp	lr, r1
	add	r3, r3, #16
	bne	.L9
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	MA_OWNED
	.word	usb_quirk_mtx
	.word	USB_DEV_QUIRKS_MAX
	.word	usb_quirks
	.size	usb_quirk_get_entry, .-usb_quirk_get_entry
	.comm	usb_quirks,4,4
	.comm	usb_quirk_mtx,4,4
	.comm	USB_DEV_QUIRKS_MAX,4,4
	.comm	MA_OWNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
