	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_power_build_cmd
_iwl_power_build_cmd:                   ## @iwl_power_build_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_force_cam@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_power_sleep_cam_cmd        ## TAILCALL
LBB0_1:
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	movl	$1, %r15d
	cmovnel	%ecx, %r15d
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_IWL_POWER_INDEX_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	jmp	LBB0_12
LBB0_3:
	movl	(%rax), %r12d
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_iwl_tt_is_low_power_state
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_iwl_tt_current_power_mode
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
LBB0_12:
	movl	%r15d, %ecx
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_static_sleep_cmd           ## TAILCALL
LBB0_4:
	movq	_IEEE80211_CONF_IDLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_IWL_POWER_INDEX_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$20, %ecx
	jmp	LBB0_13
LBB0_9:
	testl	%r12d, %r13d
	je	LBB0_17
## %bb.10:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	jns	LBB0_11
## %bb.14:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IWL_POWER_INDEX_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	LBB0_8
## %bb.15:
	movq	_IWL_POWER_NUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_8
## %bb.16:
	decq	%rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_force_cam,8,3                  ## @force_cam
	.comm	_IWL_POWER_INDEX_5,8,3          ## @IWL_POWER_INDEX_5
	.comm	_IEEE80211_CONF_IDLE,4,2        ## @IEEE80211_CONF_IDLE
	.comm	_iwlwifi_mod_params,8,3         ## @iwlwifi_mod_params
	.comm	_IWL_POWER_INDEX_1,8,3          ## @IWL_POWER_INDEX_1
	.comm	_IWL_POWER_NUM,8,3              ## @IWL_POWER_NUM
	.no_dead_strip	_iwl_power_build_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_power_build_cmd
_iwl_power_build_cmd:                   ; @iwl_power_build_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _force_cam@GOTPAGE
Lloh1:
	ldr	x8, [x8, _force_cam@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_iwl_power_sleep_cam_cmd
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cmp	x9, #0
	csinc	w21, w9, wzr, ne
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _IWL_POWER_INDEX_5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_POWER_INDEX_5@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	b	LBB0_7
LBB0_4:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _IEEE80211_CONF_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CONF_PS@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_iwl_tt_is_low_power_state
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_iwl_tt_current_power_mode
	mov	x2, x0
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_iwl_static_sleep_cmd
LBB0_9:
Lloh9:
	adrp	x8, _IEEE80211_CONF_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CONF_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.10:
Lloh12:
	adrp	x8, _IWL_POWER_INDEX_5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_POWER_INDEX_5@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #20
	b	LBB0_8
LBB0_11:
	and	w8, w23, w22
	cbz	w8, LBB0_1
; %bb.12:
	ldr	x2, [x20]
	tbz	x2, #63, LBB0_7
; %bb.13:
Lloh15:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh16:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _IWL_POWER_INDEX_1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IWL_POWER_INDEX_1@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x9]
Lloh21:
	adrp	x9, _IWL_POWER_NUM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IWL_POWER_NUM@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x8, x9, #0, gt
	b.gt	LBB0_7
; %bb.14:
	sub	x2, x8, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_force_cam,8,3                  ; @force_cam
	.comm	_IWL_POWER_INDEX_5,8,3          ; @IWL_POWER_INDEX_5
	.comm	_IEEE80211_CONF_IDLE,4,2        ; @IEEE80211_CONF_IDLE
	.comm	_iwlwifi_mod_params,8,3         ; @iwlwifi_mod_params
	.comm	_IWL_POWER_INDEX_1,8,3          ; @IWL_POWER_INDEX_1
	.comm	_IWL_POWER_NUM,8,3              ; @IWL_POWER_NUM
	.no_dead_strip	_iwl_power_build_cmd
.subsections_via_symbols
