	.file	"extr_pd-main.c_send_set_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	send_set_req
	.type	send_set_req, @function
send_set_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	mov	ecx, 16
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	mov	rdi, rbp
	rep stosq
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR POSEIDON_STATE_DISCONNECT[rip]
	je	.L2
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 168
	.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
.L2:
	.cfi_restore_state
	mov	r14d, edx
	mov	edi, 30
	mov	r15d, esi
	mov	r12d, eax
	call	mdelay@PLT
	xor	r8d, r8d
	test	r14d, r14d
	je	.L4
	movzx	r8d, r14w
	shr	r14d, 16
.L4:
	mov	edx, DWORD PTR USB_CTRL_GET_TIMEOUT[rip]
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	mov	DWORD PTR 12[rsp], r8d
	mov	ecx, DWORD PTR USB_DIR_IN[rip]
	or	ecx, DWORD PTR USB_TYPE_VENDOR[rip]
	or	ecx, DWORD PTR USB_RECIP_DEVICE[rip]
	mov	DWORD PTR 8[rsp], edx
	mov	DWORD PTR 4[rsp], ecx
	or	r15d, DWORD PTR REQ_SET_CMD[rip]
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	edi, DWORD PTR 4[rbx]
	mov	r9d, r14d
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, eax
	push	rdx
	.cfi_def_cfa_offset 240
	mov	edx, r15d
	push	4
	.cfi_def_cfa_offset 248
	push	rbp
	.cfi_def_cfa_offset 256
	mov	r8d, DWORD PTR 44[rsp]
	mov	ecx, DWORD PTR 36[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 224
	test	eax, eax
	jne	.L5
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, 4
	mov	rsi, rbp
	mov	rdi, r13
	call	memcpy@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_set_req, .-send_set_req
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	REQ_SET_CMD,4,4
	.comm	POSEIDON_STATE_DISCONNECT,4,4
	.comm	ENXIO,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_pd-main.c_send_set_req.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_set_req
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_set_req, %function
send_set_req:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	sub	sp, sp, #160
	mov	r8, r3
	ldr	r3, .L11
	mov	r7, r1
	mov	r5, r2
	mov	r1, #0
	mov	r2, #128
	add	r0, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #156]
	mov	r3,#0
	bl	memset
	ldr	r2, .L11+4
	ldr	r4, [r6]
	ldr	ip, [r2]
	ands	r4, r4, ip
	beq	.L2
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #156]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #160
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #30
	bl	mdelay
	ldr	r6, [r6, #4]
	cmp	r5, #0
	lslne	r9, r5, #16
	mov	r1, #0
	mov	r0, r6
	moveq	r5, r4
	moveq	r9, r4
	lsrne	r9, r9, #16
	lsrne	r5, r5, #16
	bl	usb_rcvctrlpipe
	mov	r10, #4
	ldr	r2, .L11+12
	mov	r1, r0
	ldr	r0, [r2]
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	lr, [r2]
	ldr	r2, .L11+24
	add	ip, sp, #28
	ldr	r3, [r3]
	ldr	r2, [r2]
	stmib	sp, {r5, ip}
	ldr	ip, .L11+28
	str	r9, [sp]
	ldr	ip, [ip]
	orr	r3, r0, r3
	orr	r3, r3, lr
	mov	r0, r6
	orr	r2, r7, r2
	str	ip, [sp, #16]
	str	r10, [sp, #12]
	bl	usb_control_msg
	cmp	r0, #0
	ldreq	r3, .L11+32
	ldreq	r4, [r3]
	rsbeq	r4, r4, #0
	beq	.L1
.L5:
	mov	r2, r10
	mov	r0, r8
	add	r1, sp, #28
	bl	memcpy
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	POSEIDON_STATE_DISCONNECT
	.word	ENODEV
	.word	USB_DIR_IN
	.word	USB_RECIP_DEVICE
	.word	USB_TYPE_VENDOR
	.word	REQ_SET_CMD
	.word	USB_CTRL_GET_TIMEOUT
	.word	ENXIO
	.size	send_set_req, .-send_set_req
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	REQ_SET_CMD,4,4
	.comm	POSEIDON_STATE_DISCONNECT,4,4
	.comm	ENXIO,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
