	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_fw_error
_iwlagn_fw_error:                       ## @iwlagn_fw_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_IWL_DL_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_iwl_have_debug_level
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_print_rx_config_cmd
LBB0_2:
	movl	$0, (%rbx)
	movq	_STATUS_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	leaq	36(%rbx), %rdi
	callq	_iwl_abort_notification_waits
	movq	_STATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	subq	8(%rbx), %rdi
	callq	_jiffies_to_msecs
	movq	%r15, 8(%rbx)
	movq	_IWL_MIN_RELOAD_DURATION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_4
## %bb.6:
	movq	$0, 16(%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	16(%rbx), %rax
	incq	%rax
	movq	%rax, 16(%rbx)
	movq	_IWL_MAX_CONTINUE_RELOAD_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
LBB0_7:
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_FW
	movl	28(%rbx), %edi
	addq	$24, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_FW                   ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_DL_FW,4,2                  ## @IWL_DL_FW
	.comm	_IWL_RXON_CTX_BSS,4,2           ## @IWL_RXON_CTX_BSS
	.comm	_STATUS_FW_ERROR,4,2            ## @STATUS_FW_ERROR
	.comm	_STATUS_READY,4,2               ## @STATUS_READY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IWL_MIN_RELOAD_DURATION,4,2    ## @IWL_MIN_RELOAD_DURATION
	.comm	_IWL_MAX_CONTINUE_RELOAD_CNT,8,3 ## @IWL_MAX_CONTINUE_RELOAD_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG_ON, Stop restarting\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_iwlwifi_mod_params,8,3         ## @iwlwifi_mod_params
L_.str.1:                               ## @.str.1
	.asciz	"Restarting adapter due to uCode error.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Detected FW error, but not restarting\n"

	.no_dead_strip	_iwlagn_fw_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_fw_error
_iwlagn_fw_error:                       ; @iwlagn_fw_error
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IWL_DL_FW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_DL_FW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_iwl_have_debug_level
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_print_rx_config_cmd
LBB0_2:
	mov	x22, x19
	str	wzr, [x22], #36
Lloh6:
	adrp	x8, _STATUS_FW_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_FW_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x20, x19, #32
	mov	x1, x20
	bl	_set_bit
	mov	x0, x22
	bl	_iwl_abort_notification_waits
Lloh9:
	adrp	x8, _STATUS_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATUS_READY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	cbnz	w21, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	ldr	x8, [x19, #8]
	sub	x0, x21, x8
	bl	_jiffies_to_msecs
	str	x21, [x19, #8]
Lloh15:
	adrp	x8, _IWL_MIN_RELOAD_DURATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IWL_MIN_RELOAD_DURATION@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_5
; %bb.4:
	str	xzr, [x19, #16]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
Lloh18:
	adrp	x9, _IWL_MAX_CONTINUE_RELOAD_CNT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IWL_MAX_CONTINUE_RELOAD_CNT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_11
LBB0_6:
Lloh21:
	adrp	x8, _STATUS_EXIT_PENDING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh24:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh25:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_FW
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_work
LBB0_10:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IWL_DEBUG_FW
LBB0_11:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IWL_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DL_FW,4,2                  ; @IWL_DL_FW
	.comm	_IWL_RXON_CTX_BSS,4,2           ; @IWL_RXON_CTX_BSS
	.comm	_STATUS_FW_ERROR,4,2            ; @STATUS_FW_ERROR
	.comm	_STATUS_READY,4,2               ; @STATUS_READY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IWL_MIN_RELOAD_DURATION,4,2    ; @IWL_MIN_RELOAD_DURATION
	.comm	_IWL_MAX_CONTINUE_RELOAD_CNT,8,3 ; @IWL_MAX_CONTINUE_RELOAD_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG_ON, Stop restarting\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_iwlwifi_mod_params,8,3         ; @iwlwifi_mod_params
l_.str.1:                               ; @.str.1
	.asciz	"Restarting adapter due to uCode error.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Detected FW error, but not restarting\n"

	.no_dead_strip	_iwlagn_fw_error
.subsections_via_symbols
