	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_ipp_commit_ioctl    ## -- Begin function exynos_drm_ipp_commit_ioctl
	.p2align	4, 0x90
_exynos_drm_ipp_commit_ioctl:           ## @exynos_drm_ipp_commit_ioctl
	.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
	movl	(%rsi), %eax
	movq	_DRM_EXYNOS_IPP_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r13
	cmpq	$0, 16(%rsi)
	je	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, %r12
	movq	_DRM_EXYNOS_IPP_FLAG_TEST_ONLY@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.5:
	movq	_DRM_EXYNOS_IPP_FLAG_EVENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
LBB0_6:
	movl	8(%r13), %edi
	callq	___ipp_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_exynos_drm_ipp_task_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_exynos_drm_ipp_task_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_exynos_drm_ipp_task_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_exynos_drm_ipp_task_setup_buffers
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.13:
	movl	(%r13), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r14)
	je	LBB0_14
LBB0_22:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_exynos_drm_ipp_task_free
	jmp	LBB0_23
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_DRM_EXYNOS_IPP_FLAG_EVENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.15:
	movl	4(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_exynos_drm_ipp_event_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movl	(%r13), %eax
LBB0_17:
	movq	_DRM_EXYNOS_IPP_FLAG_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	4(%r15), %edx
	movl	8(%r15), %edi
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_DRM_DEV_DEBUG_DRIVER
	movq	_DRM_EXYNOS_IPP_TASK_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_exynos_drm_ipp_schedule_task
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	callq	_DRM_DEV_DEBUG_DRIVER
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_exynos_drm_ipp_schedule_task
	movl	(%r15), %edi
	movq	_DRM_EXYNOS_IPP_TASK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r14), %esi
	callq	_wait_event_interruptible
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_exynos_drm_ipp_task_abort
	jmp	LBB0_23
LBB0_21:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exynos_drm_ipp_task_cleanup    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_EXYNOS_IPP_FLAGS,4,2       ## @DRM_EXYNOS_IPP_FLAGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_EXYNOS_IPP_FLAG_TEST_ONLY,4,2 ## @DRM_EXYNOS_IPP_FLAG_TEST_ONLY
	.comm	_DRM_EXYNOS_IPP_FLAG_EVENT,4,2  ## @DRM_EXYNOS_IPP_FLAG_EVENT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_EXYNOS_IPP_FLAG_NONBLOCK,4,2 ## @DRM_EXYNOS_IPP_FLAG_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipp: %d, nonblocking processing task %pK\n"

	.comm	_DRM_EXYNOS_IPP_TASK_ASYNC,4,2  ## @DRM_EXYNOS_IPP_TASK_ASYNC
L_.str.1:                               ## @.str.1
	.asciz	"ipp: %d, processing task %pK\n"

	.comm	_DRM_EXYNOS_IPP_TASK_DONE,4,2   ## @DRM_EXYNOS_IPP_TASK_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_ipp_commit_ioctl    ; -- Begin function exynos_drm_ipp_commit_ioctl
	.p2align	2
_exynos_drm_ipp_commit_ioctl:           ; @exynos_drm_ipp_commit_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _DRM_EXYNOS_IPP_FLAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x1
	ldr	x9, [x1, #16]
	cbz	x9, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x22, x2
Lloh5:
	adrp	x24, _DRM_EXYNOS_IPP_FLAG_TEST_ONLY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DRM_EXYNOS_IPP_FLAG_TEST_ONLY@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x9, _DRM_EXYNOS_IPP_FLAG_EVENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_FLAG_EVENT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_7:
	ldr	w0, [x21, #8]
	bl	___ipp_get
	cbz	x0, LBB0_15
; %bb.8:
	mov	x20, x0
	bl	_exynos_drm_ipp_task_alloc
	cbz	x0, LBB0_16
; %bb.9:
	mov	x19, x0
	mov	x1, x21
	bl	_exynos_drm_ipp_task_set
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_exynos_drm_ipp_task_check
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.11:
	mov	x0, x19
	mov	x1, x22
	bl	_exynos_drm_ipp_task_setup_buffers
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
	mov	w23, #0
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_exynos_drm_ipp_task_free
	b	LBB0_4
LBB0_15:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_17:
Lloh14:
	adrp	x9, _DRM_EXYNOS_IPP_FLAG_EVENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_FLAG_EVENT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_exynos_drm_ipp_event_create
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.19:
	ldr	w8, [x21]
LBB0_20:
Lloh17:
	adrp	x9, _DRM_EXYNOS_IPP_FLAG_NONBLOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldp	w2, w0, [x20, #4]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_DRM_DEV_DEBUG_DRIVER
Lloh22:
	adrp	x8, _DRM_EXYNOS_IPP_TASK_ASYNC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DRM_EXYNOS_IPP_TASK_ASYNC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_exynos_drm_ipp_schedule_task
	mov	w23, #0
	b	LBB0_4
LBB0_22:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_DRM_DEV_DEBUG_DRIVER
	mov	x0, x20
	mov	x1, x19
	bl	_exynos_drm_ipp_schedule_task
	ldr	w0, [x20]
	ldr	w8, [x19]
Lloh27:
	adrp	x9, _DRM_EXYNOS_IPP_TASK_DONE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_TASK_DONE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_wait_event_interruptible
	cbz	w0, LBB0_24
; %bb.23:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_exynos_drm_ipp_task_abort
	b	LBB0_4
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_exynos_drm_ipp_task_cleanup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_EXYNOS_IPP_FLAGS,4,2       ; @DRM_EXYNOS_IPP_FLAGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_EXYNOS_IPP_FLAG_TEST_ONLY,4,2 ; @DRM_EXYNOS_IPP_FLAG_TEST_ONLY
	.comm	_DRM_EXYNOS_IPP_FLAG_EVENT,4,2  ; @DRM_EXYNOS_IPP_FLAG_EVENT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_EXYNOS_IPP_FLAG_NONBLOCK,4,2 ; @DRM_EXYNOS_IPP_FLAG_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipp: %d, nonblocking processing task %pK\n"

	.comm	_DRM_EXYNOS_IPP_TASK_ASYNC,4,2  ; @DRM_EXYNOS_IPP_TASK_ASYNC
l_.str.1:                               ; @.str.1
	.asciz	"ipp: %d, processing task %pK\n"

	.comm	_DRM_EXYNOS_IPP_TASK_DONE,4,2   ; @DRM_EXYNOS_IPP_TASK_DONE
.subsections_via_symbols
