	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iwl_mvm_resume
___iwl_mvm_resume:                      ## @__iwl_mvm_resume
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	48(%rdi), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movl	%eax, %r13d
	movq	48(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_D0I3_END_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_iwl_mvm_get_bss_vif
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	40(%r15), %r13
	movq	%r13, %rdi
	callq	_iwl_fw_dbg_read_d3_debug_data
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_check_rt_status
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_STATUS_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r15), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_iwl_mvm_dump_nic_error_log
	movq	_iwl_dump_desc_assert@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_fw_dbg_collect_desc
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_3:
	movq	32(%r15), %rdi
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	sete	%cl
	leaq	-56(%rbp), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_trans_d3_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movl	-56(%rbp), %eax
	movq	_IWL_D3_STATUS_ALIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.8:
	movq	_D0I3_END_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_INFO
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r15, %rdi
	callq	_iwl_mvm_free_nd
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
LBB0_19:
	movl	4(%r15), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_iwl_mvm_d3_disconnect_iter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmoveq	%rcx, %r12
	movq	%r12, %rcx
	callq	_ieee80211_iterate_active_interfaces_rtnl
LBB0_20:
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.21:
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.23:
	movq	_D0I3_END_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	movq	_IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	$1, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_iwl_mvm_update_changed_regdom
	movq	%r15, %rdi
	callq	_iwl_mvm_ppag_send_cmd
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.13:
	cmpq	$0, 24(%r15)
	je	LBB0_12
## %bb.14:
	movq	_IWL_MVM_SCAN_NETDETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_iwl_mvm_scan_stop
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_iwl_mvm_sar_select_profile
	cmpq	$0, 24(%r15)
	je	LBB0_12
LBB0_15:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_query_netdetect_reasons
	jmp	LBB0_20
LBB0_12:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_query_wakeup_reasons
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ebx
	movl	%eax, %edx
	callq	_IWL_ERR
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ## @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_IWL_UCODE_TLV_CAPA_D0I3_END_FIRST,4,2 ## @IWL_UCODE_TLV_CAPA_D0I3_END_FIRST
	.comm	_STATUS_FW_ERROR,4,2            ## @STATUS_FW_ERROR
	.comm	_iwl_dump_desc_assert,4,2       ## @iwl_dump_desc_assert
	.comm	_IWL_D3_STATUS_ALIVE,4,2        ## @IWL_D3_STATUS_ALIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device was reset during suspend\n"

	.comm	_D0I3_END_CMD,4,2               ## @D0I3_END_CMD
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send D0I3_END_CMD first (%d)\n"

	.comm	_IWL_MVM_SCAN_NETDETECT,4,2     ## @IWL_MVM_SCAN_NETDETECT
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_d3_disconnect_iter,4,2 ## @iwl_mvm_d3_disconnect_iter
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ## @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.no_dead_strip	___iwl_mvm_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iwl_mvm_resume
___iwl_mvm_resume:                      ; @__iwl_mvm_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #48]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	mov	x20, x0
	ldr	x0, [x19, #48]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_CAPA_D0I3_END_FIRST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_D0I3_END_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_capa
	mov	x21, x0
	add	x24, x19, #8
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x19
	bl	_iwl_mvm_get_bss_vif
	mov	x23, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_3
; %bb.1:
	add	x25, x19, #40
	mov	x0, x25
	bl	_iwl_fw_dbg_read_d3_debug_data
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_mvm_check_rt_status
	cbz	x0, LBB0_12
; %bb.2:
Lloh6:
	adrp	x8, _STATUS_FW_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_FW_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_iwl_mvm_dump_nic_error_log
Lloh9:
	adrp	x1, _iwl_dump_desc_assert@GOTPAGE
Lloh10:
	ldr	x1, [x1, _iwl_dump_desc_assert@GOTPAGEOFF]
	mov	x0, x25
	mov	w2, #0
	mov	w3, #0
	bl	_iwl_fw_dbg_collect_desc
LBB0_3:
	mov	w25, #1
LBB0_4:
	mov	x0, x19
	bl	_iwl_mvm_free_nd
	mov	x0, x24
	bl	_mutex_unlock
	mov	w0, #0
	cbnz	w22, LBB0_6
LBB0_5:
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
Lloh14:
	adrp	x9, _iwl_mvm_d3_disconnect_iter@GOTPAGE
Lloh15:
	ldr	x9, [x9, _iwl_mvm_d3_disconnect_iter@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	cmp	w0, #0
	csel	x3, xzr, x23, eq
	mov	x0, x8
	bl	_ieee80211_iterate_active_interfaces_rtnl
LBB0_6:
	cmp	w20, #0
	ccmp	w25, #0, #0, ne
	b.eq	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	cbz	w21, LBB0_11
; %bb.9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh20:
	adrp	x8, _D0I3_END_CMD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D0I3_END_CMD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_iwl_mvm_send_cmd_pdu
	cbnz	w0, LBB0_7
	b	LBB0_10
LBB0_12:
	ldr	x0, [x19, #32]
	cmp	w20, #0
	cset	w3, eq
	add	x1, sp, #12
	mov	x2, x22
	bl	_iwl_trans_d3_resume
	mov	x25, x0
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w8, [sp, #12]
Lloh23:
	adrp	x9, _IWL_D3_STATUS_ALIVE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IWL_D3_STATUS_ALIVE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.14:
	cbz	w21, LBB0_18
; %bb.15:
Lloh26:
	adrp	x8, _D0I3_END_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D0I3_END_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_iwl_mvm_send_cmd_pdu
	mov	x25, x0
	tbz	w0, #31, LBB0_19
; %bb.16:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_IWL_ERR
	b	LBB0_4
LBB0_17:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_INFO
	mov	w25, #0
	b	LBB0_4
LBB0_18:
	mov	w25, #0
LBB0_19:
	mov	x0, x19
	bl	_iwl_mvm_update_changed_regdom
	mov	x0, x19
	bl	_iwl_mvm_ppag_send_cmd
	cbz	w20, LBB0_22
; %bb.20:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
; %bb.21:
Lloh33:
	adrp	x8, _IWL_MVM_SCAN_NETDETECT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IWL_MVM_SCAN_NETDETECT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_mvm_scan_stop
	mov	x25, x0
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_iwl_mvm_sar_select_profile
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
LBB0_23:
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_mvm_query_netdetect_reasons
	b	LBB0_6
LBB0_24:
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_mvm_query_wakeup_reasons
	cbnz	w22, LBB0_6
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ; @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_IWL_UCODE_TLV_CAPA_D0I3_END_FIRST,4,2 ; @IWL_UCODE_TLV_CAPA_D0I3_END_FIRST
	.comm	_STATUS_FW_ERROR,4,2            ; @STATUS_FW_ERROR
	.comm	_iwl_dump_desc_assert,4,2       ; @iwl_dump_desc_assert
	.comm	_IWL_D3_STATUS_ALIVE,4,2        ; @IWL_D3_STATUS_ALIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device was reset during suspend\n"

	.comm	_D0I3_END_CMD,4,2               ; @D0I3_END_CMD
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send D0I3_END_CMD first (%d)\n"

	.comm	_IWL_MVM_SCAN_NETDETECT,4,2     ; @IWL_MVM_SCAN_NETDETECT
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_d3_disconnect_iter,4,2 ; @iwl_mvm_d3_disconnect_iter
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ; @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.no_dead_strip	___iwl_mvm_resume
.subsections_via_symbols
