	.file	"extr_cmdevt.c_mwifiex_dnld_sleep_confirm_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cmd: DNLD_CMD: %#x, act %#x, len %d, seqno %#x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"SLEEP_CFM buffer: "
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"SLEEP_CFM: dev_alloc_skb failed\n"
	.section	.rodata.str1.1
.LC3:
	.string	"SLEEP_CFM: failed\n"
	.text
	.p2align 4
	.type	mwifiex_dnld_sleep_confirm_cmd, @function
mwifiex_dnld_sleep_confirm_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR MWIFIEX_BSS_ROLE_ANY[rip]
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 32[rdi]
	mov	rbx, QWORD PTR [rax]
	call	mwifiex_get_priv@PLT
	mov	ecx, DWORD PTR 48[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	lea	edi, 1[rcx]
	mov	DWORD PTR 48[rbp], edi
	call	HostCmd_SET_SEQ_NO_BSS_INFO@PLT
	mov	edi, eax
	call	cpu_to_le16@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	edi, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r14d, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r13d, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	r12d, eax
	call	le16_to_cpu@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, r13d
	mov	r8d, r12d
	push	r14
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR CMD[rip]
	mov	ecx, eax
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	mwifiex_dbg@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	le16_to_cpu@PLT
	mov	esi, DWORD PTR CMD_D[rip]
	mov	rcx, rbx
	mov	rdi, rbp
	lea	rdx, .LC1[rip]
	mov	r8d, eax
	call	mwifiex_dbg_dump@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR MWIFIEX_USB[rip]
	pop	rcx
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 0[rbp], rax
	je	.L14
	mov	esi, DWORD PTR 28[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	call	skb_push@PLT
	mov	esi, DWORD PTR MWIFIEX_TYPE_CMD[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	rdx, QWORD PTR 32[rbp]
	call	[QWORD PTR 40[rbp]]
	mov	esi, DWORD PTR 28[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	mov	r12d, eax
	call	skb_pull@PLT
.L5:
	cmp	r12d, -1
	je	.L15
	mov	edi, DWORD PTR [rbx]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	test	eax, eax
	mov	eax, DWORD PTR PS_STATE_SLEEP[rip]
	cmovne	eax, DWORD PTR PS_STATE_SLEEP_CFM[rip]
	mov	DWORD PTR 20[rbp], eax
	call	le16_to_cpu@PLT
	test	eax, eax
	je	.L16
.L1:
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR MWIFIEX_TYPE_LEN[rip]
	lea	rdi, 20[rax]
	call	dev_alloc_skb@PLT
	mov	r13, rax
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR MWIFIEX_TYPE_LEN[rip]
	mov	rdi, r13
	lea	rsi, 20[rax]
	call	skb_put@PLT
	mov	rsi, QWORD PTR 0[r13]
	mov	edi, DWORD PTR MWIFIEX_USB_TYPE_CMD[rip]
	call	put_unaligned_le32@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, 20
	mov	rdi, QWORD PTR MWIFIEX_TYPE_LEN[rip]
	add	rdi, QWORD PTR 0[r13]
	mov	rsi, QWORD PTR [rax]
	call	memcpy@PLT
	xor	ecx, ecx
	mov	esi, DWORD PTR MWIFIEX_USB_EP_CMD_EVENT[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	[QWORD PTR 40[rbp]]
	mov	r12d, eax
	add	eax, DWORD PTR EBUSY[rip]
	je	.L5
	mov	rdi, r13
	call	dev_kfree_skb_any@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR MWIFIEX_IS_HS_CONFIGURED[rip]
	lea	rsi, 16[rbp]
	call	test_bit@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	jne	.L1
	mov	DWORD PTR 8[rbp], 1
	mov	esi, DWORD PTR MWIFIEX_BSS_ROLE_ANY[rip]
	mov	rdi, rbp
	call	mwifiex_get_priv@PLT
	mov	esi, 1
	mov	rdi, rax
	call	mwifiex_hs_activated_event@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	mwifiex_dbg@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L15:
	mov	esi, DWORD PTR ERROR[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	mwifiex_dbg@PLT
	add	DWORD PTR 24[rbp], 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mwifiex_dnld_sleep_confirm_cmd, .-mwifiex_dnld_sleep_confirm_cmd
	.comm	PS_STATE_SLEEP_CFM,4,4
	.comm	PS_STATE_SLEEP,4,4
	.comm	MWIFIEX_USB_TYPE_CMD,4,4
	.comm	MWIFIEX_USB_EP_CMD_EVENT,4,4
	.comm	MWIFIEX_USB,8,8
	.comm	MWIFIEX_TYPE_LEN,8,8
	.comm	MWIFIEX_TYPE_CMD,4,4
	.comm	MWIFIEX_IS_HS_CONFIGURED,4,4
	.comm	MWIFIEX_BSS_ROLE_ANY,4,4
	.comm	ERROR,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	CMD_D,4,4
	.comm	CMD,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_cmdevt.c_mwifiex_dnld_sleep_confirm_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd: DNLD_CMD: %#x, act %#x, len %d, seqno %#x\012\000"
	.align	2
.LC1:
	.ascii	"SLEEP_CFM buffer: \000"
	.align	2
.LC2:
	.ascii	"SLEEP_CFM: dev_alloc_skb failed\012\000"
	.align	2
.LC3:
	.ascii	"SLEEP_CFM: failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_dnld_sleep_confirm_cmd, %function
mwifiex_dnld_sleep_confirm_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L18
	ldr	r3, [r0, #28]
	sub	sp, sp, #16
	ldr	r1, [r7]
	ldr	r5, [r3]
	mov	r4, r0
	bl	mwifiex_get_priv
	mov	r3, r0
	ldr	r0, [r4, #36]
	ldr	r2, [r3]
	add	r0, r0, #1
	ldr	r1, [r3, #4]
	str	r0, [r4, #36]
	bl	HostCmd_SET_SEQ_NO_BSS_INFO
	bl	cpu_to_le16
	ldr	r3, .L18+4
	str	r0, [r5, #8]
	ldr	r0, [r5, #16]
	ldr	r10, [r3]
	bl	le16_to_cpu
	mov	r6, r0
	ldr	r0, [r5, #12]
	bl	le16_to_cpu
	mov	r9, r0
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	mov	r8, r0
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	mov	r3, r6
	mov	r1, r10
	ldr	r2, .L18+8
	str	r0, [sp, #8]
	str	r9, [sp]
	mov	r0, r4
	str	r8, [sp, #4]
	bl	mwifiex_dbg
	ldr	r3, .L18+12
	ldr	r0, [r5, #4]
	ldr	r6, [r3]
	bl	le16_to_cpu
	mov	r3, r5
	ldr	r2, .L18+16
	str	r0, [sp]
	mov	r1, r6
	mov	r0, r4
	bl	mwifiex_dbg_dump
	ldr	r3, .L18+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #28]
	bl	skb_push
	ldr	r3, .L18+24
	ldr	r6, [r4, #32]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #0
	ldr	r2, [r4, #28]
	blx	r6
	ldr	r1, [r4, #24]
	mov	r6, r0
	ldr	r0, [r4, #28]
	bl	skb_pull
.L5:
	cmn	r6, #1
	beq	.L15
	ldr	r0, [r5]
	bl	le16_to_cpu
	cmp	r0, #0
	ldreq	r3, .L18+28
	ldrne	r3, .L18+32
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [r4, #16]
	bl	le16_to_cpu
	cmp	r0, #0
	beq	.L16
.L1:
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r6, .L18+36
	ldr	r0, [r6]
	add	r0, r0, #20
	bl	dev_alloc_skb
	subs	r8, r0, #0
	beq	.L17
	ldr	r1, [r6]
	add	r1, r1, #20
	bl	skb_put
	ldr	r3, .L18+40
	ldr	r1, [r8]
	ldr	r0, [r3]
	bl	put_unaligned_le32
	ldr	r2, [r6]
	ldr	r3, [r4, #28]
	ldr	r0, [r8]
	ldr	r1, [r3]
	add	r0, r0, r2
	mov	r2, #20
	bl	memcpy
	ldr	r3, .L18+44
	ldr	r6, [r4, #32]
	ldr	r1, [r3]
	mov	r2, r8
	mov	r3, #0
	mov	r0, r4
	blx	r6
	ldr	r3, .L18+48
	mov	r6, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L5
	mov	r0, r8
	bl	dev_kfree_skb_any
	b	.L5
.L16:
	ldr	r3, .L18+52
	add	r1, r4, #12
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L1
	mov	r5, #1
	ldr	r1, [r7]
	mov	r0, r4
	str	r5, [r4, #4]
	bl	mwifiex_get_priv
	mov	r1, r5
	bl	mwifiex_hs_activated_event
	b	.L1
.L17:
	ldr	r3, .L18+56
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L18+60
	bl	mwifiex_dbg
	ldr	r3, .L18+64
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L15:
	ldr	r3, .L18+56
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L18+68
	bl	mwifiex_dbg
	ldr	r3, [r4, #20]
	add	r3, r3, #1
	str	r3, [r4, #20]
	b	.L1
.L19:
	.align	2
.L18:
	.word	MWIFIEX_BSS_ROLE_ANY
	.word	CMD
	.word	.LC0
	.word	CMD_D
	.word	.LC1
	.word	MWIFIEX_USB
	.word	MWIFIEX_TYPE_CMD
	.word	PS_STATE_SLEEP
	.word	PS_STATE_SLEEP_CFM
	.word	MWIFIEX_TYPE_LEN
	.word	MWIFIEX_USB_TYPE_CMD
	.word	MWIFIEX_USB_EP_CMD_EVENT
	.word	EBUSY
	.word	MWIFIEX_IS_HS_CONFIGURED
	.word	ERROR
	.word	.LC2
	.word	ENOMEM
	.word	.LC3
	.size	mwifiex_dnld_sleep_confirm_cmd, .-mwifiex_dnld_sleep_confirm_cmd
	.comm	PS_STATE_SLEEP_CFM,4,4
	.comm	PS_STATE_SLEEP,4,4
	.comm	MWIFIEX_USB_TYPE_CMD,4,4
	.comm	MWIFIEX_USB_EP_CMD_EVENT,4,4
	.comm	MWIFIEX_USB,4,4
	.comm	MWIFIEX_TYPE_LEN,4,4
	.comm	MWIFIEX_TYPE_CMD,4,4
	.comm	MWIFIEX_IS_HS_CONFIGURED,4,4
	.comm	MWIFIEX_BSS_ROLE_ANY,4,4
	.comm	ERROR,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	CMD_D,4,4
	.comm	CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
