	.file	"extr_commands.c_qtnf_cmd_send_with_reply.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"VIF%u.%u cmd=0x%.4X\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"VIF%u.%u: drop cmd 0x%.4X in fw state %d\n"
	.align 8
.LC2:
	.string	"VIF%u.%u: cmd 0x%.4X failed: %d\n"
	.text
	.p2align 4
	.type	qtnf_cmd_send_with_reply, @function
qtnf_cmd_send_with_reply:
.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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR [rsi]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR 16[rsp], rcx
	mov	edi, DWORD PTR 12[rbx]
	mov	QWORD PTR 24[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsp], 0
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r14d, DWORD PTR 8[rbx]
	mov	r15d, DWORD PTR 4[rbx]
	mov	r12, rax
	call	cpu_to_le16@PLT
	lea	rdi, .LC0[rip]
	mov	rcx, r12
	mov	esi, r14d
	mov	DWORD PTR [rbx], eax
	mov	edx, r15d
	call	pr_debug@PLT
	mov	rdi, r13
	call	qtnf_fw_is_up@PLT
	test	eax, eax
	jne	.L2
	cmp	QWORD PTR QLINK_CMD_FW_INIT[rip], r12
	jne	.L24
.L2:
	mov	rdi, r13
	lea	rdx, 32[rsp]
	mov	rsi, rbp
	call	qtnf_trans_send_cmd_with_resp@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, 1
	test	rax, rax
	je	.L5
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	sete	dil
.L5:
	call	WARN_ON@PLT
	test	rax, rax
	je	.L6
	mov	r13d, DWORD PTR EFAULT[rip]
	xor	edx, edx
	xor	r9d, r9d
	neg	r13d
.L4:
	cmp	QWORD PTR 8[rsp], 0
	mov	rdi, QWORD PTR 32[rsp]
	je	.L8
.L7:
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rdi
.L9:
	test	dl, dl
	jne	.L25
	mov	r8d, r13d
	mov	rcx, r12
	mov	edx, r15d
	mov	esi, r14d
	lea	rdi, .LC2[rip]
	call	pr_warn@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	rbx, QWORD PTR 16[rsp]
	mov	edx, r14d
	mov	ecx, r15d
	mov	rsi, r12
	mov	r9, QWORD PTR [rax]
	mov	r8, rbx
	mov	rdi, r9
	mov	QWORD PTR 16[rsp], r9
	call	qtnf_cmd_check_reply_header@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	r13d, eax
	test	r9, r9
	setne	dl
	test	eax, eax
	jne	.L14
	cmp	QWORD PTR 8[rsp], 0
	je	.L4
	mov	rbp, QWORD PTR 24[rsp]
	test	rbp, rbp
	je	.L4
	mov	edi, DWORD PTR 4[r9]
	mov	BYTE PTR 24[rsp], dl
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	r9, QWORD PTR 16[rsp]
	sub	rax, rbx
	movzx	edx, BYTE PTR 24[rsp]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r8d, DWORD PTR 0[r13]
	mov	rcx, r12
	mov	edx, r15d
	mov	esi, r14d
	lea	rdi, .LC1[rip]
	call	pr_warn@PLT
	mov	rdi, rbp
	call	dev_kfree_skb@PLT
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR [r9]
	call	le16_to_cpu@PLT
	mov	rdi, rax
	call	qtnf_cmd_resp_result_decode@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edx, edx
	xor	r9d, r9d
	cmp	QWORD PTR 8[rsp], 0
	mov	rdi, QWORD PTR 32[rsp]
	jne	.L7
.L8:
	mov	BYTE PTR 16[rsp], dl
	mov	QWORD PTR 8[rsp], r9
	call	consume_skb@PLT
	movzx	edx, BYTE PTR 16[rsp]
	mov	r9, QWORD PTR 8[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	xor	edx, edx
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qtnf_cmd_send_with_reply, .-qtnf_cmd_send_with_reply
	.comm	QLINK_CMD_FW_INIT,8,8
	.comm	ENODEV,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_commands.c_qtnf_cmd_send_with_reply.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VIF%u.%u cmd=0x%.4X\012\000"
	.align	2
.LC1:
	.ascii	"VIF%u.%u: drop cmd 0x%.4X in fw state %d\012\000"
	.align	2
.LC2:
	.ascii	"VIF%u.%u: cmd 0x%.4X failed: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qtnf_cmd_send_with_reply, %function
qtnf_cmd_send_with_reply:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L23
	sub	sp, sp, #28
	ldr	fp, [r1]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [sp, #64]
	mov	r10, r0
	ldr	r0, [fp, #12]
	mov	r4, r1
	str	ip, [sp, #16]
	mov	r6, r2
	str	r3, [sp, #8]
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #4]
	ldr	r8, [fp, #8]
	ldr	r9, [fp, #4]
	bl	cpu_to_le16
	mov	r2, r9
	mov	r1, r8
	mov	r3, r5
	str	r0, [fp]
	ldr	r0, .L23+4
	bl	pr_debug
	mov	r0, r10
	bl	qtnf_fw_is_up
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L20
.L2:
	mov	r1, r4
	mov	r0, r10
	add	r2, sp, #16
	bl	qtnf_trans_send_cmd_with_resp
	subs	r4, r0, #0
	bne	.L12
	ldr	r3, [sp, #16]
	cmp	r3, #0
	ldrne	r0, [r3]
	moveq	r0, #1
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	WARN_ON
	subs	r3, r0, #0
	mov	fp, r3
	beq	.L6
	mov	r3, #0
	mov	r10, r3
	ldr	r2, .L23+12
	ldr	r4, [r2]
	rsb	r4, r4, #0
.L4:
	cmp	r6, #0
	ldr	r0, [sp, #16]
	beq	.L8
.L7:
	cmp	r3, #0
	str	r0, [r6]
	bne	.L21
.L10:
	mov	r3, r5
	mov	r2, r9
	mov	r1, r8
	ldr	r0, .L23+16
	str	r4, [sp]
	bl	pr_warn
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r2, [sp, #16]
	mov	r3, r9
	ldr	r10, [r2]
	mov	r1, r5
	mov	r2, r8
	mov	r0, r10
	str	r7, [sp]
	bl	qtnf_cmd_check_reply_header
	subs	r3, r10, #0
	movne	r3, #1
	subs	r4, r0, #0
	bne	.L14
	ldr	r2, [sp, #8]
	cmp	r6, #0
	cmpne	r2, #0
	beq	.L4
	ldr	r0, [r10, #4]
	str	r3, [sp, #12]
	bl	le16_to_cpu
	ldr	r3, [sp, #8]
	sub	r7, r0, r7
	str	r7, [r3]
	ldr	r0, [sp, #16]
	ldr	r3, [sp, #12]
	b	.L7
.L20:
	ldr	r2, [r10]
	mov	r3, r5
	mov	r1, r8
	str	r2, [sp]
	ldr	r0, .L23+20
	mov	r2, r9
	bl	pr_warn
	mov	r0, r4
	bl	dev_kfree_skb
	ldr	r3, .L23+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	mov	r3, #0
	cmp	r6, #0
	mov	r10, r3
	ldr	r0, [sp, #16]
	bne	.L7
.L8:
	str	r3, [sp, #8]
	bl	consume_skb
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L10
.L21:
	ldr	r0, [r10]
	bl	le16_to_cpu
	bl	qtnf_cmd_resp_result_decode
	mov	r4, r0
	b	.L1
.L14:
	mov	r3, fp
	b	.L4
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC0
	.word	QLINK_CMD_FW_INIT
	.word	EFAULT
	.word	.LC2
	.word	.LC1
	.word	ENODEV
	.size	qtnf_cmd_send_with_reply, .-qtnf_cmd_send_with_reply
	.comm	QLINK_CMD_FW_INIT,4,4
	.comm	ENODEV,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
