	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_format_plane_cpp           ## -- Begin function drm_format_plane_cpp
	.p2align	4, 0x90
_drm_format_plane_cpp:                  ## @drm_format_plane_cpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_drm_format_num_planes
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jle	LBB0_8
## %bb.1:
	leal	-128(%rbx), %eax
	cmpl	$19, %eax
	ja	LBB0_7
## %bb.2:
	movl	$4030, %ecx                     ## imm = 0xFBE
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.6:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_3:
	movl	$1032192, %ecx                  ## imm = 0xFC000
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.5:
	cmpl	$1, %r14d
	movl	$2, %eax
	sbbl	$0, %eax
	jmp	LBB0_8
LBB0_4:
	movl	$2, %eax
	jmp	LBB0_8
LBB0_7:
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %edi
	callq	_drm_fb_get_bpp_depth
	movl	-20(%rbp), %eax
	sarl	$3, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_format_plane_cpp           ; -- Begin function drm_format_plane_cpp
	.p2align	2
_drm_format_plane_cpp:                  ; @drm_format_plane_cpp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_drm_format_num_planes
	cmp	w0, w19
	b.le	LBB0_3
; %bb.1:
	sub	w8, w20, #128
	cmp	w8, #19
	b.hi	LBB0_5
; %bb.2:
	mov	w9, #2
	mov	w10, #1
	lsl	w10, w10, w8
	mov	w11, #4030
	mov	w12, #1
	lsl	w8, w12, w8
	cmp	w19, #0
	cinc	w13, w12, ne
	tst	w8, #0xfc000
	csel	w8, w13, w9, ne
	tst	w10, w11
	csel	w0, w12, w8, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_drm_fb_get_bpp_depth
	ldr	w8, [sp, #8]
	asr	w0, w8, #3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
