	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_plane_check_pixel_format   ## -- Begin function drm_plane_check_pixel_format
	.p2align	4, 0x90
_drm_plane_check_pixel_format:          ## @drm_plane_check_pixel_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testq	%r8, %r8
	je	LBB0_1
## %bb.5:
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax,%rcx,8)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_6
	jmp	LBB0_14
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%r8d, %ecx
	jne	LBB0_3
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbp
	retq
LBB0_3:
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	callq	*%rax
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_15
	jmp	LBB0_14
LBB0_8:
	movl	16(%rdi), %ecx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	24(%rdi), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax,%rsi,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_11
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	je	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_plane_check_pixel_format   ; -- Begin function drm_plane_check_pixel_format
	.p2align	2
_drm_plane_check_pixel_format:          ; @drm_plane_check_pixel_format
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cmp	x11, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w8
	b.ne	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	blr	x8
	cbnz	w0, LBB0_14
	b	LBB0_6
LBB0_9:
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_14
; %bb.10:
	ldr	x9, [x0, #24]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x2
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_11
	b	LBB0_6
LBB0_13:
	cbz	w8, LBB0_6
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
