	.file	"extr_quirks.c_snd_usb_extigy_boot_quirk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sending Extigy boot sequence...\n"
	.align 8
.LC1:
	.string	"error sending boot message: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"error usb_get_descriptor: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"error usb_reset_configuration: %d\n"
	.align 8
.LC4:
	.string	"extigy_boot: new boot length = %d\n"
	.text
	.p2align 4
	.type	snd_usb_extigy_boot_quirk, @function
snd_usb_extigy_boot_quirk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, r12
	call	get_cfg_desc@PLT
	mov	edi, DWORD PTR [rax]
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR EXTIGY_FIRMWARE_SIZE_OLD[rip]
	je	.L5
	mov	rdi, r12
	call	get_cfg_desc@PLT
	mov	edi, DWORD PTR [rax]
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR EXTIGY_FIRMWARE_SIZE_NEW[rip]
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	usb_sndctrlpipe@PLT
	push	0
	.cfi_def_cfa_offset 40
	mov	ecx, 67
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 48
	mov	edx, 16
	mov	esi, eax
	mov	r9d, 10
	mov	r8d, 1
	call	snd_usb_ctl_msg@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	test	eax, eax
	js	.L11
.L4:
	mov	esi, DWORD PTR USB_DT_DEVICE[rip]
	lea	rcx, 16[rbp]
	xor	edx, edx
	mov	rdi, rbp
	mov	r8d, 4
	call	usb_get_descriptor@PLT
	mov	r12, QWORD PTR 8[rbp]
	test	eax, eax
	js	.L12
.L7:
	mov	rdi, rbp
	call	usb_reset_configuration@PLT
	test	eax, eax
	js	.L13
.L8:
	mov	rdi, r12
	call	get_cfg_desc@PLT
	mov	edi, DWORD PTR [rax]
	call	le16_to_cpu@PLT
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	mov	edx, eax
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	snd_usb_extigy_boot_quirk, .-snd_usb_extigy_boot_quirk
	.comm	USB_DT_DEVICE,4,4
	.comm	EXTIGY_FIRMWARE_SIZE_OLD,4,4
	.comm	EXTIGY_FIRMWARE_SIZE_NEW,4,4
	.comm	ENODEV,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_quirks.c_snd_usb_extigy_boot_quirk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sending Extigy boot sequence...\012\000"
	.align	2
.LC1:
	.ascii	"error sending boot message: %d\012\000"
	.align	2
.LC2:
	.ascii	"error usb_get_descriptor: %d\012\000"
	.align	2
.LC3:
	.ascii	"error usb_reset_configuration: %d\012\000"
	.align	2
.LC4:
	.ascii	"extigy_boot: new boot length = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_usb_extigy_boot_quirk, %function
snd_usb_extigy_boot_quirk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, [r0, #4]
	sub	sp, sp, #20
	mov	r4, r0
	mov	r0, r5
	bl	get_cfg_desc
	ldr	r0, [r0]
	bl	le16_to_cpu
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	mov	r0, r5
	bl	get_cfg_desc
	ldr	r0, [r0]
	bl	le16_to_cpu
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r0, r3
	movne	r0, #0
	beq	.L5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r1, .L14+8
	mov	r0, r4
	bl	dev_dbg
	mov	r1, #0
	mov	r0, r4
	bl	usb_sndctrlpipe
	mov	r3, #0
	mov	ip, #10
	mov	r2, #1
	mov	r1, r0
	stm	sp, {r2, ip}
	str	r3, [sp, #12]
	mov	r2, #16
	str	r3, [sp, #8]
	mov	r0, r4
	mov	r3, #67
	bl	snd_usb_ctl_msg
	subs	r2, r0, #0
	blt	.L11
.L4:
	mov	r2, #4
	ldr	r3, .L14+12
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r2, #0
	mov	r0, r4
	add	r3, r4, #8
	bl	usb_get_descriptor
	subs	r2, r0, #0
	ldr	r5, [r4, #4]
	blt	.L12
.L7:
	mov	r0, r4
	bl	usb_reset_configuration
	subs	r2, r0, #0
	blt	.L13
.L8:
	mov	r0, r5
	bl	get_cfg_desc
	ldr	r0, [r0]
	bl	le16_to_cpu
	ldr	r1, .L14+16
	mov	r2, r0
	mov	r0, r4
	bl	dev_dbg
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	mov	r0, r4
	ldr	r1, .L14+24
	bl	dev_dbg
	b	.L4
.L13:
	mov	r0, r4
	ldr	r1, .L14+28
	bl	dev_dbg
	b	.L8
.L12:
	mov	r0, r4
	ldr	r1, .L14+32
	bl	dev_dbg
	b	.L7
.L15:
	.align	2
.L14:
	.word	EXTIGY_FIRMWARE_SIZE_OLD
	.word	EXTIGY_FIRMWARE_SIZE_NEW
	.word	.LC0
	.word	USB_DT_DEVICE
	.word	.LC4
	.word	ENODEV
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	snd_usb_extigy_boot_quirk, .-snd_usb_extigy_boot_quirk
	.comm	USB_DT_DEVICE,4,4
	.comm	EXTIGY_FIRMWARE_SIZE_OLD,4,4
	.comm	EXTIGY_FIRMWARE_SIZE_NEW,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
