	.file	"extr_flexcop-usb.c_flexcop_usb_v8_memory_req.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unsupported request for v8_mem_req %x.\n"
	.align 8
.LC1:
	.string	"v8mem: %02x %02x %04x %04x, len: %d\n"
	.text
	.p2align 4
	.type	flexcop_usb_v8_memory_req, @function
flexcop_usb_v8_memory_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	sal	edx, 8
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	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	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR USB_TYPE_VENDOR[rip]
	cmp	r12d, 129
	je	.L2
	cmp	r12d, 130
	je	.L3
	cmp	r12d, 128
	je	.L12
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	deb_info@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	r10d, DWORD PTR B2C2_WAIT_FOR_OPERATION_V8READ[rip]
	mov	r11d, DWORD PTR B2C2_USB_CTRL_PIPE_IN[rip]
	or	esi, DWORD PTR USB_DIR_IN[rip]
.L6:
	mov	r8d, ebp
	mov	r9d, ebx
	mov	ecx, r14d
	mov	edx, r12d
	lea	rdi, .LC1[rip]
	mov	DWORD PTR 12[rsp], r11d
	mov	DWORD PTR 8[rsp], r10d
	mov	DWORD PTR 4[rsp], esi
	call	deb_v8@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR [r15]
	mov	r9d, ebp
	mov	r10d, DWORD PTR 16[rsp]
	imul	r10d, DWORD PTR HZ[rip]
	mov	r8d, r14d
	mov	edx, r12d
	push	r10
	.cfi_def_cfa_offset 96
	push	rbx
	.cfi_def_cfa_offset 104
	push	r13
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR 36[rsp]
	mov	r11d, DWORD PTR 44[rsp]
	mov	ecx, esi
	mov	esi, r11d
	call	usb_control_msg@PLT
	mov	rdx, QWORD PTR deb_v8@GOTPCREL[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdi, r13
	mov	ebp, eax
	mov	esi, eax
	call	debug_dump@PLT
	xor	eax, eax
	cmp	ebx, ebp
	je	.L1
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L12:
	.cfi_restore_state
	mov	r10d, DWORD PTR B2C2_WAIT_FOR_OPERATION_V8WRITE[rip]
	mov	r11d, DWORD PTR B2C2_USB_CTRL_PIPE_OUT[rip]
	or	ebp, DWORD PTR [r8]
	or	esi, DWORD PTR USB_DIR_OUT[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r10d, DWORD PTR B2C2_WAIT_FOR_OPERATION_V8FLASH[rip]
	mov	r11d, DWORD PTR B2C2_USB_CTRL_PIPE_OUT[rip]
	or	esi, DWORD PTR USB_DIR_OUT[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	flexcop_usb_v8_memory_req, .-flexcop_usb_v8_memory_req
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	HZ,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8WRITE,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8READ,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8FLASH,4,4
	.comm	B2C2_USB_CTRL_PIPE_OUT,4,4
	.comm	B2C2_USB_CTRL_PIPE_IN,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_flexcop-usb.c_flexcop_usb_v8_memory_req.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unsupported request for v8_mem_req %x.\012\000"
	.align	2
.LC1:
	.ascii	"v8mem: %02x %02x %04x %04x, len: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flexcop_usb_v8_memory_req, %function
flexcop_usb_v8_memory_req:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L13
	sub	sp, sp, #28
	cmp	r1, #129
	mov	r6, r3
	mov	r4, r1
	mov	r7, r0
	ldr	r3, [ip]
	ldr	r10, [sp, #64]
	lsl	r5, r2, #8
	beq	.L2
	cmp	r1, #130
	beq	.L3
	cmp	r1, #128
	beq	.L12
	ldr	r0, .L13+4
	bl	deb_info
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L13+12
	ldr	r0, .L13+16
	ldr	r1, [r2]
	ldr	r2, .L13+20
	ldr	r9, [r0]
	ldr	fp, [r2]
	orr	r8, r3, r1
.L6:
	ldr	r3, [sp, #68]
	mov	r2, r4
	mov	r1, r8
	str	r3, [sp, #4]
	str	r5, [sp]
	mov	r3, r6
	ldr	r0, .L13+24
	bl	deb_v8
	ldr	r2, [sp, #68]
	ldr	r3, .L13+28
	str	r2, [sp, #12]
	ldr	r3, [r3]
	str	r10, [sp, #8]
	mul	r9, r3, r9
	str	r5, [sp, #4]
	str	r6, [sp]
	mov	r3, r8
	mov	r2, r4
	mov	r1, fp
	ldr	r0, [r7]
	str	r9, [sp, #16]
	bl	usb_control_msg
	mov	r4, r0
	ldr	r2, .L13+32
	mov	r0, r10
	mov	r1, r4
	bl	debug_dump
	ldr	r3, [sp, #68]
	cmp	r3, r4
	moveq	r0, #0
	ldrne	r3, .L13+36
	ldrne	r0, [r3]
	rsbne	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r2, .L13+40
	ldr	r0, [r10]
	ldr	r1, [r2]
	ldr	r2, .L13+44
	orr	r8, r3, r1
	ldr	r3, .L13+48
	ldr	r9, [r2]
	ldr	fp, [r3]
	orr	r5, r5, r0
	b	.L6
.L3:
	ldr	r2, .L13+40
	ldr	r0, .L13+52
	ldr	r1, [r2]
	ldr	r2, .L13+48
	ldr	r9, [r0]
	ldr	fp, [r2]
	orr	r8, r3, r1
	b	.L6
.L14:
	.align	2
.L13:
	.word	USB_TYPE_VENDOR
	.word	.LC0
	.word	EINVAL
	.word	USB_DIR_IN
	.word	B2C2_WAIT_FOR_OPERATION_V8READ
	.word	B2C2_USB_CTRL_PIPE_IN
	.word	.LC1
	.word	HZ
	.word	deb_v8
	.word	EIO
	.word	USB_DIR_OUT
	.word	B2C2_WAIT_FOR_OPERATION_V8WRITE
	.word	B2C2_USB_CTRL_PIPE_OUT
	.word	B2C2_WAIT_FOR_OPERATION_V8FLASH
	.size	flexcop_usb_v8_memory_req, .-flexcop_usb_v8_memory_req
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	HZ,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8WRITE,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8READ,4,4
	.comm	B2C2_WAIT_FOR_OPERATION_V8FLASH,4,4
	.comm	B2C2_USB_CTRL_PIPE_OUT,4,4
	.comm	B2C2_USB_CTRL_PIPE_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
