	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_nic_restart            ## -- Begin function iwl_mvm_nic_restart
	.p2align	4, 0x90
_iwl_mvm_nic_restart:                   ## @iwl_mvm_nic_restart
	.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, %r14d
	movq	%rdi, %rbx
	addq	$56, %rdi
	callq	_iwl_abort_notification_waits
	movq	24(%rbx), %rdi
	callq	_iwl_dbg_tlv_del_timers
	movq	%rbx, %rdi
	callq	_iwl_mvm_report_scan_aborted
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.21:
	addq	$16, %rbx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_fw_error_collect           ## TAILCALL
LBB0_2:
	movq	_IWL_MVM_STATUS_IN_HW_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movq	_THIS_MODULE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movq	%rax, %r14
	movq	24(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_iwl_mvm_reprobe_wk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_8:
	movq	_IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR                        ## TAILCALL
LBB0_22:
	movl	(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_module_put                     ## TAILCALL
LBB0_10:
	movq	16(%rbx), %rax
	movq	_IWL_UCODE_REGULAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.11:
	cmpq	$0, 48(%rbx)
	je	LBB0_20
## %bb.12:
	movq	_STATUS_TRANS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.14:
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, 32(%rbx)
	movq	24(%rbx), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	movl	%r13d, %ecx
	callq	_iwl_trans_read_mem_bytes
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_fw_error_collect
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.17:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_19
## %bb.18:
	decq	%rax
	movq	%rax, (%rbx)
LBB0_19:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	8(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_restart_hw           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ## @IWL_MVM_STATUS_IN_HW_RESTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware error during reconfiguration - reprobe!\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"Module is being unloaded - abort\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_iwl_mvm_reprobe_wk,4,2         ## @iwl_mvm_reprobe_wk
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ## @IWL_MVM_STATUS_HW_RESTART_REQUESTED
L_.str.2:                               ## @.str.2
	.asciz	"HW restart already requested, but not started\n"

	.comm	_IWL_UCODE_REGULAR,8,3          ## @IWL_UCODE_REGULAR
	.comm	_STATUS_TRANS_DEAD,4,2          ## @STATUS_TRANS_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_nic_restart            ; -- Begin function iwl_mvm_nic_restart
	.p2align	2
_iwl_mvm_nic_restart:                   ; @iwl_mvm_nic_restart
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	add	x0, x0, #56
	bl	_iwl_abort_notification_waits
	ldr	x0, [x19, #24]
	bl	_iwl_dbg_tlv_del_timers
	mov	x0, x19
	bl	_iwl_mvm_report_scan_aborted
	cbz	w20, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
	add	x0, x19, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iwl_fw_error_collect
LBB0_3:
Lloh0:
	adrp	x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #12
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh5:
	adrp	x21, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_try_module_get
	cbz	w0, LBB0_9
; %bb.5:
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	str	w8, [x0, #4]
Lloh10:
	adrp	x8, _iwl_mvm_reprobe_wk@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iwl_mvm_reprobe_wk@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_schedule_work
LBB0_7:
Lloh13:
	adrp	x25, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGE
Lloh14:
	ldr	x25, [x25, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IWL_ERR
LBB0_11:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_module_put
LBB0_12:
	mov	x22, x19
	ldr	x8, [x22, #16]!
Lloh19:
	adrp	x9, _IWL_UCODE_REGULAR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IWL_UCODE_REGULAR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
; %bb.14:
Lloh22:
	adrp	x8, _STATUS_TRANS_DEAD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STATUS_TRANS_DEAD@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_16
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x8, [x19, #40]
	ldr	w23, [x8]
	cbz	w23, LBB0_19
; %bb.17:
	ldr	w24, [x8, #4]
Lloh25:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.18:
	mov	x2, x0
	str	x0, [x19, #32]
	ldr	x0, [x19, #24]
	mov	x1, x24
	mov	x3, x23
	bl	_iwl_trans_read_mem_bytes
LBB0_19:
	mov	x0, x22
	bl	_iwl_fw_error_collect
	cbz	w20, LBB0_22
; %bb.20:
	ldr	x8, [x19]
	subs	x8, x8, #1
	b.lt	LBB0_22
; %bb.21:
	str	x8, [x19]
LBB0_22:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ieee80211_restart_hw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ; @IWL_MVM_STATUS_IN_HW_RESTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware error during reconfiguration - reprobe!\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"Module is being unloaded - abort\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_iwl_mvm_reprobe_wk,4,2         ; @iwl_mvm_reprobe_wk
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ; @IWL_MVM_STATUS_HW_RESTART_REQUESTED
l_.str.2:                               ; @.str.2
	.asciz	"HW restart already requested, but not started\n"

	.comm	_IWL_UCODE_REGULAR,8,3          ; @IWL_UCODE_REGULAR
	.comm	_STATUS_TRANS_DEAD,4,2          ; @STATUS_TRANS_DEAD
.subsections_via_symbols
