	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_irq_handler
_fimc_irq_handler:                      ## @fimc_irq_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_fimc_hw_clear_irq
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_ST_M2M_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_ST_M2M_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ST_M2M_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	12(%r14), %rdi
	callq	_wake_up
	jmp	LBB0_11
LBB0_6:
	movq	_ST_CAPT_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_ST_CAPT_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%esi, %esi
	cmpl	$1, 4(%r14)
	setne	%sil
	jmp	LBB0_10
LBB0_3:
	movl	16(%r14), %edi
	callq	_v4l2_m2m_get_curr_priv
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fimc_m2m_job_finish
	movl	(%rbx), %eax
	movq	_FIMC_CTX_SHUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.5:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_wake_up
	jmp	LBB0_12
LBB0_8:
	movl	$1, %esi
LBB0_10:
	movq	%r14, %rdi
	callq	_fimc_capture_irq_handler
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_M2M_PEND,4,2                ## @ST_M2M_PEND
	.comm	_ST_M2M_SUSPENDING,4,2          ## @ST_M2M_SUSPENDING
	.comm	_ST_M2M_SUSPENDED,4,2           ## @ST_M2M_SUSPENDED
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_FIMC_CTX_SHUT,4,2              ## @FIMC_CTX_SHUT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ST_CAPT_PEND,4,2               ## @ST_CAPT_PEND
	.comm	_ST_CAPT_JPEG,4,2               ## @ST_CAPT_JPEG
	.no_dead_strip	_fimc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_irq_handler
_fimc_irq_handler:                      ; @fimc_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_fimc_hw_clear_irq
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _ST_M2M_PEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_M2M_PEND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ST_M2M_SUSPENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_M2M_SUSPENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _ST_M2M_SUSPENDED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_M2M_SUSPENDED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	add	x0, x19, #12
	bl	_wake_up
	b	LBB0_11
LBB0_3:
Lloh9:
	adrp	x8, _ST_CAPT_PEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST_CAPT_PEND@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.4:
Lloh12:
	adrp	x8, _ST_CAPT_JPEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ST_CAPT_JPEG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cset	w1, ne
	b	LBB0_10
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_v4l2_m2m_get_curr_priv
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock
Lloh15:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fimc_m2m_job_finish
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _FIMC_CTX_SHUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FIMC_CTX_SHUT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	bic	w8, w8, w9
	str	w8, [x20]
	add	x0, x19, #12
	bl	_wake_up
	b	LBB0_12
LBB0_9:
	mov	w1, #1
LBB0_10:
	mov	x0, x19
	bl	_fimc_capture_irq_handler
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock
LBB0_12:
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_M2M_PEND,4,2                ; @ST_M2M_PEND
	.comm	_ST_M2M_SUSPENDING,4,2          ; @ST_M2M_SUSPENDING
	.comm	_ST_M2M_SUSPENDED,4,2           ; @ST_M2M_SUSPENDED
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_FIMC_CTX_SHUT,4,2              ; @FIMC_CTX_SHUT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ST_CAPT_PEND,4,2               ; @ST_CAPT_PEND
	.comm	_ST_CAPT_JPEG,4,2               ; @ST_CAPT_JPEG
	.no_dead_strip	_fimc_irq_handler
.subsections_via_symbols
