	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mccic_irq                      ## -- Begin function mccic_irq
	.p2align	4, 0x90
_mccic_irq:                             ## @mccic_irq
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_REG_IRQSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRAMEIRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mcam_reg_write
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	leaq	16(%r13), %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IRQ_EOF0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	testl	%r14d, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CF_FRAME_SOF0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mcam_frame_complete
	movq	_CF_FRAME_SOF0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	8(%r13), %rax
	movl	$1, %r12d
	movq	_B_DMA_sg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r13), %eax
	movl	$1, %r12d
LBB0_8:
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_IRQ_SOF0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	testl	%r14d, %edx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_CF_FRAME_SOF0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %eax
	jmp	LBB0_12
LBB0_1:
	xorl	%r12d, %r12d
LBB0_13:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.14:
	movq	_CF_DMA_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	16(%r13), %rsi
	callq	_set_bit
	movq	8(%r13), %rax
	movq	_B_DMA_sg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_mcam_ctlr_stop
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_IRQSTAT,4,2                ## @REG_IRQSTAT
	.comm	_FRAMEIRQS,4,2                  ## @FRAMEIRQS
	.comm	_IRQ_EOF0,4,2                   ## @IRQ_EOF0
	.comm	_CF_FRAME_SOF0,8,3              ## @CF_FRAME_SOF0
	.comm	_B_DMA_sg,8,3                   ## @B_DMA_sg
	.comm	_IRQ_SOF0,4,2                   ## @IRQ_SOF0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_CF_DMA_ACTIVE,8,3              ## @CF_DMA_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mccic_irq                      ; -- Begin function mccic_irq
	.p2align	2
_mccic_irq:                             ; @mccic_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_IRQSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_IRQSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FRAMEIRQS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAMEIRQS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mcam_reg_write
	ldr	w8, [x19]
Lloh6:
	adrp	x25, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	adrp	x24, _B_DMA_sg@GOTPAGE
Lloh9:
	ldr	x24, [x24, _B_DMA_sg@GOTPAGEOFF]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x23, #0
	mov	w21, #0
	add	x22, x19, #16
Lloh10:
	adrp	x27, _IRQ_EOF0@GOTPAGE
Lloh11:
	ldr	x27, [x27, _IRQ_EOF0@GOTPAGEOFF]
Lloh12:
	adrp	x26, _CF_FRAME_SOF0@GOTPAGE
Lloh13:
	ldr	x26, [x26, _CF_FRAME_SOF0@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	w8, [x19]
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	lsl	w8, w8, w23
	tst	w8, w20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x0, x23, x8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_mcam_frame_complete
	ldr	x8, [x26]
	add	x0, x23, x8
	mov	x1, x22
	bl	_clear_bit
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #1
	b	LBB0_2
LBB0_7:
	mov	w21, #0
	b	LBB0_14
LBB0_8:
	ldr	w8, [x19]
	mov	w21, #1
LBB0_9:
	cbz	w8, LBB0_14
; %bb.10:
	mov	x23, #0
Lloh14:
	adrp	x27, _IRQ_SOF0@GOTPAGE
Lloh15:
	ldr	x27, [x27, _IRQ_SOF0@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x27]
	lsl	w9, w9, w23
	tst	w9, w20
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x26]
	add	x0, x23, x8
	mov	x1, x22
	bl	_set_bit
	ldr	w21, [x25]
	ldr	w8, [x19]
	b	LBB0_11
LBB0_14:
	ldr	w8, [x25]
	cmp	w21, w8
	b.ne	LBB0_17
; %bb.15:
Lloh16:
	adrp	x8, _CF_DMA_ACTIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CF_DMA_ACTIVE@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	add	x1, x19, #16
	bl	_set_bit
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mcam_ctlr_stop
LBB0_17:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_IRQSTAT,4,2                ; @REG_IRQSTAT
	.comm	_FRAMEIRQS,4,2                  ; @FRAMEIRQS
	.comm	_IRQ_EOF0,4,2                   ; @IRQ_EOF0
	.comm	_CF_FRAME_SOF0,8,3              ; @CF_FRAME_SOF0
	.comm	_B_DMA_sg,8,3                   ; @B_DMA_sg
	.comm	_IRQ_SOF0,4,2                   ; @IRQ_SOF0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_CF_DMA_ACTIVE,8,3              ; @CF_DMA_ACTIVE
.subsections_via_symbols
