	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_check_main_ccs_coordinates
_skl_check_main_ccs_coordinates:        ## @skl_check_main_ccs_coordinates
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rdi
	movq	(%rdi), %rcx
	movl	(%rcx), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rax), %r14d
	movl	20(%rax), %ebx
	movq	24(%rax), %r13
	movl	$1, %esi
	callq	_intel_surf_alignment
	movq	%r13, %r8
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	cmpq	%r12, %r13
	jl	LBB0_10
## %bb.1:
	cmpl	%r15d, %ebx
	jg	LBB0_10
## %bb.2:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %ebx
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r8, %r8
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	cltd
	idivl	%r12d
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)
	movq	%r8, %r9
	subq	-88(%rbp), %r9                  ## 8-byte Folded Reload
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_intel_plane_adjust_aligned_offset
	movq	%rax, %r8
	movl	-52(%rbp), %r14d
	imull	%r12d, %r14d
	addl	-68(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-48(%rbp), %ebx
	imull	%r13d, %ebx
	addl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %ebx
	jle	LBB0_3
	jmp	LBB0_10
LBB0_5:
	movl	%r15d, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_7:
	xorl	%r8d, %r8d
LBB0_10:
	xorl	%eax, %eax
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.11:
	cmpl	%r15d, %ebx
	jne	LBB0_13
## %bb.12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r8, 24(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movl	%r15d, 20(%rax)
	movl	$1, %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_skl_check_main_ccs_coordinates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_check_main_ccs_coordinates
_skl_check_main_ccs_coordinates:        ; @skl_check_main_ccs_coordinates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x3
	mov	x24, x2
	mov	x23, x1
	mov	x8, x0
	ldr	x0, [x0, #8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldp	w19, w28, [x9]
	ldp	w26, w25, [x8, #16]
	ldr	x22, [x8, #24]
	mov	w1, #1
	bl	_intel_surf_alignment
	cmp	x22, x27
	ccmp	w25, w24, #0, ge
	b.gt	LBB0_8
; %bb.1:
	mov	x10, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w26, w23
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w24
	b.eq	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sdiv	w20, w26, w10
	sdiv	w21, w25, w28
	stp	w21, w20, [sp, #8]
	mov	x19, x0
	sub	x5, x22, x0
	add	x0, sp, #12
	add	x1, sp, #8
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	mov	w3, #1
	mov	x4, x22
	mov	x22, x10
	bl	_intel_plane_adjust_aligned_offset
	mov	x10, x22
	mov	x22, x0
	ldr	w8, [sp, #12]
	msub	w9, w20, w10, w26
	madd	w26, w8, w10, w9
	ldr	w8, [sp, #8]
	msub	w9, w21, w28, w25
	madd	w25, w8, w28, w9
	cmp	x0, x27
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w24
	mov	x0, x19
	b.le	LBB0_2
	b	LBB0_8
LBB0_7:
	mov	x25, x24
	mov	x26, x23
LBB0_8:
	cmp	w26, w23
	ccmp	w25, w24, #0, eq
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x22, [x8, #24]
	stp	w23, w24, [x8, #16]
	mov	w0, #1
LBB0_11:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_skl_check_main_ccs_coordinates
.subsections_via_symbols
