	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_ipp_check_scale_limits
_exynos_drm_ipp_check_scale_limits:     ## @exynos_drm_ipp_check_scale_limits
	.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
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.1:
	movl	%r8d, %r14d
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	_DRM_EXYNOS_IPP_LIMIT_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rbx), %edi
	andl	%eax, %edi
	cmpl	%edx, %edi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$20, %rbx
	decl	%ecx
	jne	LBB0_2
	jmp	LBB0_7
LBB0_4:
	leaq	-8(%rbx), %r13
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%cl
	setne	%al
	movq	%rbx, %rdx
	cmoveq	%r13, %rdx
	movl	(%rsi,%rax,4), %eax
	movl	(%rsi,%rcx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movl	%eax, %esi
	callq	___scale_limit_check
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	testl	%r14d, %r14d
	cmoveq	%rbx, %r13
	movl	4(%r12), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___scale_limit_check
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_EXYNOS_IPP_LIMIT_TYPE_MASK,4,2 ## @DRM_EXYNOS_IPP_LIMIT_TYPE_MASK
	.comm	_DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE,4,2 ## @DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_exynos_drm_ipp_check_scale_limits
.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_check_scale_limits
_exynos_drm_ipp_check_scale_limits:     ; @exynos_drm_ipp_check_scale_limits
	.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
	cbz	w3, LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x0
Lloh0:
	adrp	x8, _DRM_EXYNOS_IPP_LIMIT_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_EXYNOS_IPP_LIMIT_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	x22, x2, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x22, #-12]
	and	w10, w8, w10
	cmp	w10, w9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #20
	subs	w3, w3, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	sub	x23, x22, #8
	cmp	w19, #0
	cset	w9, eq
	cset	w8, ne
	ldr	w8, [x1, w8, uxtw #2]
	csel	x10, x23, x22, eq
	ldr	w21, [x1, w9, uxtw #2]
	ldr	w0, [x20]
	ldp	w3, w2, [x10]
	mov	x1, x8
	bl	___scale_limit_check
	cbz	w0, LBB0_8
; %bb.5:
	cmp	w19, #0
	csel	x8, x22, x23, eq
	ldr	w0, [x20, #4]
	ldp	w3, w2, [x8]
	mov	x1, x21
	bl	___scale_limit_check
	cbz	w0, LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_EXYNOS_IPP_LIMIT_TYPE_MASK,4,2 ; @DRM_EXYNOS_IPP_LIMIT_TYPE_MASK
	.comm	_DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE,4,2 ; @DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_exynos_drm_ipp_check_scale_limits
.subsections_via_symbols
