	.file	"extr_cmd.c_lbs_cmd_802_11_sleep_params.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error 0x%x, offset 0x%x, stabletime 0x%x, calcontrol 0x%x extsleepclk 0x%x\n"
	.text
	.p2align 4
	.globl	lbs_cmd_802_11_sleep_params
	.type	lbs_cmd_802_11_sleep_params, @function
lbs_cmd_802_11_sleep_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
	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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR CMD_ACT_GET[rip], esi
	je	.L8
	mov	edi, DWORD PTR [rdx]
	mov	r12, rsp
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR 32[rsp], rax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	QWORD PTR 24[rsp], rax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], rax
	call	cpu_to_le16@PLT
	mov	QWORD PTR [rsp], rax
.L3:
	mov	edi, 56
	call	cpu_to_le16@PLT
	mov	edi, ebp
	mov	QWORD PTR 48[rsp], rax
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR CMD_802_11_SLEEP_PARAMS[rip]
	mov	rdx, r12
	mov	rdi, r13
	mov	QWORD PTR 40[rsp], rax
	call	lbs_cmd_with_response@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 72
	.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
.L8:
	.cfi_restore_state
	mov	r12, rsp
	mov	edx, 56
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	mov	r15d, DWORD PTR 8[rsp]
	mov	ebp, DWORD PTR 12[rsp]
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r14, rax
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	r13, rax
	call	le16_to_cpu@PLT
	mov	r9d, r15d
	mov	r8d, ebp
	mov	rcx, r14
	mov	rsi, rax
	mov	rdx, r13
	lea	rdi, .LC0[rip]
	call	lbs_deb_cmd@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	DWORD PTR [rbx], eax
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 4[rbx], eax
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rbx], rax
	call	le16_to_cpu@PLT
	mov	DWORD PTR 12[rbx], eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lbs_cmd_802_11_sleep_params, .-lbs_cmd_802_11_sleep_params
	.comm	CMD_ACT_GET,4,4
	.comm	CMD_802_11_SLEEP_PARAMS,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_cmd.c_lbs_cmd_802_11_sleep_params.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error 0x%x, offset 0x%x, stabletime 0x%x, calcontro"
	.ascii	"l 0x%x extsleepclk 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lbs_cmd_802_11_sleep_params
	.syntax unified
	.arm
	.fpu softvfp
	.type	lbs_cmd_802_11_sleep_params, %function
lbs_cmd_802_11_sleep_params:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #52
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r3, r1
	ldr	r3, .L11+4
	mov	r6, r0
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L8
	ldr	r0, [r2]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [sp, #32]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [sp, #28]
	bl	cpu_to_le16
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	str	r0, [sp, #24]
	ldr	r0, [r4, #12]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	bl	cpu_to_le16
	add	r7, sp, #12
	str	r0, [sp, #12]
.L3:
	mov	r0, #32
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #40]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r1, .L11+8
	mov	r2, r7
	mov	r0, r6
	ldr	r1, [r1]
	str	r3, [sp, #36]
	bl	lbs_cmd_with_response
	subs	r5, r0, #0
	beq	.L9
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	add	r7, sp, #12
	mov	r0, r7
	mov	r2, #32
	mov	r1, #0
	bl	memset
	b	.L3
.L9:
	ldr	r0, [sp, #32]
	bl	le16_to_cpu
	mov	r6, r0
	ldr	r0, [sp, #28]
	bl	le16_to_cpu
	mov	r7, r0
	ldr	r0, [sp, #24]
	bl	le16_to_cpu
	ldr	lr, [sp, #16]
	ldr	ip, [sp, #20]
	mov	r2, r7
	mov	r1, r6
	stm	sp, {ip, lr}
	mov	r3, r0
	ldr	r0, .L11+12
	bl	lbs_deb_cmd
	ldr	r0, [sp, #32]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #28]
	str	r3, [r4]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #24]
	str	r3, [r4, #4]
	bl	le16_to_cpu
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #16]
	str	r0, [r4, #8]
	str	r2, [r4, #20]
	ldr	r0, [sp, #12]
	str	r3, [r4, #16]
	bl	le16_to_cpu
	str	r0, [r4, #12]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	CMD_ACT_GET
	.word	.LC1
	.word	CMD_802_11_SLEEP_PARAMS
	.word	.LC0
	.size	lbs_cmd_802_11_sleep_params, .-lbs_cmd_802_11_sleep_params
	.comm	CMD_ACT_GET,4,4
	.comm	CMD_802_11_SLEEP_PARAMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
