	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function drm_parse_y420cmdb_bitmap
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	64                              ## 0x40
LCPI0_4:
	.long	96                              ## 0x60
	.long	96                              ## 0x60
	.long	96                              ## 0x60
	.long	96                              ## 0x60
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_drm_parse_y420cmdb_bitmap:             ## @drm_parse_y420cmdb_bitmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_cea_db_payload_len
	movl	%eax, %r15d
	decl	%r15d
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpl	$10, %eax
	setge	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	movl	$8, %ecx
	cmovel	%r15d, %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.2:
	movl	%ecx, %eax
	cmpl	$8, %ecx
	jae	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_4:
	movq	_U64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DRM_COLOR_FORMAT_YCRCB420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_18
LBB0_6:
	movl	%eax, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.7:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm0, %xmm0
	movl	$2, %esi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [32,32,32,32]
	movdqa	LCPI0_2(%rip), %xmm12           ## xmm12 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [64,64,64,64]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [96,96,96,96]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm3
	pslld	$3, %xmm3
	movdqa	%xmm3, %xmm1
	paddd	%xmm8, %xmm1
	movdqa	%xmm6, %xmm5
	pslld	$26, %xmm5
	paddd	%xmm12, %xmm5
	cvttps2dq	%xmm5, %xmm5
	movdqu	(%rbx,%rsi,4), %xmm7
	pmulld	%xmm5, %xmm7
	por	%xmm0, %xmm7
	movdqu	16(%rbx,%rsi,4), %xmm0
	movdqu	32(%rbx,%rsi,4), %xmm5
	movdqu	48(%rbx,%rsi,4), %xmm4
	pslld	$23, %xmm1
	paddd	%xmm12, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm3, %xmm0
	paddd	%xmm9, %xmm0
	paddd	%xmm10, %xmm3
	pslld	$23, %xmm0
	paddd	%xmm12, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	%xmm5, %xmm0
	por	%xmm7, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm12, %xmm3
	cvttps2dq	%xmm3, %xmm2
	pmulld	%xmm4, %xmm2
	por	%xmm1, %xmm2
	paddd	%xmm11, %xmm6
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %cl
	je	LBB0_11
LBB0_10:
	movdqu	(%rbx,%rsi,4), %xmm1
	movdqa	%xmm6, %xmm3
	pslld	$3, %xmm3
	paddd	LCPI0_1(%rip), %xmm3
	movdqu	16(%rbx,%rsi,4), %xmm4
	pslld	$26, %xmm6
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm5, %xmm6
	cvttps2dq	%xmm6, %xmm6
	pmulld	%xmm1, %xmm6
	por	%xmm6, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm5, %xmm3
	cvttps2dq	%xmm3, %xmm1
	pmulld	%xmm4, %xmm1
	por	%xmm1, %xmm2
LBB0_11:
	por	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rax, %rdx
	je	LBB0_14
LBB0_12:
	leal	(,%rdx,8), %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx,%rdx,4), %edi
	shll	%cl, %edi
	orl	%edi, %esi
	incq	%rdx
	addl	$8, %ecx
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_14:
	testl	%esi, %esi
	je	LBB0_16
## %bb.15:
	movq	_DRM_COLOR_FORMAT_YCRCB420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_17
LBB0_16:
	xorl	%esi, %esi
LBB0_17:
	movl	%esi, 4(%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm0, %xmm0
	movl	$2, %esi
	pxor	%xmm2, %xmm2
	testb	$1, %cl
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_U64_MAX,4,2                    ## @U64_MAX
	.comm	_DRM_COLOR_FORMAT_YCRCB420,4,2  ## @DRM_COLOR_FORMAT_YCRCB420
	.no_dead_strip	_drm_parse_y420cmdb_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function drm_parse_y420cmdb_bitmap
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_drm_parse_y420cmdb_bitmap:             ; @drm_parse_y420cmdb_bitmap
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_cea_db_payload_len
	subs	w21, w0, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #9
	cset	w0, gt
	bl	_WARN_ON_ONCE
	cmp	x0, #0
	mov	w8, #8
	csel	w8, w21, w8, eq
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	cmp	w8, #16
	b.hs	LBB0_6
; %bb.3:
	mov	x9, #0
	mov	w10, #0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _U64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DRM_COLOR_FORMAT_YCRCB420@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_COLOR_FORMAT_YCRCB420@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	b	LBB0_14
LBB0_5:
	mov	w10, #0
	b	LBB0_13
LBB0_6:
	and	x9, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #32
Lloh6:
	adrp	x10, lCPI0_0@PAGE
Lloh7:
	ldr	q2, [x10, lCPI0_0@PAGEOFF]
	add	x10, x20, #40
	movi.4s	v3, #64
	movi.4s	v4, #96
	movi.4s	v5, #16
	mov	x11, x9
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q17, q18, [x10, #-32]
	ldp	q19, q20, [x10], #64
	shl.4s	v21, v2, #3
	add.4s	v22, v21, v1
	add.4s	v23, v21, v3
	add.4s	v24, v21, v4
	ushl.4s	v17, v17, v21
	ushl.4s	v18, v18, v22
	ushl.4s	v19, v19, v23
	ushl.4s	v20, v20, v24
	orr.16b	v0, v17, v0
	orr.16b	v6, v18, v6
	orr.16b	v7, v19, v7
	orr.16b	v16, v20, v16
	add.4s	v2, v2, v5
	subs	x11, x11, #16
	b.ne	LBB0_7
; %bb.8:
	orr.16b	v0, v6, v0
	orr.16b	v0, v7, v0
	orr.16b	v0, v16, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w10, s0
	mov.s	w11, v0[1]
	orr	w10, w10, w11
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:
	add	x11, x20, x9, lsl #2
	add	x11, x11, #8
	lsl	w12, w9, #3
	sub	x8, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11], #4
	lsl	w9, w9, w12
	orr	w10, w9, w10
	add	w12, w12, #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	cbz	w10, LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, _DRM_COLOR_FORMAT_YCRCB420@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_COLOR_FORMAT_YCRCB420@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	str	w10, [x19, #4]
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_U64_MAX,4,2                    ; @U64_MAX
	.comm	_DRM_COLOR_FORMAT_YCRCB420,4,2  ; @DRM_COLOR_FORMAT_YCRCB420
	.no_dead_strip	_drm_parse_y420cmdb_bitmap
.subsections_via_symbols
