	.file	"extr_helper.c_snd_usb_ctl_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	snd_usb_ctl_msg
	.type	snd_usb_ctl_msg, @function
snd_usb_ctl_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	snd_usb_pipe_sanity_check@PLT
	mov	r10d, DWORD PTR EINVAL[rip]
	neg	r10d
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR 88[rsp]
	xor	r11d, r11d
	test	esi, esi
	jg	.L11
.L4:
	test	DWORD PTR USB_DIR_IN[rip], r13d
	mov	ecx, r13d
	mov	r9d, r15d
	mov	r8d, ebx
	mov	eax, DWORD PTR USB_CTRL_GET_TIMEOUT[rip]
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	cmove	eax, DWORD PTR USB_CTRL_SET_TIMEOUT[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 104[rsp]
	push	rax
	.cfi_def_cfa_offset 104
	push	r11
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 32[rsp], r11
	call	usb_control_msg@PLT
	mov	ecx, DWORD PTR 120[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r10d, eax
	test	ecx, ecx
	jg	.L12
.L7:
	mov	eax, DWORD PTR 88[rsp]
	mov	DWORD PTR [rsp], r10d
	mov	edx, r14d
	mov	r9d, r15d
	mov	r8d, ebx
	mov	ecx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 88
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 96
	call	snd_usb_ctl_msg_quirk@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	mov	r10d, DWORD PTR [rsp]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r10d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR 88[rsp]
	mov	rdi, QWORD PTR 80[rsp]
	call	kmemdup@PLT
	mov	r10d, DWORD PTR ENOMEM[rip]
	mov	r11, rax
	neg	r10d
	test	rax, rax
	jne	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r11, QWORD PTR [rsp]
	mov	edx, DWORD PTR 88[rsp]
	mov	DWORD PTR 12[rsp], eax
	mov	rdi, QWORD PTR 80[rsp]
	mov	rsi, r11
	call	memcpy@PLT
	mov	r11, QWORD PTR [rsp]
	mov	rdi, r11
	call	kfree@PLT
	mov	r10d, DWORD PTR 12[rsp]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	snd_usb_ctl_msg, .-snd_usb_ctl_msg
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_helper.c_snd_usb_ctl_msg.c"
	.text
	.align	2
	.global	snd_usb_ctl_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_usb_ctl_msg, %function
snd_usb_ctl_msg:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r8, r2
	mov	r5, r3
	mov	r6, r0
	mov	r7, r1
	ldr	fp, [sp, #72]
	ldr	r9, [sp, #76]
	bl	snd_usb_pipe_sanity_check
	subs	r4, r0, #0
	bne	.L11
	cmp	r9, #0
	bgt	.L12
.L4:
	ldr	r3, .L14
	mov	r2, r8
	ldr	r3, [r3]
	mov	r1, r7
	tst	r5, r3
	ldrne	r3, .L14+4
	ldreq	r3, .L14+8
	mov	r0, r6
	ldr	r3, [r3]
	str	r9, [sp, #12]
	str	r3, [sp, #16]
	ldr	r3, [sp, #68]
	str	r4, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [sp, #64]
	str	r3, [sp]
	mov	r3, r5
	bl	usb_control_msg
	cmp	r9, #0
	mov	r10, r0
	bgt	.L13
.L7:
	ldr	r3, [sp, #68]
	mov	r2, r8
	str	r3, [sp, #4]
	ldr	r3, [sp, #64]
	mov	r1, r7
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r5
	str	r9, [sp, #12]
	str	fp, [sp, #8]
	bl	snd_usb_ctl_msg_quirk
.L1:
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L14+12
	mov	r1, r9
	mov	r0, fp
	ldr	r2, [r3]
	bl	kmemdup
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L14+16
	ldr	r10, [r3]
	rsb	r10, r10, #0
	b	.L1
.L13:
	mov	r2, r9
	mov	r1, r4
	mov	r0, fp
	bl	memcpy
	mov	r0, r4
	bl	kfree
	b	.L7
.L11:
	ldr	r3, .L14+20
	ldr	r10, [r3]
	rsb	r10, r10, #0
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	USB_DIR_IN
	.word	USB_CTRL_GET_TIMEOUT
	.word	USB_CTRL_SET_TIMEOUT
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EINVAL
	.size	snd_usb_ctl_msg, .-snd_usb_ctl_msg
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
