	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_check_nv12_aux_surface
_skl_check_nv12_aux_surface:            ## @skl_check_nv12_aux_surface
	.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
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movl	8(%rbx), %edx
	movl	$1, %esi
	callq	_skl_max_plane_width
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	12(%rbx), %r12
	movl	12(%rbx), %eax
	sarl	$17, %eax
	movl	%eax, -48(%rbp)
	movl	16(%rbx), %eax
	sarl	$17, %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%eax, %r15d
	sarl	$17, %r15d
	movq	%r12, %rdi
	callq	_drm_rect_height
	movl	%eax, %r12d
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_intel_add_fb_offsets
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_intel_plane_compute_aligned_offset
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r15d
	jg	LBB0_2
## %bb.1:
	cmpl	$537001984, %r12d               ## imm = 0x20020000
	jge	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movl	%eax, 20(%rcx)
	movl	-48(%rbp), %eax
	movl	%eax, 12(%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, 16(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	sarl	$17, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CbCr source size %dx%d too big (limit %dx%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_skl_check_nv12_aux_surface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_check_nv12_aux_surface
_skl_check_nv12_aux_surface:            ; @skl_check_nv12_aux_surface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	w2, [x19, #8]
	mov	w1, #1
	bl	_skl_max_plane_width
	mov	x20, x0
	mov	x22, x19
	ldr	w8, [x22, #12]!
	asr	w9, w8, #17
	ldr	w8, [x19, #16]
	asr	w8, w8, #17
	stp	w8, w9, [sp, #8]
	mov	x0, x22
	bl	_drm_rect_width
	asr	w21, w0, #17
	mov	x0, x22
	bl	_drm_rect_height
	mov	x22, x0
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	mov	w3, #1
	bl	_intel_add_fb_offsets
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	mov	w3, #1
	bl	_intel_plane_compute_aligned_offset
	cmp	w21, w20
	mov	w9, #537001984
	ccmp	w22, w9, #0, le
	b.lt	LBB0_2
; %bb.1:
	asr	w2, w22, #17
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	mov	w4, #4096
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9, #20]
	ldp	w10, w8, [sp, #8]
	stp	w8, w10, [x9, #12]
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CbCr source size %dx%d too big (limit %dx%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_skl_check_nv12_aux_surface
.subsections_via_symbols
