	.file	"extr_qmi.c_ath10k_qmi_host_cap_send_sync.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to send host capability request: %d\n"
	.align 8
.LC1:
	.string	"host capability request rejected: %d\n"
	.align 8
.LC2:
	.string	"qmi host capability request completed\n"
	.text
	.p2align 4
	.type	ath10k_qmi_host_cap_send_sync, @function
ath10k_qmi_host_cap_send_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	xmm0, xmm0
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR wlfw_host_cap_resp_msg_v01_ei[rip]
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r14, 12[rsp]
	lea	rcx, 16[rsp]
	mov	DWORD PTR 36[rsp], 0
	mov	rsi, r14
	mov	DWORD PTR 32[rsp], 1
	mov	QWORD PTR 40[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	qmi_txn_init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR wlfw_host_cap_req_msg_v01_ei[rip]
	mov	rdx, r14
	xor	esi, esi
	lea	rax, 40[rsp]
	mov	r8d, DWORD PTR WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN[rip]
	mov	ecx, DWORD PTR QMI_WLFW_HOST_CAP_REQ_V01[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 128
	call	qmi_send_request@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	test	r12d, r12d
	js	.L8
	mov	esi, DWORD PTR ATH10K_QMI_TIMEOUT[rip]
	imul	esi, DWORD PTR HZ[rip]
	mov	rdi, r14
	call	qmi_txn_wait@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR QMI_RESULT_SUCCESS_V01[rip]
	cmp	QWORD PTR 16[rsp], rax
	je	.L4
	mov	edx, DWORD PTR 24[rsp]
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	ath10k_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR ATH10K_DBG_QMI[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, r13
	xor	r12d, r12d
	call	ath10k_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r14
	call	qmi_txn_cancel@PLT
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	ath10k_err@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath10k_qmi_host_cap_send_sync, .-ath10k_qmi_host_cap_send_sync
	.comm	wlfw_host_cap_resp_msg_v01_ei,4,4
	.comm	wlfw_host_cap_req_msg_v01_ei,4,4
	.comm	WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN,4,4
	.comm	QMI_WLFW_HOST_CAP_REQ_V01,4,4
	.comm	QMI_RESULT_SUCCESS_V01,8,8
	.comm	HZ,4,4
	.comm	EINVAL,4,4
	.comm	ATH10K_QMI_TIMEOUT,4,4
	.comm	ATH10K_DBG_QMI,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_qmi.c_ath10k_qmi_host_cap_send_sync.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to send host capability request: %d\012\000"
	.align	2
.LC1:
	.ascii	"host capability request rejected: %d\012\000"
	.align	2
.LC2:
	.ascii	"qmi host capability request completed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_qmi_host_cap_send_sync, %function
ath10k_qmi_host_cap_send_sync:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	ip, #1
	mov	r5, #0
	ldr	r3, .L10
	ldr	r1, .L10+4
	sub	sp, sp, #44
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	ldr	r2, [r3]
	add	r1, sp, #16
	add	r3, sp, #20
	mov	r6, r0
	ldr	r7, [r0, #4]
	str	r5, [sp, #20]
	str	r5, [sp, #32]
	str	r5, [sp, #24]
	str	ip, [sp, #28]
	bl	qmi_txn_init
	subs	r4, r0, #0
	blt	.L1
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	ip, [r2]
	ldr	r1, [r3]
	ldr	r3, .L10+16
	stm	sp, {r1, ip}
	add	r2, sp, #28
	ldr	r3, [r3]
	mov	r0, r6
	str	r2, [sp, #8]
	mov	r1, r5
	add	r2, sp, #16
	bl	qmi_send_request
	subs	r4, r0, #0
	blt	.L8
	ldr	r2, .L10+20
	ldr	r3, .L10+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r0, sp, #16
	mul	r1, r3, r1
	bl	qmi_txn_wait
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L10+28
	ldr	r2, [sp, #20]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	mov	r0, r7
	ldr	r2, [sp, #24]
	ldr	r1, .L10+32
	bl	ath10k_err
	ldr	r3, .L10+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	ldr	r3, .L10+40
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L10+44
	mov	r4, r5
	bl	ath10k_dbg
	b	.L1
.L8:
	add	r0, sp, #16
	bl	qmi_txn_cancel
	mov	r2, r4
	mov	r0, r7
	ldr	r1, .L10+48
	bl	ath10k_err
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	wlfw_host_cap_resp_msg_v01_ei
	.word	.LC3
	.word	wlfw_host_cap_req_msg_v01_ei
	.word	WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN
	.word	QMI_WLFW_HOST_CAP_REQ_V01
	.word	HZ
	.word	ATH10K_QMI_TIMEOUT
	.word	QMI_RESULT_SUCCESS_V01
	.word	.LC1
	.word	EINVAL
	.word	ATH10K_DBG_QMI
	.word	.LC2
	.word	.LC0
	.size	ath10k_qmi_host_cap_send_sync, .-ath10k_qmi_host_cap_send_sync
	.comm	wlfw_host_cap_resp_msg_v01_ei,4,4
	.comm	wlfw_host_cap_req_msg_v01_ei,4,4
	.comm	WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN,4,4
	.comm	QMI_WLFW_HOST_CAP_REQ_V01,4,4
	.comm	QMI_RESULT_SUCCESS_V01,4,4
	.comm	HZ,4,4
	.comm	EINVAL,4,4
	.comm	ATH10K_QMI_TIMEOUT,4,4
	.comm	ATH10K_DBG_QMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
