	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_ipp_check_format
_exynos_drm_ipp_check_format:           ## @exynos_drm_ipp_check_format
	.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	%r9d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movl	40(%rsi), %esi
	movl	44(%r12), %edx
	cmpq	%r13, %r12
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_DRM_EXYNOS_IPP_FORMAT_SOURCE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DRM_EXYNOS_IPP_FORMAT_DESTINATION@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	callq	___ipp_format_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpl	$0, 8(%r12)
	je	LBB0_7
## %bb.6:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.9:
	movq	%rax, %r14
	movl	40(%r12), %edi
	callq	_drm_format_info
	movq	%rax, 48(%r12)
	cmpl	$0, (%rax)
	jle	LBB0_21
## %bb.10:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%rax), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%r12), %rsi
	movq	48(%r12), %rax
	movl	(%rsi,%rbx,4), %ecx
	movq	8(%rax), %rdx
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rdx,%rbx,4), %ecx
	imull	%edi, %ecx
	movl	%ecx, (%rsi,%rbx,4)
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	imull	(%rdx,%rbx,4), %edi
	cmpl	%edi, %ecx
	jb	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r12), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_12
## %bb.19:
	cmpl	$3, %ecx
	movl	%r15d, %ebx
	jl	LBB0_21
## %bb.20:
	movq	24(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	8(%rax), %ecx
	jne	LBB0_7
LBB0_21:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	xorl	%r8d, %r8d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %r12
	cmovel	%ebx, %r8d
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_exynos_drm_ipp_check_size_limits
	testl	%eax, %eax
	jne	LBB0_22
## %bb.23:
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exynos_drm_ipp_check_scale_limits ## TAILCALL
LBB0_4:
	cmpq	%r13, %r12
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_DRM_DEV_DEBUG_DRIVER
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_EXYNOS_IPP_FORMAT_SOURCE,4,2 ## @DRM_EXYNOS_IPP_FORMAT_SOURCE
	.comm	_DRM_EXYNOS_IPP_FORMAT_DESTINATION,4,2 ## @DRM_EXYNOS_IPP_FORMAT_DESTINATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Task %pK: %s format not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"src"

L_.str.2:                               ## @.str.2
	.asciz	"dst"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_exynos_drm_ipp_check_format
.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_format
_exynos_drm_ipp_check_format:           ; @exynos_drm_ipp_check_format
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x25, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _DRM_EXYNOS_IPP_FORMAT_SOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_EXYNOS_IPP_FORMAT_SOURCE@GOTPAGEOFF]
	ldr	w1, [x1, #40]
	ldr	w2, [x23, #44]
Lloh2:
	adrp	x9, _DRM_EXYNOS_IPP_FORMAT_DESTINATION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_EXYNOS_IPP_FORMAT_DESTINATION@GOTPAGEOFF]
	cmp	x23, x20
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	bl	___ipp_format_get
	cbz	x0, LBB0_16
; %bb.1:
	ldr	w8, [x23, #8]
	cbz	w8, LBB0_17
; %bb.2:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_17
; %bb.3:
	mov	x24, x0
	ldr	w0, [x23, #40]
	bl	_drm_format_info
	str	x0, [x23, #48]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #8]
	cbz	x25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x0, #16]
	mov	x0, x8
	bl	_DIV_ROUND_UP
	mov	x8, x0
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x23, #24]
	ldr	w9, [x10, x25, lsl #2]
	ldr	x0, [x23, #48]
	ldr	x11, [x0, #8]
	cbnz	w9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x12, x25, #2
	ldr	w9, [x11, x12]
	mul	w9, w9, w8
	str	w9, [x10, x12]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x11, x25, lsl #2]
	mul	w8, w10, w8
	cmp	w9, w8
	b.lo	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	ldr	w8, [x8, x25, lsl #2]
	cbz	w8, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x0]
	cmp	x25, x8
	b.lt	LBB0_5
; %bb.12:
	cmp	w8, #3
	b.lt	LBB0_14
; %bb.13:
	ldr	x8, [x23, #24]
	ldp	w9, w8, [x8, #4]
	cmp	w9, w8
	b.ne	LBB0_17
LBB0_14:
	ldp	w2, w1, [x24]
	cmp	x23, x21
	csel	w4, w19, wzr, eq
	mov	x0, x23
	mov	x3, x22
	bl	_exynos_drm_ipp_check_size_limits
	cbnz	w0, LBB0_19
; %bb.15:
	ldp	w3, w2, [x24]
	mov	x0, x20
	mov	x1, x21
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_exynos_drm_ipp_check_scale_limits
LBB0_16:
	ldr	w0, [x25]
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x23, x20
	csel	x3, x9, x8, eq
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_DRM_DEV_DEBUG_DRIVER
LBB0_17:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_EXYNOS_IPP_FORMAT_SOURCE,4,2 ; @DRM_EXYNOS_IPP_FORMAT_SOURCE
	.comm	_DRM_EXYNOS_IPP_FORMAT_DESTINATION,4,2 ; @DRM_EXYNOS_IPP_FORMAT_DESTINATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Task %pK: %s format not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"src"

l_.str.2:                               ; @.str.2
	.asciz	"dst"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_exynos_drm_ipp_check_format
.subsections_via_symbols
