	.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	%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	%rsi, %rbx
	movl	(%rsi), %edi
	movl	16(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movq	_GSC_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gsc_read
	movl	%eax, %r15d
	movq	_GSC_IRQ_STATUS_OR_IRQ@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_2:
	movq	_GSC_IRQ_STATUS_OR_FRM_DONE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_gsc_get_src_buf_index
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_gsc_get_dst_buf_index
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	orl	%r15d, %r12d
	cmovsl	%r13d, %r14d
LBB0_4:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_exynos_drm_ipp_task_done
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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	"gsc id[%d]\n"

	.comm	_GSC_IRQ,4,2                    ## @GSC_IRQ
	.comm	_GSC_IRQ_STATUS_OR_IRQ,4,2      ## @GSC_IRQ_STATUS_OR_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"occurred overflow at %d, status 0x%x.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GSC_IRQ_STATUS_OR_FRM_DONE,4,2 ## @GSC_IRQ_STATUS_OR_FRM_DONE
L_.str.2:                               ## @.str.2
	.asciz	"occurred frame done at %d, status 0x%x.\n"

L_.str.3:                               ## @.str.3
	.asciz	"buf_id_src[%d]buf_id_dst[%d]\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	ldr	w0, [x1]
	ldr	w2, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
Lloh2:
	adrp	x8, _GSC_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSC_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_gsc_read
	mov	x21, x0
Lloh5:
	adrp	x8, _GSC_IRQ_STATUS_OR_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSC_IRQ_STATUS_OR_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x23, _EINVAL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w2, [x19, #16]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_dev_err
	ldr	w8, [x23]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh12:
	adrp	x8, _GSC_IRQ_STATUS_OR_FRM_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSC_IRQ_STATUS_OR_FRM_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w2, [x19, #16]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_dev_dbg
	mov	x0, x19
	bl	_gsc_get_src_buf_index
	mov	x21, x0
	mov	x0, x19
	bl	_gsc_get_dst_buf_index
	mov	x22, x0
	ldr	w0, [x19]
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_DEBUG_KMS
	orr	w8, w22, w21
	ldr	w9, [x23]
	cmp	w8, #0
	csneg	w20, w20, w9, ge
LBB0_5:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_7
; %bb.6:
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x21
	mov	x1, x20
	bl	_exynos_drm_ipp_task_done
LBB0_7:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gsc id[%d]\n"

	.comm	_GSC_IRQ,4,2                    ; @GSC_IRQ
	.comm	_GSC_IRQ_STATUS_OR_IRQ,4,2      ; @GSC_IRQ_STATUS_OR_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"occurred overflow at %d, status 0x%x.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GSC_IRQ_STATUS_OR_FRM_DONE,4,2 ; @GSC_IRQ_STATUS_OR_FRM_DONE
l_.str.2:                               ; @.str.2
	.asciz	"occurred frame done at %d, status 0x%x.\n"

l_.str.3:                               ; @.str.3
	.asciz	"buf_id_src[%d]buf_id_dst[%d]\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_gsc_irq_handler
.subsections_via_symbols
