	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ade_plane_atomic_check
_ade_plane_atomic_check:                ## @ade_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rsi), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	56(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.2:
	movswl	2(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movswl	6(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movswq	10(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movswq	14(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %r15
	movq	32(%rbx), %r13
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_ade_get_format
	movq	_ADE_FORMAT_UNSUPPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	40(%rbx), %edi
	movq	%r14, %rsi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.14:
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.5:
	cmpq	%rcx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%edx, %eax
	cltq
	cmpq	%rax, (%r12)
	jl	LBB0_12
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%ecx, %eax
	cltq
	cmpq	%rax, 8(%r12)
	jl	LBB0_12
## %bb.8:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testl	%esi, %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_12
## %bb.9:
	testl	%edi, %edi
	js	LBB0_12
## %bb.10:
	addq	%rsi, %rdx
	cmpq	(%r14), %rdx
	movl	$0, %eax
	jg	LBB0_12
## %bb.11:
	addq	%rdi, %rcx
	cmpq	8(%r14), %rcx
	jg	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ADE_FORMAT_UNSUPPORT,8,3       ## @ADE_FORMAT_UNSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ade_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 ade_plane_atomic_check
_ade_plane_atomic_check:                ; @ade_plane_atomic_check
	.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	w0, #0
	ldr	x19, [x1, #48]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x25, [x1, #56]
	cbz	x25, LBB0_4
; %bb.2:
	ldrsh	w27, [x20, #2]
	ldrsh	w26, [x20, #6]
	ldrsh	x23, [x20, #10]
	ldrsh	x21, [x20, #14]
	ldp	w24, w8, [x20, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x22, x28, [x20, #24]
	ldr	x8, [x25, #16]
	ldr	w0, [x8]
	bl	_ade_get_format
Lloh0:
	adrp	x8, _ADE_FORMAT_UNSUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADE_FORMAT_UNSUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	ldr	w0, [x20, #40]
	mov	x1, x19
	bl	_drm_atomic_get_crtc_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_7:
	cmp	x22, x23
	b.ne	LBB0_3
; %bb.8:
	cmp	x28, x21
	b.ne	LBB0_3
; %bb.9:
	add	w8, w23, w27
	ldr	x9, [x25]
	cmp	x9, w8, sxtw
	b.lt	LBB0_3
; %bb.10:
	add	w8, w21, w26
	ldr	x9, [x25, #8]
	cmp	x9, w8, sxtw
	b.lt	LBB0_3
; %bb.11:
	tbnz	w24, #31, LBB0_3
; %bb.12:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	tbnz	w8, #31, LBB0_3
; %bb.13:
	ldr	x8, [x19]
	add	x9, x23, x24
	cmp	x9, x8
	b.gt	LBB0_3
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x21, x9
	cmp	x9, x8
	b.gt	LBB0_3
; %bb.15:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADE_FORMAT_UNSUPPORT,8,3       ; @ADE_FORMAT_UNSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ade_plane_atomic_check
.subsections_via_symbols
