	.file	"extr_power.c_iwl_mvm_power_update_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Sending device power command with flags = 0x%X\n"
	.text
	.p2align 4
	.globl	iwl_mvm_power_update_device
	.type	iwl_mvm_power_update_device, @function
iwl_mvm_power_update_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR IWL_POWER_SCHEME_CAM[rip]
	cmp	QWORD PTR iwlmvm_mod_params[rip], rax
	mov	DWORD PTR 4[rsp], 0
	je	.L9
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L10
.L3:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L4
.L12:
	mov	edx, DWORD PTR 4[rsp]
.L5:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	IWL_DEBUG_POWER@PLT
	mov	esi, DWORD PTR POWER_TABLE_CMD[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 4
	lea	r8, 4[rsp]
	call	iwl_mvm_send_cmd_pdu@PLT
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK[rip]
	call	cpu_to_le16@PLT
	or	DWORD PTR 4[rsp], eax
	cmp	QWORD PTR 8[rbp], 0
	je	.L12
.L4:
	mov	edi, DWORD PTR DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK[rip]
	call	cpu_to_le16@PLT
	or	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	edx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rdi], 1
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwl_mvm_power_update_device, .-iwl_mvm_power_update_device
	.comm	iwlmvm_mod_params,8,8
	.comm	POWER_TABLE_CMD,4,4
	.comm	IWL_UCODE_WOWLAN,8,8
	.comm	IWL_POWER_SCHEME_CAM,8,8
	.comm	DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK,4,4
	.comm	DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK,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_power.c_iwl_mvm_power_update_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sending device power command with flags = 0x%X\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iwl_mvm_power_update_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_mvm_power_update_device, %function
iwl_mvm_power_update_device:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, lr}
	ldr	r1, .L12
	ldr	r2, .L12+4
	ldr	r1, [r1]
	ldr	r2, [r2]
	sub	sp, sp, #16
	cmp	r1, r2
	ldr	r2, .L12+8
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #8]
	moveq	r3, #1
	streq	r3, [r0]
	beq	.L3
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L9
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L4
.L11:
	ldr	r2, [sp, #8]
.L5:
	ldr	r1, .L12+12
	mov	r0, r4
	bl	IWL_DEBUG_POWER
	ldr	r2, .L12+16
	add	r3, sp, #8
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #0
	str	r3, [sp]
	mov	r3, #4
	bl	iwl_mvm_send_cmd_pdu
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L9:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	bl	cpu_to_le16
	ldr	r3, [sp, #8]
	orr	r3, r3, r0
	str	r3, [sp, #8]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L11
.L4:
	ldr	r3, .L12+24
	ldr	r0, [r3]
	bl	cpu_to_le16
	ldr	r2, [sp, #8]
	orr	r2, r0, r2
	str	r2, [sp, #8]
	b	.L5
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	iwlmvm_mod_params
	.word	IWL_POWER_SCHEME_CAM
	.word	.LC1
	.word	.LC0
	.word	POWER_TABLE_CMD
	.word	DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK
	.word	DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK
	.size	iwl_mvm_power_update_device, .-iwl_mvm_power_update_device
	.comm	iwlmvm_mod_params,4,4
	.comm	POWER_TABLE_CMD,4,4
	.comm	IWL_UCODE_WOWLAN,4,4
	.comm	IWL_POWER_SCHEME_CAM,4,4
	.comm	DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK,4,4
	.comm	DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
