	.file	"extr_redrat3.c_redrat3_set_timeout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"set ir parm timeout %d ret 0x%02x\n"
	.text
	.p2align 4
	.type	redrat3_set_timeout, @function
redrat3_set_timeout:
.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
	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	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	r12, QWORD PTR 8[rax]
	mov	r13, QWORD PTR [rax]
	call	kmalloc@PLT
	test	rax, rax
	je	.L8
	mov	edi, ebx
	mov	rbp, rax
	imul	rdi, rdi, 274877907
	shr	rdi, 38
	call	redrat3_us_to_len@PLT
	mov	edi, eax
	call	cpu_to_be32@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR HZ[rip]
	mov	ebx, DWORD PTR RR3_IR_IO_SIG_TIMEOUT[rip]
	mov	r14d, DWORD PTR USB_TYPE_VENDOR[rip]
	lea	eax, [rax+rax*4]
	or	r14d, DWORD PTR USB_RECIP_DEVICE[rip]
	mov	r15d, DWORD PTR RR3_SET_IR_PARAM[rip]
	lea	edx, [rax+rax*4]
	or	r14d, DWORD PTR USB_DIR_OUT[rip]
	mov	DWORD PTR 12[rsp], edx
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	xor	r9d, r9d
	mov	ecx, r14d
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, eax
	mov	rdi, r12
	mov	r8d, ebx
	push	rdx
	.cfi_def_cfa_offset 96
	mov	edx, r15d
	push	4
	.cfi_def_cfa_offset 104
	push	rbp
	.cfi_def_cfa_offset 112
	call	usb_control_msg@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	call	be32_to_cpu@PLT
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	edx, eax
	call	dev_dbg@PLT
	cmp	r12d, 4
	je	.L5
	test	r12d, r12d
	js	.L4
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	redrat3_set_timeout, .-redrat3_set_timeout
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	RR3_SET_IR_PARAM,4,4
	.comm	RR3_IR_IO_SIG_TIMEOUT,4,4
	.comm	HZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_redrat3.c_redrat3_set_timeout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set ir parm timeout %d ret 0x%02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	redrat3_set_timeout, %function
redrat3_set_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, .L9
	ldr	r2, [r0]
	ldr	r1, [r1]
	mov	r0, #4
	ldm	r2, {r6, r8}
	sub	sp, sp, #24
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L8
	ldr	r0, .L9+4
	mov	r7, #0
	umull	r3, r0, r4, r0
	lsr	r0, r0, #6
	bl	redrat3_us_to_len
	bl	cpu_to_be32
	mov	r1, r7
	str	r0, [r5]
	mov	r0, r8
	bl	usb_sndctrlpipe
	mov	ip, #4
	mov	r1, r0
	ldr	r3, .L9+8
	ldr	r0, .L9+12
	ldr	r2, .L9+16
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	lr, .L9+20
	orr	r3, r3, r0
	ldr	r0, .L9+24
	add	r2, r2, r2, lsl #2
	ldr	r4, [lr]
	add	r2, r2, r2, lsl #2
	ldr	lr, [r0]
	str	r2, [sp, #16]
	ldr	r2, .L9+28
	str	lr, [sp]
	str	ip, [sp, #12]
	str	r5, [sp, #8]
	str	r7, [sp, #4]
	orr	r3, r3, r4
	ldr	r2, [r2]
	mov	r0, r8
	bl	usb_control_msg
	mov	r4, r0
	ldr	r0, [r5]
	bl	be32_to_cpu
	mov	r3, r4
	mov	r2, r0
	ldr	r1, .L9+32
	mov	r0, r6
	bl	dev_dbg
	cmp	r4, #4
	moveq	r4, r7
	beq	.L4
	cmp	r4, r7
	ldrge	r3, .L9+36
	ldrge	r4, [r3]
	rsbge	r4, r4, #0
.L4:
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	274877907
	.word	USB_TYPE_VENDOR
	.word	USB_RECIP_DEVICE
	.word	HZ
	.word	USB_DIR_OUT
	.word	RR3_IR_IO_SIG_TIMEOUT
	.word	RR3_SET_IR_PARAM
	.word	.LC0
	.word	EIO
	.word	ENOMEM
	.size	redrat3_set_timeout, .-redrat3_set_timeout
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	RR3_SET_IR_PARAM,4,4
	.comm	RR3_IR_IO_SIG_TIMEOUT,4,4
	.comm	HZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
