	.file	"extr_fmdrv_common.c_fmc_send_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Timeout(%d sec),didn't get regcompletion signal from RX tasklet\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Response SKB is missing\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Received event pkt status(%d) is not zero\n"
	.text
	.p2align 4
	.globl	fmc_send_cmd
	.type	fmc_send_cmd, @function
fmc_send_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	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
	lea	r13, 16[rdi]
	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
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], r9
	call	init_completion@PLT
	mov	esi, r12d
	mov	r9, r13
	mov	r8d, ebx
	mov	rcx, r15
	mov	edx, r14d
	mov	rdi, rbp
	call	fm_send_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L27
.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
.L27:
	.cfi_restore_state
	mov	esi, DWORD PTR FM_DRV_TX_TIMEOUT[rip]
	mov	rdi, r13
	call	wait_for_completion_timeout@PLT
	test	eax, eax
	je	.L28
	cmp	QWORD PTR 8[rbp], 0
	je	.L29
	xor	r12d, r12d
	mov	rdi, rbp
	mov	rsi, r12
	call	spin_lock_irqsave@PLT
	mov	r14, QWORD PTR 8[rbp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], 0
	call	spin_unlock_irqrestore@PLT
	mov	rbp, QWORD PTR [r14]
	mov	r12d, DWORD PTR 0[rbp]
	test	r12d, r12d
	jne	.L30
	cmp	QWORD PTR 8[rsp], 0
	je	.L6
	cmp	QWORD PTR 80[rsp], 0
	je	.L8
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L24
	cmp	eax, ebx
	jbe	.L31
.L7:
	test	eax, eax
	je	.L24
.L8:
	mov	rdi, r14
	call	kfree_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	QWORD PTR 80[rsp], 0
	je	.L8
	mov	eax, DWORD PTR 4[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR FM_DRV_TX_TIMEOUT[rip]
	call	jiffies_to_msecs@PLT
	lea	rdi, .LC0[rip]
	movsx	rsi, eax
	sar	eax, 31
	imul	rsi, rsi, 274877907
	sar	rsi, 38
	sub	esi, eax
	xor	eax, eax
	call	fmerr@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR 80[rsp]
	mov	DWORD PTR [rax], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	fmerr@PLT
	mov	r12d, DWORD PTR EFAULT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	fmerr@PLT
	mov	rdi, r14
	call	kfree_skb@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, 8
	mov	rdi, r14
	call	skb_pull@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	rsi, QWORD PTR [r14]
	mov	rdi, QWORD PTR 8[rsp]
	call	memcpy@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	rbx, QWORD PTR 80[rsp]
	mov	DWORD PTR [rbx], eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fmc_send_cmd, .-fmc_send_cmd
	.comm	FM_DRV_TX_TIMEOUT,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.comm	EFAULT,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_fmdrv_common.c_fmc_send_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Timeout(%d sec),didn't get regcompletion signal fro"
	.ascii	"m RX tasklet\012\000"
	.align	2
.LC1:
	.ascii	"Response SKB is missing\012\000"
	.align	2
.LC2:
	.ascii	"Received event pkt status(%d) is not zero\012\000"
	.text
	.align	2
	.global	fmc_send_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmc_send_cmd, %function
fmc_send_cmd:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r6, r2
	mov	r7, r3
	sub	sp, sp, #12
	ldr	r9, [sp, #40]
	add	r8, r0, #8
	mov	r0, r8
	bl	init_completion
	mov	r1, r4
	mov	r3, r7
	mov	r2, r6
	mov	r0, r5
	str	r8, [sp, #4]
	str	r9, [sp]
	bl	fm_send_cmd
	subs	r4, r0, #0
	beq	.L17
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	ldr	r6, .L23
	mov	r0, r8
	ldr	r1, [r6]
	bl	wait_for_completion_timeout
	cmp	r0, #0
	beq	.L18
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L19
	mov	r7, #0
	mov	r0, r5
	mov	r1, r7
	bl	spin_lock_irqsave
	ldr	r6, [r5, #4]
	mov	r0, r5
	str	r4, [r5, #4]
	mov	r1, r7
	bl	spin_unlock_irqrestore
	ldr	r5, [r6]
	ldr	r4, [r5]
	cmp	r4, r7
	bne	.L20
	ldr	r3, [sp, #44]
	ldr	r2, [sp, #48]
	cmp	r3, #0
	cmpne	r2, #0
	beq	.L6
	ldr	r3, [r5, #4]
	cmp	r3, r9
	movhi	r9, #0
	movls	r9, #1
	cmp	r3, #0
	moveq	r9, #0
	cmp	r9, #0
	bne	.L21
.L7:
	cmp	r3, #0
	ldreq	r2, [sp, #48]
	streq	r3, [r2]
	b	.L8
.L6:
	ldr	r3, [sp, #48]
	cmp	r3, #0
	bne	.L22
.L8:
	mov	r0, r6
	bl	kfree_skb
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	ldr	r0, [r6]
	bl	jiffies_to_msecs
	ldr	r1, .L23+4
	asr	r3, r0, #31
	smull	r2, r1, r0, r1
	ldr	r0, .L23+8
	rsb	r1, r3, r1, asr #6
	bl	fmerr
	ldr	r3, .L23+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L19:
	ldr	r0, .L23+16
	bl	fmerr
	ldr	r3, .L23+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L20:
	mov	r1, r4
	ldr	r0, .L23+24
	bl	fmerr
	mov	r0, r6
	bl	kfree_skb
	ldr	r3, .L23+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L22:
	ldr	r3, [r5, #4]
	b	.L7
.L21:
	mov	r1, #8
	mov	r0, r6
	bl	skb_pull
	ldr	r2, [r5, #4]
	ldr	r1, [r6]
	ldr	r0, [sp, #44]
	bl	memcpy
	ldr	r3, [r5, #4]
	ldr	r2, [sp, #48]
	str	r3, [r2]
	b	.L8
.L24:
	.align	2
.L23:
	.word	FM_DRV_TX_TIMEOUT
	.word	274877907
	.word	.LC0
	.word	ETIMEDOUT
	.word	.LC1
	.word	EFAULT
	.word	.LC2
	.word	EIO
	.size	fmc_send_cmd, .-fmc_send_cmd
	.comm	FM_DRV_TX_TIMEOUT,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
