	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_power_update_device    ## -- Begin function iwl_mvm_power_update_device
	.p2align	4, 0x90
_iwl_mvm_power_update_device:           ## @iwl_mvm_power_update_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -24(%rbp)
	movq	_iwlmvm_mod_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IWL_POWER_SCHEME_CAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_5:
	movq	_DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, %ebx
	movl	%ebx, -24(%rbp)
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_POWER
	movq	_POWER_TABLE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, %ebx
	movl	%eax, -24(%rbp)
	cmpq	$0, 8(%r14)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_iwlmvm_mod_params,8,3          ## @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ## @IWL_POWER_SCHEME_CAM
	.comm	_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK,4,2 ## @DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK
	.comm	_DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK,4,2 ## @DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending device power command with flags = 0x%X\n"

	.comm	_POWER_TABLE_CMD,4,2            ## @POWER_TABLE_CMD
	.comm	_IWL_UCODE_WOWLAN,8,3           ## @IWL_UCODE_WOWLAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_power_update_device    ; -- Begin function iwl_mvm_power_update_device
	.p2align	2
_iwl_mvm_power_update_device:           ; @iwl_mvm_power_update_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _iwlmvm_mod_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwlmvm_mod_params@GOTPAGEOFF]
	str	wzr, [sp, #8]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IWL_POWER_SCHEME_CAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_POWER_SCHEME_CAM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w20, #0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	orr	w20, w20, w0
	str	w20, [sp, #8]
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_DEBUG_POWER
Lloh11:
	adrp	x8, _POWER_TABLE_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_TABLE_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #4
	bl	_iwl_mvm_send_cmd_pdu
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh14:
	adrp	x8, _DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	x20, x0
	str	w0, [sp, #8]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_iwlmvm_mod_params,8,3          ; @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ; @IWL_POWER_SCHEME_CAM
	.comm	_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK,4,2 ; @DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK
	.comm	_DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK,4,2 ; @DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending device power command with flags = 0x%X\n"

	.comm	_POWER_TABLE_CMD,4,2            ; @POWER_TABLE_CMD
	.comm	_IWL_UCODE_WOWLAN,8,3           ; @IWL_UCODE_WOWLAN
.subsections_via_symbols
