	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotator_irq_handler
_rotator_irq_handler:                   ## @rotator_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_rotator_reg_get_irq_status
	movl	%eax, %r14d
	movq	_ROT_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_rot_read
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ROT_STATUS_IRQ_PENDING
	orl	%eax, %ebx
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_rot_write
	movq	8(%r12), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%r12)
	movl	(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r12), %edi
	callq	_pm_runtime_put_autosuspend
	movq	_ROT_IRQ_STATUS_COMPLETE@GOTPCREL(%rip), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	cmpl	(%rax), %r14d
	cmovel	%edx, %esi
	movq	%r15, %rdi
	callq	_exynos_drm_ipp_task_done
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROT_STATUS,4,2                 ## @ROT_STATUS
	.comm	_ROT_IRQ_STATUS_COMPLETE,4,2    ## @ROT_IRQ_STATUS_COMPLETE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rotator_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotator_irq_handler
_rotator_irq_handler:                   ; @rotator_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x0, x1
	bl	_rotator_reg_get_irq_status
	mov	x19, x0
Lloh0:
	adrp	x22, _ROT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ROT_STATUS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rot_read
	mov	x21, x0
	mov	x0, x19
	bl	_ROT_STATUS_IRQ_PENDING
	orr	w0, w0, w21
	ldr	w1, [x22]
	bl	_rot_write
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_2
; %bb.1:
	str	xzr, [x20, #8]
	ldr	w0, [x20]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20]
	bl	_pm_runtime_put_autosuspend
Lloh2:
	adrp	x8, _ROT_IRQ_STATUS_COMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROT_IRQ_STATUS_COMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w19, w8
	csneg	w1, wzr, w9, eq
	mov	x0, x21
	bl	_exynos_drm_ipp_task_done
LBB0_2:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ROT_STATUS,4,2                 ; @ROT_STATUS
	.comm	_ROT_IRQ_STATUS_COMPLETE,4,2    ; @ROT_IRQ_STATUS_COMPLETE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rotator_irq_handler
.subsections_via_symbols
