	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_plane_formats
_get_plane_formats:                     ## @get_plane_formats
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_13
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.3:
	movq	_cursor_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_21
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.5:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, %rbx
	jb	LBB0_6
	jmp	LBB0_21
LBB0_13:
	movq	%rsi, %r12
	movq	_rgb_formats@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_18
## %bb.14:
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.15:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r15, %rbx
	jb	LBB0_16
LBB0_18:
	testq	%r12, %r12
	je	LBB0_21
## %bb.19:
	cmpl	$0, (%r12)
	je	LBB0_21
## %bb.20:
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %ecx
	incl	%ebx
	movl	%eax, (%r14,%rcx,4)
	jmp	LBB0_21
LBB0_8:
	movq	_overlay_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_21
## %bb.9:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.10:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r15, %rbx
	jb	LBB0_11
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rgb_formats,8,3                ## @rgb_formats
	.comm	_DRM_FORMAT_NV12,4,2            ## @DRM_FORMAT_NV12
	.comm	_overlay_formats,8,3            ## @overlay_formats
	.comm	_cursor_formats,8,3             ## @cursor_formats
	.no_dead_strip	_get_plane_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_plane_formats
_get_plane_formats:                     ; @get_plane_formats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x20, _cursor_formats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cursor_formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	ccmp	w22, #1, #8, ge
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
	mov	w22, w22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	lsl	x8, x21, #2
	ldr	w9, [x0, x8]
	add	x21, x21, #1
	str	w9, [x19, x8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	ccmp	x21, x22, #2, lt
	b.lo	LBB0_5
	b	LBB0_17
LBB0_6:
	mov	x21, x1
Lloh2:
	adrp	x23, _rgb_formats@GOTPAGE
Lloh3:
	ldr	x23, [x23, _rgb_formats@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	ccmp	w22, #1, #8, ge
	b.ge	LBB0_10
; %bb.7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
Lloh4:
	adrp	x20, _overlay_formats@GOTPAGE
Lloh5:
	ldr	x20, [x20, _overlay_formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	ccmp	w22, #1, #8, ge
	b.ge	LBB0_15
LBB0_9:
	mov	w20, #0
	b	LBB0_18
LBB0_10:
	mov	x20, #0
	mov	w22, w22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	lsl	x8, x20, #2
	ldr	w9, [x0, x8]
	add	x20, x20, #1
	str	w9, [x19, x8]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	ccmp	x20, x22, #2, lt
	b.lo	LBB0_11
LBB0_12:
	cbz	x21, LBB0_18
; %bb.13:
	ldr	w8, [x21]
	cbz	w8, LBB0_18
; %bb.14:
Lloh6:
	adrp	x8, _DRM_FORMAT_NV12@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_FORMAT_NV12@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, w20, uxtw #2]
	add	w8, w20, #1
	mov	x20, x8
	b	LBB0_18
LBB0_15:
	mov	x21, #0
	mov	w22, w22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	lsl	x8, x21, #2
	ldr	w9, [x0, x8]
	add	x21, x21, #1
	str	w9, [x19, x8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	ccmp	x21, x22, #2, lt
	b.lo	LBB0_16
LBB0_17:
	mov	x20, x21
LBB0_18:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rgb_formats,8,3                ; @rgb_formats
	.comm	_DRM_FORMAT_NV12,4,2            ; @DRM_FORMAT_NV12
	.comm	_overlay_formats,8,3            ; @overlay_formats
	.comm	_cursor_formats,8,3             ; @cursor_formats
	.no_dead_strip	_get_plane_formats
.subsections_via_symbols
