	.file	"extr_sta_ioctl.c_mwifiex_set_hs_params.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"info: Host Sleep IOCTL\tis blocked in UAPSD/PPS mode\n"
	.text
	.p2align 4
	.globl	mwifiex_set_hs_params
	.type	mwifiex_set_hs_params, @function
mwifiex_set_hs_params:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rcx, rcx
	je	.L1
	mov	r14, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	rbx, rcx
	cmp	esi, 128
	je	.L4
	cmp	esi, 129
	je	.L5
.L13:
	mov	r12d, -1
.L1:
	add	rsp, 8
	.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
	mov	rdi, QWORD PTR [r14]
	xor	r12d, r12d
	call	le32_to_cpu@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[r14]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 28[r14]
	test	eax, eax
	jne	.L20
	mov	r12d, DWORD PTR 24[rcx]
	mov	rdi, QWORD PTR 16[rcx]
	test	r12d, r12d
	je	.L7
	mov	r8, QWORD PTR HS_CFG_CANCEL[rip]
	mov	r15d, edx
	cmp	r8, rdi
	je	.L21
	test	rdi, rdi
	je	.L10
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[r14], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L18
	mov	QWORD PTR 8[r14], rax
.L18:
	xor	r13d, r13d
.L9:
	xor	r9d, r9d
	mov	esi, DWORD PTR HostCmd_CMD_802_11_HS_CFG_ENH[rip]
	mov	r8, r14
	mov	rdi, rbp
	cmp	DWORD PTR MWIFIEX_SYNC_CMD[rip], r15d
	mov	edx, 128
	sete	r9b
	xor	ecx, ecx
	call	mwifiex_send_cmd@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR HS_CFG_CANCEL[rip]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L1
	mov	rdi, r13
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r14], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[r14], rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[r14], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12, QWORD PTR [r14]
	mov	rdi, r8
	call	cpu_to_le32@PLT
	cmp	r12, rax
	jne	.L18
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR MWIFIEX_IS_HS_CONFIGURED[rip]
	lea	rsi, 24[r14]
	call	test_bit@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR [r14]
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	r13, rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r14], rax
	jmp	.L9
.L20:
	mov	esi, DWORD PTR INFO[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r14
	mov	r12d, -1
	call	mwifiex_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mwifiex_set_hs_params, .-mwifiex_set_hs_params
	.comm	MWIFIEX_SYNC_CMD,4,4
	.comm	MWIFIEX_IS_HS_CONFIGURED,4,4
	.comm	INFO,4,4
	.comm	HostCmd_CMD_802_11_HS_CFG_ENH,4,4
	.comm	HS_CFG_CANCEL,8,8
	.comm	ENOMEM,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_sta_ioctl.c_mwifiex_set_hs_params.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"info: Host Sleep IOCTL\011is blocked in UAPSD/PPS m"
	.ascii	"ode\012\000"
	.text
	.align	2
	.global	mwifiex_set_hs_params
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_set_hs_params, %function
mwifiex_set_hs_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r3, #0
	sub	sp, sp, #8
	beq	.L19
	cmp	r1, #128
	mov	r8, r0
	ldr	r7, [r0]
	beq	.L4
	cmp	r1, #129
	beq	.L5
.L13:
	mvn	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r0, [r7]
	bl	le32_to_cpu
	mov	r4, #0
	ldr	r2, [r7, #8]
	ldr	r3, [r7, #4]
	str	r0, [r5, #8]
	mov	r0, r4
	str	r2, [r5, #4]
	str	r3, [r5]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r9, [r7, #16]
	cmp	r9, #0
	bne	.L20
	ldr	r4, [r5, #12]
	ldr	r0, [r5, #8]
	cmp	r4, #0
	beq	.L7
	ldr	r10, .L22
	mov	r6, r2
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L21
	cmp	r0, #0
	beq	.L10
	bl	cpu_to_le32
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	cmp	r3, #0
	str	r0, [r7]
	str	r2, [r7, #8]
	strne	r3, [r7, #4]
	beq	.L12
.L9:
	ldr	r2, .L22+4
	ldr	r3, .L22+8
	ldr	r2, [r2]
	str	r7, [sp]
	sub	r2, r2, r6
	clz	r2, r2
	lsr	r2, r2, #5
	str	r2, [sp, #4]
	ldr	r1, [r3]
	mov	r2, #128
	mov	r3, #0
	mov	r0, r8
	bl	mwifiex_send_cmd
	ldr	r2, [r5, #8]
	ldr	r3, [r10]
	mov	r4, r0
	cmp	r2, r3
	bne	.L1
	mov	r0, r9
	bl	cpu_to_le32
	str	r0, [r7]
	b	.L1
.L7:
	bl	cpu_to_le32
	ldr	r2, [r5, #4]
	ldr	r3, [r5]
	str	r0, [r7]
	str	r2, [r7, #8]
	str	r3, [r7, #4]
	b	.L1
.L19:
	ldr	r3, .L22+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r3
	ldr	r4, [r7]
	bl	cpu_to_le32
	cmp	r4, r0
	beq	.L13
.L12:
	mov	r9, #0
	b	.L9
.L21:
	ldr	r3, .L22+16
	add	r1, r7, #12
	ldr	r0, [r3]
	bl	test_bit
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r7]
	bl	le32_to_cpu
	mov	r9, r0
	ldr	r0, [r5, #8]
	bl	cpu_to_le32
	str	r0, [r7]
	b	.L9
.L20:
	ldr	r3, .L22+20
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+24
	bl	mwifiex_dbg
	mvn	r4, #0
	b	.L1
.L23:
	.align	2
.L22:
	.word	HS_CFG_CANCEL
	.word	MWIFIEX_SYNC_CMD
	.word	HostCmd_CMD_802_11_HS_CFG_ENH
	.word	ENOMEM
	.word	MWIFIEX_IS_HS_CONFIGURED
	.word	INFO
	.word	.LC0
	.size	mwifiex_set_hs_params, .-mwifiex_set_hs_params
	.comm	MWIFIEX_SYNC_CMD,4,4
	.comm	MWIFIEX_IS_HS_CONFIGURED,4,4
	.comm	INFO,4,4
	.comm	HostCmd_CMD_802_11_HS_CFG_ENH,4,4
	.comm	HS_CFG_CANCEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
