	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_ipp_check_size_limits
_exynos_drm_ipp_check_size_limits:      ## @exynos_drm_ipp_check_size_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_IPP_LIMIT_AREA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IPP_LIMIT_ROTATED@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r12d
	movq	_IPP_LIMIT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	___get_size_limit
	movl	%r12d, %edi
	leaq	-44(%rbp), %rsi
	callq	___size_limit_check
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	24(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	___size_limit_check
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %rax
	cmoveq	%rax, %r12
	movq	%rax, %rdx
	leaq	-48(%rbp), %rcx
	cmoveq	%rcx, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rax, %r13
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	leaq	-48(%rbp), %rcx
	callq	___get_size_limit
	movl	(%r15), %edi
	movq	%r12, %rsi
	leaq	-48(%rbp), %r12
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	callq	___size_limit_check
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	testl	%r14d, %r14d
	movl	12(%r15), %edi
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	callq	___align_check
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	4(%r15), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	___size_limit_check
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	testl	%r14d, %r14d
	movl	8(%r15), %edi
	cmoveq	%r12, %r13
	movl	(%r13), %esi
	callq	___align_check
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPP_LIMIT_ROTATED,4,2          ## @IPP_LIMIT_ROTATED
	.comm	_IPP_LIMIT_AREA,4,2             ## @IPP_LIMIT_AREA
	.comm	_IPP_LIMIT_BUFFER,4,2           ## @IPP_LIMIT_BUFFER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_exynos_drm_ipp_check_size_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_size_limits
_exynos_drm_ipp_check_size_limits:      ; @exynos_drm_ipp_check_size_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w3, #0
Lloh0:
	adrp	x8, _IPP_LIMIT_ROTATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPP_LIMIT_ROTATED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IPP_LIMIT_AREA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPP_LIMIT_AREA@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w23, [x8]
	add	x8, sp, #8
	orr	x24, x8, #0x4
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	ldr	x9, [x0, #32]
	ldr	x9, [x9]
	ldr	w9, [x9]
	sdiv	w25, w8, w9
Lloh4:
	adrp	x8, _IPP_LIMIT_BUFFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPP_LIMIT_BUFFER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x1
	mov	x1, x21
	bl	___get_size_limit
	mov	x0, x25
	mov	x1, x24
	bl	___size_limit_check
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x20, #24]
	add	x26, sp, #8
	add	x1, sp, #8
	bl	___size_limit_check
	cbz	w0, LBB0_8
; %bb.3:
	cmp	w19, #0
	csel	x25, x24, x26, eq
	csel	x24, x26, x24, eq
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	___get_size_limit
	ldr	w0, [x20]
	mov	x1, x25
	bl	___size_limit_check
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x20, #12]
	add	x8, sp, #8
	orr	x9, x8, #0x4
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	bl	___align_check
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #4]
	mov	x1, x24
	bl	___size_limit_check
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x20, #8]
	add	x8, sp, #8
	orr	x9, x8, #0x4
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	___align_check
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IPP_LIMIT_ROTATED,4,2          ; @IPP_LIMIT_ROTATED
	.comm	_IPP_LIMIT_AREA,4,2             ; @IPP_LIMIT_AREA
	.comm	_IPP_LIMIT_BUFFER,4,2           ; @IPP_LIMIT_BUFFER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_exynos_drm_ipp_check_size_limits
.subsections_via_symbols
