	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc1_pack_bitplanes
_vc1_pack_bitplanes:                    ## @vc1_pack_bitplanes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	imull	%r9d, %r8d
	addl	%ecx, %r8d
	movq	(%rdx), %rax
	movslq	%r8d, %r8
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax,%r8,4), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	8(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movl	(%rcx,%r8,4), %ecx
	addl	%ecx, %ecx
	orl	%ecx, %eax
LBB0_5:
	movq	16(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	(%rcx,%r8,4), %ecx
	shll	$2, %ecx
	orl	%ecx, %eax
LBB0_7:
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rdi,%rcx,4), %edx
	shll	$4, %edx
	orl	%eax, %edx
	movl	%edx, (%rdi,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vc1_pack_bitplanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc1_pack_bitplanes
_vc1_pack_bitplanes:                    ; @vc1_pack_bitplanes
	.cfi_startproc
; %bb.0:
	madd	w9, w5, w4, w3
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8, w9, sxtw #2]
LBB0_2:
	ldr	x10, [x2, #8]
	cbz	x10, LBB0_4
; %bb.3:
	ldr	w10, [x10, w9, sxtw #2]
	orr	w8, w8, w10, lsl #1
LBB0_4:
	ldr	x10, [x2, #16]
	cbz	x10, LBB0_6
; %bb.5:
	ldr	w9, [x10, w9, sxtw #2]
	orr	w8, w8, w9, lsl #2
LBB0_6:
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w9, w9, #1
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x0, x9]
	orr	w8, w8, w10, lsl #4
	str	w8, [x0, x9]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vc1_pack_bitplanes
.subsections_via_symbols
