	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_int_cause_ict
_iwl_pcie_int_cause_ict:                ## @iwl_pcie_int_cause_ict
	.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	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_trace_iwlwifi_dev_irq
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	(%r12), %rsi
	movl	%eax, %edx
	callq	_trace_iwlwifi_dev_ict_read
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movq	_ICT_COUNT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	orl	%ebx, %r13d
	movq	(%r12), %rdx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_IWL_DEBUG_ISR
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	$0, (%rcx,%rax,8)
	movq	(%r12), %rax
	incq	%rax
	movslq	(%r15), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movq	%rdx, (%r12)
	movq	(%rcx,%rdx,8), %rdi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	(%r12), %rsi
	movl	%eax, %edx
	callq	_trace_iwlwifi_dev_ict_read
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	cmpl	$-1, %r13d
	cmovnel	%r13d, %ecx
	movl	%ecx, %eax
	orl	$32768, %eax                    ## imm = 0x8000
	testl	$786432, %ecx                   ## imm = 0xC0000
	cmovel	%ecx, %eax
	movzbl	%al, %ecx
	shll	$16, %eax
	andl	$-16777216, %eax                ## imm = 0xFF000000
	orl	%ecx, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICT index %d value 0x%08X\n"

	.comm	_ICT_COUNT,4,2                  ## @ICT_COUNT
	.no_dead_strip	_iwl_pcie_int_cause_ict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_int_cause_ict
_iwl_pcie_int_cause_ict:                ; @iwl_pcie_int_cause_ict
	.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, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	ldr	w0, [x19]
	bl	_trace_iwlwifi_dev_irq
	ldp	x9, x8, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x19]
	ldr	x1, [x20]
	mov	x2, x22
	bl	_trace_iwlwifi_dev_ict_read
	cbz	w22, LBB0_4
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _ICT_COUNT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ICT_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	orr	w23, w22, w23
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_IWL_DEBUG_ISR
	ldp	x9, x8, [x20]
	str	xzr, [x8, x9, lsl #3]
	ldr	x9, [x20]
	add	x9, x9, #1
	ldrsw	x10, [x24]
	sub	x10, x10, #1
	and	x9, x9, x10
	str	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x19]
	ldr	x1, [x20]
	mov	x2, x22
	bl	_trace_iwlwifi_dev_ict_read
	cbnz	w22, LBB0_2
; %bb.3:
	cmn	w23, #1
	csel	w8, wzr, w23, eq
	orr	w9, w8, #0x8000
	tst	w8, #0xc0000
	csel	w8, w8, w9, eq
	lsr	w9, w8, #8
	and	w0, w8, #0xff
	bfi	w0, w9, #24, #8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICT index %d value 0x%08X\n"

	.comm	_ICT_COUNT,4,2                  ; @ICT_COUNT
	.no_dead_strip	_iwl_pcie_int_cause_ict
.subsections_via_symbols
