	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_ipp_task_done       ## -- Begin function exynos_drm_ipp_task_done
	.p2align	4, 0x90
_exynos_drm_ipp_task_done:              ## @exynos_drm_ipp_task_done
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	12(%rdi), %edi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	callq	_DRM_DEV_DEBUG_DRIVER
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpq	%rbx, 8(%r14)
	jne	LBB0_2
## %bb.1:
	movq	$0, 8(%r14)
LBB0_2:
	movq	_DRM_EXYNOS_IPP_TASK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_exynos_drm_ipp_next_task
	movq	%r14, %rdi
	callq	_wake_up
	movq	_DRM_EXYNOS_IPP_TASK_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	addq	$8, %rbx
	movq	_exynos_drm_ipp_cleanup_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipp: %d, task %pK done: %d\n"

	.comm	_DRM_EXYNOS_IPP_TASK_DONE,4,2   ## @DRM_EXYNOS_IPP_TASK_DONE
	.comm	_DRM_EXYNOS_IPP_TASK_ASYNC,4,2  ## @DRM_EXYNOS_IPP_TASK_ASYNC
	.comm	_exynos_drm_ipp_cleanup_work,4,2 ## @exynos_drm_ipp_cleanup_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_ipp_task_done       ; -- Begin function exynos_drm_ipp_task_done
	.p2align	2
_exynos_drm_ipp_task_done:              ; @exynos_drm_ipp_task_done
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x0, #12]
	ldr	w2, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x21
	bl	_DRM_DEV_DEBUG_DRIVER
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20, #8]
LBB0_2:
Lloh2:
	adrp	x8, _DRM_EXYNOS_IPP_TASK_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_EXYNOS_IPP_TASK_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	stp	w8, w21, [x19]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_exynos_drm_ipp_next_task
	mov	x0, x20
	bl	_wake_up
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _DRM_EXYNOS_IPP_TASK_ASYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_TASK_ASYNC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x19, x19, #8
Lloh8:
	adrp	x8, _exynos_drm_ipp_cleanup_work@GOTPAGE
Lloh9:
	ldr	x8, [x8, _exynos_drm_ipp_cleanup_work@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	mov	x0, x19
	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
	b	_schedule_work
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipp: %d, task %pK done: %d\n"

	.comm	_DRM_EXYNOS_IPP_TASK_DONE,4,2   ; @DRM_EXYNOS_IPP_TASK_DONE
	.comm	_DRM_EXYNOS_IPP_TASK_ASYNC,4,2  ; @DRM_EXYNOS_IPP_TASK_ASYNC
	.comm	_exynos_drm_ipp_cleanup_work,4,2 ; @exynos_drm_ipp_cleanup_work
.subsections_via_symbols
