	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_irq_handler
_gsc_irq_handler:                       ## @gsc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_gsc_hw_get_irq_status
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gsc_hw_clear_irq
	movq	_GSC_IRQ_OVERRUN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_10
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_ST_M2M_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gsc_hw_enable_control
	movq	_ST_M2M_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ST_M2M_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	leaq	4(%r15), %rdi
	callq	_wake_up
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r15), %edi
	callq	_v4l2_m2m_get_curr_priv
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	cmpl	$0, 4(%rax)
	je	LBB0_5
## %bb.8:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_gsc_m2m_job_finish
	movl	(%r14), %eax
	movq	_GSC_CTX_STOP_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_wake_up
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_IRQ_OVERRUN,4,2            ## @GSC_IRQ_OVERRUN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Local path input over-run interrupt has occurred!\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.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	_GSC_CTX_STOP_REQ,4,2           ## @GSC_CTX_STOP_REQ
	.no_dead_strip	_gsc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_irq_handler
_gsc_irq_handler:                       ; @gsc_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	_gsc_hw_get_irq_status
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gsc_hw_clear_irq
Lloh0:
	adrp	x8, _GSC_IRQ_OVERRUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSC_IRQ_OVERRUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_spin_lock
Lloh5:
	adrp	x8, _ST_M2M_PEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_M2M_PEND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_gsc_hw_enable_control
Lloh8:
	adrp	x8, _ST_M2M_SUSPENDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_M2M_SUSPENDING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_7
; %bb.4:
Lloh11:
	adrp	x8, _ST_M2M_SUSPENDED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ST_M2M_SUSPENDED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	add	x0, x19, #4
	bl	_wake_up
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
LBB0_6:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_v4l2_m2m_get_curr_priv
	cbz	x0, LBB0_5
; %bb.8:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.9:
	mov	x0, x19
	bl	_spin_unlock
Lloh17:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gsc_m2m_job_finish
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _GSC_CTX_STOP_REQ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GSC_CTX_STOP_REQ@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.10:
	bic	w8, w8, w9
	str	w8, [x20]
	add	x0, x19, #4
	bl	_wake_up
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_IRQ_OVERRUN,4,2            ; @GSC_IRQ_OVERRUN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Local path input over-run interrupt has occurred!\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.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	_GSC_CTX_STOP_REQ,4,2           ; @GSC_CTX_STOP_REQ
	.no_dead_strip	_gsc_irq_handler
.subsections_via_symbols
