	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_plane_atomic_check
_hibmc_plane_atomic_check:              ## @hibmc_plane_atomic_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	48(%rsi), %rsi
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	cmpq	$0, 56(%rbx)
	je	LBB0_13
## %bb.2:
	movswq	2(%rbx), %r13
	movswq	6(%rbx), %r12
	movl	40(%rbx), %edi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	cmpq	%r13, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	cmpq	%r12, 16(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_8
## %bb.7:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	addq	%r13, %rcx
	cmpq	(%r15), %rcx
	jg	LBB0_11
## %bb.10:
	addq	%r12, %rax
	cmpq	8(%r15), %rax
	jle	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_DRM_DEBUG_ATOMIC
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scale not support\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"crtc_x/y of drm_plane state is invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"visible portion of plane is invalid\n"

	.no_dead_strip	_hibmc_plane_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hibmc_plane_atomic_check
_hibmc_plane_atomic_check:              ; @hibmc_plane_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	ldp	x1, x8, [x1, #48]
	cmp	x1, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	ldrsh	x22, [x19, #2]
	ldrsh	x21, [x19, #6]
	ldr	w0, [x19, #40]
	bl	_drm_atomic_get_crtc_state
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.6:
	ldr	x9, [x19, #24]
	tbnz	x9, #63, LBB0_14
; %bb.7:
	ldr	x8, [x19, #32]
	tbnz	x8, #63, LBB0_14
; %bb.8:
	ldr	x10, [x20]
	add	x9, x9, x22
	cmp	x9, x10
	b.gt	LBB0_10
; %bb.9:
	ldr	x9, [x20, #8]
	add	x8, x8, x21
	cmp	x8, x9
	b.le	LBB0_1
LBB0_10:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_DRM_DEBUG_ATOMIC
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scale not support\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"crtc_x/y of drm_plane state is invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"visible portion of plane is invalid\n"

	.no_dead_strip	_hibmc_plane_atomic_check
.subsections_via_symbols
