	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl111_display_check
_pl111_display_check:                   ## @pl111_display_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testb	$15, 4(%rdx)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	testb	$3, %al
	je	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_8:
	movq	(%r15), %rcx
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	movl	(%rdx), %edx
	imull	4(%r14), %edx
	cmpl	%edx, (%rcx)
	jne	LBB0_1
## %bb.9:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_3
## %bb.10:
	cmpq	%rax, 8(%r12)
	je	LBB0_3
## %bb.11:
	movl	$1, (%r14)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pl111_display_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl111_display_check
_pl111_display_check:                   ; @pl111_display_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
	ldrb	w8, [x2, #4]
	tst	w8, #0xf
	b.eq	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	ldr	x20, [x1]
	cbz	x20, LBB0_9
; %bb.4:
	mov	x19, x2
	ldr	x8, [x0]
	ldr	x21, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	tst	w0, #0x3
	b.ne	LBB0_1
; %bb.5:
	ldp	x9, x8, [x20]
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	ldr	x11, [x8]
	ldr	w11, [x11]
	mul	w10, w11, w10
	cmp	w9, w10
	b.ne	LBB0_1
; %bb.6:
	cbz	x21, LBB0_9
; %bb.7:
	ldr	x9, [x21, #8]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pl111_display_check
.subsections_via_symbols
