	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_ipp_task_check
_exynos_drm_ipp_task_check:             ## @exynos_drm_ipp_task_check
	.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	%rdi, %rbx
	movq	120(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %r12d
	movl	%r12d, %edi
	callq	_drm_rotation_90_or_270
	movl	%eax, %r15d
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, %r12d
	setne	%r13b
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DRM_DEV_DEBUG_DRIVER
	movq	88(%rbx), %rax
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.1:
	movq	64(%rbx), %rax
	movq	%rax, 88(%rbx)
LBB0_2:
	movq	96(%rbx), %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_4
## %bb.3:
	movq	72(%rbx), %rcx
	movq	%rcx, 96(%rbx)
LBB0_4:
	movq	32(%rbx), %rdi
	cmpq	%rdx, %rdi
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	movq	%rdi, 32(%rbx)
LBB0_6:
	movq	40(%rbx), %rsi
	cmpq	%rdx, %rsi
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rsi
	movq	%rsi, 40(%rbx)
LBB0_8:
	movq	104(%rbx), %r11
	leaq	(%rax,%r11), %rdx
	cmpq	64(%rbx), %rdx
	jg	LBB0_12
## %bb.9:
	movq	112(%rbx), %r10
	leaq	(%rcx,%r10), %rdx
	cmpq	72(%rbx), %rdx
	jg	LBB0_12
## %bb.10:
	movq	48(%rbx), %r9
	leaq	(%rdi,%r9), %rdx
	cmpq	8(%rbx), %rdx
	jg	LBB0_12
## %bb.11:
	movq	56(%rbx), %r8
	leaq	(%rsi,%r8), %rdx
	cmpq	16(%rbx), %rdx
	jle	LBB0_15
LBB0_12:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movq	%rbx, %rdx
	callq	_DRM_DEV_DEBUG_DRIVER
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.16:
	cmpq	%rsi, %rax
	jne	LBB0_22
## %bb.17:
	cmpq	%rdi, %rcx
	je	LBB0_21
	jmp	LBB0_22
LBB0_19:
	cmpq	%rdi, %rax
	jne	LBB0_22
## %bb.20:
	cmpq	%rsi, %rcx
	jne	LBB0_22
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_22:
	movb	$1, %al
LBB0_23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movq	_DRM_EXYNOS_IPP_CAP_CROP@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_28
## %bb.24:
	testq	%r11, %r11
	jne	LBB0_31
## %bb.25:
	testq	%r10, %r10
	jne	LBB0_31
## %bb.26:
	testq	%r9, %r9
	jne	LBB0_31
## %bb.27:
	testq	%r8, %r8
	jne	LBB0_31
LBB0_28:
	movq	_DRM_EXYNOS_IPP_CAP_ROTATE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_30
## %bb.29:
	cmpl	%r14d, %r12d
	jne	LBB0_31
LBB0_30:
	movq	_DRM_EXYNOS_IPP_CAP_SCALE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	sete	%dl
	testb	%dl, %al
	je	LBB0_32
LBB0_31:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_32:
	movq	_DRM_EXYNOS_IPP_CAP_CONVERT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_34
## %bb.33:
	movq	80(%rbx), %rax
	cmpq	24(%rbx), %rax
	jne	LBB0_31
LBB0_34:
	leaq	64(%rbx), %r12
	leaq	8(%rbx), %r14
	xorl	%r8d, %r8d
	movb	%r13b, %r8b
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	%r15d, %r9d
	callq	_exynos_drm_ipp_check_format
	testl	%eax, %eax
	jne	LBB0_14
## %bb.35:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_exynos_drm_ipp_check_format
	testl	%eax, %eax
	jne	LBB0_14
## %bb.36:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DRM_DEV_DEBUG_DRIVER
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking task %pK\n"

	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Task %pK: defined area is outside provided buffers\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_EXYNOS_IPP_CAP_CROP,4,2    ## @DRM_EXYNOS_IPP_CAP_CROP
	.comm	_DRM_EXYNOS_IPP_CAP_ROTATE,4,2  ## @DRM_EXYNOS_IPP_CAP_ROTATE
	.comm	_DRM_EXYNOS_IPP_CAP_SCALE,4,2   ## @DRM_EXYNOS_IPP_CAP_SCALE
	.comm	_DRM_EXYNOS_IPP_CAP_CONVERT,4,2 ## @DRM_EXYNOS_IPP_CAP_CONVERT
L_.str.2:                               ## @.str.2
	.asciz	"Task %pK: hw capabilities exceeded\n"

L_.str.3:                               ## @.str.3
	.asciz	"Task %pK: all checks done.\n"

	.no_dead_strip	_exynos_drm_ipp_task_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_drm_ipp_task_check
_exynos_drm_ipp_task_check:             ; @exynos_drm_ipp_task_check
	.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
	mov	x19, x0
	ldr	x24, [x0, #120]
	ldr	w22, [x0, #4]
	mov	x0, x22
	bl	_drm_rotation_90_or_270
	mov	x20, x0
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	w22, w23
	cset	w21, ne
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_DEBUG_DRIVER
	ldr	x8, [x19, #88]
Lloh5:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #64]
	str	x8, [x19, #88]
LBB0_2:
	ldr	x9, [x19, #96]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x19, #72]
	str	x9, [x19, #96]
LBB0_4:
	ldr	x13, [x19, #32]
	cmp	x13, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	x13, [x19, #8]
	str	x13, [x19, #32]
LBB0_6:
	ldr	x15, [x19, #40]
	cmp	x15, x10
	b.ne	LBB0_8
; %bb.7:
	ldr	x15, [x19, #16]
	str	x15, [x19, #40]
LBB0_8:
	ldr	x10, [x19, #104]
	ldr	x11, [x19, #64]
	add	x12, x8, x10
	cmp	x12, x11
	b.gt	LBB0_12
; %bb.9:
	ldr	x11, [x19, #112]
	ldr	x12, [x19, #72]
	add	x14, x9, x11
	cmp	x14, x12
	b.gt	LBB0_12
; %bb.10:
	ldr	x12, [x19, #48]
	ldr	x14, [x19, #8]
	add	x16, x13, x12
	cmp	x16, x14
	b.gt	LBB0_12
; %bb.11:
	ldr	x14, [x19, #56]
	ldr	x16, [x19, #16]
	add	x17, x15, x14
	cmp	x17, x16
	b.le	LBB0_15
LBB0_12:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x2, x19
	bl	_DRM_DEV_DEBUG_DRIVER
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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_15:
	cbz	w20, LBB0_18
; %bb.16:
	cmp	x8, x15
	b.ne	LBB0_21
; %bb.17:
	cmp	x9, x13
	b.eq	LBB0_20
	b	LBB0_21
LBB0_18:
	cmp	x8, x13
	b.ne	LBB0_21
; %bb.19:
	cmp	x9, x15
	b.ne	LBB0_21
LBB0_20:
	mov	w8, #0
	b	LBB0_22
LBB0_21:
	mov	w8, #1
LBB0_22:
	ldr	w9, [x24]
Lloh13:
	adrp	x13, _DRM_EXYNOS_IPP_CAP_CROP@GOTPAGE
Lloh14:
	ldr	x13, [x13, _DRM_EXYNOS_IPP_CAP_CROP@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	tst	w13, w9
	b.ne	LBB0_27
; %bb.23:
	cbnz	x10, LBB0_30
; %bb.24:
	cbnz	x11, LBB0_30
; %bb.25:
	cbnz	x12, LBB0_30
; %bb.26:
	cbnz	x14, LBB0_30
LBB0_27:
Lloh16:
	adrp	x10, _DRM_EXYNOS_IPP_CAP_ROTATE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DRM_EXYNOS_IPP_CAP_ROTATE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_29
; %bb.28:
	cmp	w22, w23
	b.ne	LBB0_30
LBB0_29:
Lloh19:
	adrp	x10, _DRM_EXYNOS_IPP_CAP_SCALE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DRM_EXYNOS_IPP_CAP_SCALE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w10, eq
	and	w8, w8, w10
	tbz	w8, #0, LBB0_31
LBB0_30:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_31:
Lloh24:
	adrp	x8, _DRM_EXYNOS_IPP_CAP_CONVERT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_EXYNOS_IPP_CAP_CONVERT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_33
; %bb.32:
	ldr	x8, [x19, #80]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_30
LBB0_33:
	add	x22, x19, #64
	add	x23, x19, #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	mov	x5, x20
	bl	_exynos_drm_ipp_check_format
	cbnz	w0, LBB0_14
; %bb.34:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x23
	mov	w4, #0
	mov	x5, x20
	bl	_exynos_drm_ipp_check_format
	cbnz	w0, LBB0_14
; %bb.35:
	ldr	w0, [x24, #4]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_DEBUG_DRIVER
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking task %pK\n"

	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Task %pK: defined area is outside provided buffers\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_EXYNOS_IPP_CAP_CROP,4,2    ; @DRM_EXYNOS_IPP_CAP_CROP
	.comm	_DRM_EXYNOS_IPP_CAP_ROTATE,4,2  ; @DRM_EXYNOS_IPP_CAP_ROTATE
	.comm	_DRM_EXYNOS_IPP_CAP_SCALE,4,2   ; @DRM_EXYNOS_IPP_CAP_SCALE
	.comm	_DRM_EXYNOS_IPP_CAP_CONVERT,4,2 ; @DRM_EXYNOS_IPP_CAP_CONVERT
l_.str.2:                               ; @.str.2
	.asciz	"Task %pK: hw capabilities exceeded\n"

l_.str.3:                               ; @.str.3
	.asciz	"Task %pK: all checks done.\n"

	.no_dead_strip	_exynos_drm_ipp_task_check
.subsections_via_symbols
