	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_irq_handle_error
_iwl_pcie_irq_handle_error:             ## @iwl_pcie_irq_handle_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
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r15
	movq	24(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_5:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	(%rax), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_del_timer
	movq	8(%r14), %rax
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_iwl_trans_fw_error
	movq	_STATUS_SYNC_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_2:
	movq	_APMG_CLK_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iwl_read_prph
	movq	_APMS_CLK_VAL_MRB_FUNC_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_APMG_PS_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iwl_read_prph
	movq	_APMG_PS_CTRL_VAL_RESET_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_STATUS_SYNC_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	16(%r14), %edi
	callq	_iwl_op_mode_wimax_active
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_APMG_CLK_CTRL_REG,4,2          ## @APMG_CLK_CTRL_REG
	.comm	_APMS_CLK_VAL_MRB_FUNC_MODE,4,2 ## @APMS_CLK_VAL_MRB_FUNC_MODE
	.comm	_APMG_PS_CTRL_REG,4,2           ## @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_VAL_RESET_REQ,4,2 ## @APMG_PS_CTRL_VAL_RESET_REQ
	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ## @STATUS_SYNC_HCMD_ACTIVE
	.no_dead_strip	_iwl_pcie_irq_handle_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_irq_handle_error
_iwl_pcie_irq_handle_error:             ; @iwl_pcie_irq_handle_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	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x19, x0
	ldr	x8, [x20, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x9, [x8]
	ldrsw	x9, [x9]
	cmp	x21, x9
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_del_timer
	ldr	x8, [x20, #8]
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_iwl_trans_fw_error
Lloh0:
	adrp	x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
LBB0_8:
	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	_wake_up
LBB0_9:
Lloh3:
	adrp	x8, _APMG_CLK_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APMG_CLK_CTRL_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iwl_read_prph
Lloh6:
	adrp	x8, _APMS_CLK_VAL_MRB_FUNC_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APMS_CLK_VAL_MRB_FUNC_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _APMG_PS_CTRL_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APMG_PS_CTRL_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iwl_read_prph
Lloh12:
	adrp	x8, _APMG_PS_CTRL_VAL_RESET_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APMG_PS_CTRL_VAL_RESET_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_11:
Lloh15:
	adrp	x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	ldr	w0, [x20, #16]
	bl	_iwl_op_mode_wimax_active
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_APMG_CLK_CTRL_REG,4,2          ; @APMG_CLK_CTRL_REG
	.comm	_APMS_CLK_VAL_MRB_FUNC_MODE,4,2 ; @APMS_CLK_VAL_MRB_FUNC_MODE
	.comm	_APMG_PS_CTRL_REG,4,2           ; @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_VAL_RESET_REQ,4,2 ; @APMG_PS_CTRL_VAL_RESET_REQ
	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ; @STATUS_SYNC_HCMD_ACTIVE
	.no_dead_strip	_iwl_pcie_irq_handle_error
.subsections_via_symbols
