	.file	"extr_msi2500.c_msi2500_ctrl_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed %d, cmd %02x, data %04x\n"
	.text
	.p2align 4
	.type	msi2500_ctrl_msg, @function
msi2500_ctrl_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	xor	r9d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	shr	r15d, 16
	movzx	r14d, dx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r8d, r15d
	mov	ecx, r14d
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 72
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	or	r12d, DWORD PTR USB_TYPE_VENDOR[rip]
	push	0
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	edx, r12d
	call	msi2500_dbg_usb_control_msg@PLT
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	call	usb_sndctrlpipe@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, r12d
	mov	r9d, r15d
	mov	DWORD PTR [rsp], 2000
	mov	esi, eax
	mov	r8d, r14d
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	mov	r12d, eax
	test	eax, eax
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	r8d, ebp
	mov	ecx, r13d
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	msi2500_ctrl_msg, .-msi2500_ctrl_msg
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,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_msi2500.c_msi2500_ctrl_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed %d, cmd %02x, data %04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msi2500_ctrl_msg, %function
msi2500_ctrl_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	mov	r4, #0
	mov	r5, r0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r7, [r2]
	ldr	r2, [r3]
	sub	sp, sp, #28
	lsr	fp, r6, #16
	lsl	r8, r6, #16
	lsr	r8, r8, #16
	orr	r7, r7, r2
	str	fp, [sp]
	mov	r3, r8
	mov	r2, r7
	ldr	r0, [r0]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	mov	r9, r1
	bl	msi2500_dbg_usb_control_msg
	ldr	r10, [r5, #4]
	mov	r1, r4
	mov	r0, r10
	bl	usb_sndctrlpipe
	mov	ip, #2000
	mov	r1, r0
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	mov	r3, r7
	mov	r0, r10
	mov	r2, r9
	stm	sp, {r8, fp}
	str	ip, [sp, #16]
	bl	usb_control_msg
	subs	r4, r0, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	str	r6, [sp]
	mov	r3, r9
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L9+8
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	USB_DIR_OUT
	.word	USB_TYPE_VENDOR
	.word	.LC0
	.size	msi2500_ctrl_msg, .-msi2500_ctrl_msg
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
