	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_fb_none_afbc_size_check
_komeda_fb_none_afbc_size_check:        ## @komeda_fb_none_afbc_size_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rbx
	movl	32(%rsi), %ecx
	movl	16(%rsi), %r8d
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_komeda_fb_check_src_coords
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.2:
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rax
	movq	%r15, (%rax,%r14,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_drm_format_info_block_height
	movq	(%rbx), %rcx
	movq	(%rcx,%r14,8), %r8
	imulq	%r8, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_11
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	16(%rdi), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_komeda_fb_get_pixel_addr
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_to_drm_gem_cma_obj
	subq	(%rax), %r13
	movq	(%r15), %rdx
	cmpq	%r13, %rdx
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx), %r14
	movq	%r12, %r13
	jb	LBB0_3
LBB0_14:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	xorl	%r12d, %r12d
	cmpq	$3, (%rax)
	jne	LBB0_19
## %bb.15:
	movq	(%rcx), %rax
	movq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	je	LBB0_19
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r14, %rsi
	movq	%r8, %rdx
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r14, %rsi
	movq	%r13, %rcx
LBB0_10:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to lookup GEM object\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"Pitch[%d]: 0x%x doesn't align to 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"The fb->obj[%d] size: 0x%zx lower than the minimum requirement: 0x%llx.\n"

L_.str.3:                               ## @.str.3
	.asciz	"The pitch[1] and [2] are not same\n"

	.no_dead_strip	_komeda_fb_none_afbc_size_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_fb_none_afbc_size_check
_komeda_fb_none_afbc_size_check:        ; @komeda_fb_none_afbc_size_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x1, #8]
	ldr	w3, [x1, #32]
	ldr	w4, [x1, #16]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #0
	bl	_komeda_fb_check_src_coords
	cbnz	x0, LBB0_15
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x21
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	x8, [x19, #24]
	lsl	x26, x24, #3
	str	x0, [x8, x26]
	mov	x0, x23
	mov	x1, x24
	bl	_drm_format_info_block_height
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	mul	x10, x8, x0
	ldr	x9, [x22]
	udiv	x11, x10, x9
	msub	x10, x11, x9, x10
	cbnz	x10, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x24
	bl	_komeda_fb_get_pixel_addr
	mov	x26, x0
	mov	x0, x25
	bl	_to_drm_gem_cma_obj
	ldr	x9, [x0]
	ldr	x8, [x25]
	sub	x9, x26, x9
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lo	LBB0_3
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #3
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19]
	ldp	x9, x8, [x8, #8]
	cmp	x9, x8
	b.ne	LBB0_13
LBB0_9:
	mov	w0, #0
	b	LBB0_17
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	stp	x8, x9, [sp, #8]
	str	x24, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	stp	x8, x9, [sp, #8]
	str	x24, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_DRM_DEBUG_KMS
LBB0_15:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to lookup GEM object\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"Pitch[%d]: 0x%x doesn't align to 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"The fb->obj[%d] size: 0x%zx lower than the minimum requirement: 0x%llx.\n"

l_.str.3:                               ; @.str.3
	.asciz	"The pitch[1] and [2] are not same\n"

	.no_dead_strip	_komeda_fb_none_afbc_size_check
.subsections_via_symbols
