	.file	"extr_exynos_drm_ipp.c_exynos_drm_ipp_commit_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ipp: %d, nonblocking processing task %pK\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"ipp: %d, processing task %pK\n"
	.text
	.p2align 4
	.globl	exynos_drm_ipp_commit_ioctl
	.type	exynos_drm_ipp_commit_ioctl, @function
exynos_drm_ipp_commit_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR DRM_EXYNOS_IPP_FLAGS[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	not	eax
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR [rsi]
	test	eax, edx
	jne	.L2
	cmp	QWORD PTR 16[rsi], 0
	mov	rbx, rsi
	jne	.L2
	test	DWORD PTR DRM_EXYNOS_IPP_FLAG_TEST_ONLY[rip], edx
	je	.L5
	test	DWORD PTR DRM_EXYNOS_IPP_FLAG_EVENT[rip], edx
	jne	.L2
.L5:
	mov	edi, DWORD PTR 8[rbx]
	call	__ipp_get@PLT
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	exynos_drm_ipp_task_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	r14, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rsi, rbx
	mov	rdi, rax
	call	exynos_drm_ipp_task_set@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, r14
	call	exynos_drm_ipp_task_check@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L8:
	mov	rsi, r14
	mov	rdi, r13
	call	exynos_drm_ipp_task_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r14
	call	exynos_drm_ipp_task_setup_buffers@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR DRM_EXYNOS_IPP_FLAG_TEST_ONLY[rip], eax
	jne	.L8
	test	DWORD PTR DRM_EXYNOS_IPP_FLAG_EVENT[rip], eax
	jne	.L21
.L9:
	mov	edx, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 8[r13]
	mov	rcx, r14
	test	DWORD PTR DRM_EXYNOS_IPP_FLAG_NONBLOCK[rip], eax
	je	.L10
	lea	rsi, .LC0[rip]
	xor	r12d, r12d
	call	DRM_DEV_DEBUG_DRIVER@PLT
	mov	eax, DWORD PTR DRM_EXYNOS_IPP_TASK_ASYNC[rip]
	or	DWORD PTR [r14], eax
	mov	rsi, r14
	mov	rdi, QWORD PTR 8[r14]
	call	exynos_drm_ipp_schedule_task@PLT
	jmp	.L1
.L10:
	lea	rsi, .LC1[rip]
	call	DRM_DEV_DEBUG_DRIVER@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	exynos_drm_ipp_schedule_task@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR [r14]
	and	esi, DWORD PTR DRM_EXYNOS_IPP_TASK_DONE[rip]
	call	wait_event_interruptible@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
	mov	rsi, r14
	mov	rdi, r13
	call	exynos_drm_ipp_task_abort@PLT
	jmp	.L1
.L21:
	mov	edx, DWORD PTR 4[rbx]
	mov	rsi, rbp
	mov	rdi, r14
	call	exynos_drm_ipp_event_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR [rbx]
	jmp	.L9
.L11:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	exynos_drm_ipp_task_cleanup@PLT
	.cfi_endproc
.LFE0:
	.size	exynos_drm_ipp_commit_ioctl, .-exynos_drm_ipp_commit_ioctl
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	DRM_EXYNOS_IPP_TASK_DONE,4,4
	.comm	DRM_EXYNOS_IPP_TASK_ASYNC,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_TEST_ONLY,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_NONBLOCK,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_EVENT,4,4
	.comm	DRM_EXYNOS_IPP_FLAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_exynos_drm_ipp.c_exynos_drm_ipp_commit_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ipp: %d, nonblocking processing task %pK\012\000"
	.align	2
.LC1:
	.ascii	"ipp: %d, processing task %pK\012\000"
	.text
	.align	2
	.global	exynos_drm_ipp_commit_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	exynos_drm_ipp_commit_ioctl, %function
exynos_drm_ipp_commit_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, .L24
	ldr	r3, [r4]
	ldr	r1, [r1]
	mov	r6, r2
	bics	r2, r3, r1
	bne	.L2
	ldr	r2, [r4, #12]
	cmp	r2, #0
	bne	.L2
	ldr	r8, .L24+4
	ldr	r2, [r8]
	tst	r3, r2
	beq	.L5
	ldr	r2, .L24+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L2
.L5:
	ldr	r0, [r4, #8]
	bl	__ipp_get
	subs	r7, r0, #0
	beq	.L20
	bl	exynos_drm_ipp_task_alloc
	subs	r9, r0, #0
	beq	.L21
	mov	r1, r4
	bl	exynos_drm_ipp_task_set
	subs	r5, r0, #0
	bne	.L8
	mov	r0, r9
	bl	exynos_drm_ipp_task_check
	subs	r5, r0, #0
	beq	.L22
.L8:
	mov	r1, r9
	mov	r0, r7
	bl	exynos_drm_ipp_task_free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L24+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, .L24+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L20:
	ldr	r3, .L24+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	mov	r1, r6
	mov	r0, r9
	bl	exynos_drm_ipp_task_setup_buffers
	subs	r5, r0, #0
	bne	.L8
	ldr	r2, [r8]
	ldr	r3, [r4]
	tst	r3, r2
	bne	.L8
	ldr	r2, .L24+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L23
.L9:
	ldr	r2, .L24+24
	ldr	r0, [r7, #8]
	ldr	r1, [r2]
	ldr	r2, [r7, #4]
	tst	r3, r1
	mov	r3, r9
	beq	.L10
	ldr	r1, .L24+28
	bl	DRM_DEV_DEBUG_DRIVER
	ldr	r2, .L24+32
	ldr	r3, [r9]
	ldr	r2, [r2]
	mov	r1, r9
	orr	r3, r3, r2
	ldr	r0, [r9, #4]
	str	r3, [r9]
	bl	exynos_drm_ipp_schedule_task
	mov	r5, #0
	b	.L1
.L10:
	ldr	r1, .L24+36
	bl	DRM_DEV_DEBUG_DRIVER
	mov	r1, r9
	mov	r0, r7
	bl	exynos_drm_ipp_schedule_task
	ldr	r3, .L24+40
	ldr	r1, [r9]
	ldr	r3, [r3]
	ldr	r0, [r7]
	and	r1, r1, r3
	bl	wait_event_interruptible
	subs	r5, r0, #0
	beq	.L11
	mov	r1, r9
	mov	r0, r7
	bl	exynos_drm_ipp_task_abort
	b	.L1
.L23:
	mov	r1, r6
	mov	r0, r9
	ldr	r2, [r4, #4]
	bl	exynos_drm_ipp_event_create
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, [r4]
	b	.L9
.L11:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	exynos_drm_ipp_task_cleanup
.L25:
	.align	2
.L24:
	.word	DRM_EXYNOS_IPP_FLAGS
	.word	DRM_EXYNOS_IPP_FLAG_TEST_ONLY
	.word	DRM_EXYNOS_IPP_FLAG_EVENT
	.word	EINVAL
	.word	ENOMEM
	.word	ENOENT
	.word	DRM_EXYNOS_IPP_FLAG_NONBLOCK
	.word	.LC0
	.word	DRM_EXYNOS_IPP_TASK_ASYNC
	.word	.LC1
	.word	DRM_EXYNOS_IPP_TASK_DONE
	.size	exynos_drm_ipp_commit_ioctl, .-exynos_drm_ipp_commit_ioctl
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	DRM_EXYNOS_IPP_TASK_DONE,4,4
	.comm	DRM_EXYNOS_IPP_TASK_ASYNC,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_TEST_ONLY,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_NONBLOCK,4,4
	.comm	DRM_EXYNOS_IPP_FLAG_EVENT,4,4
	.comm	DRM_EXYNOS_IPP_FLAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
