	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_xvmc_pack_pblocks           ## -- Begin function ff_xvmc_pack_pblocks
	.p2align	4, 0x90
_ff_xvmc_pack_pblocks:                  ## @ff_xvmc_pack_pblocks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	$-3, %eax
	jl	LBB0_16
## %bb.1:
	movb	$8, %cl
	subb	%al, %cl
	shll	%cl, %esi
	addl	$3, %eax
	xorl	%r10d, %r10d
	testl	%eax, %eax
	movl	$0, %r8d
	cmovgl	%eax, %r8d
	incl	%r8d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r10d, %rcx
	incl	%r10d
	shlq	$2, %rcx
	addq	24(%rdi), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	shll	$2, %esi
	movq	16(%rdi), %rdx
	movq	%rcx, 8(%rdx,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r9
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	$2048, %esi                     ## imm = 0x800
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r10d, %rcx
	incl	%r10d
	shlq	$2, %rcx
	addq	24(%rdi), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rdi), %rdx
	movq	%rcx, (%rdx,%rax,8)
	testl	$1024, %esi                     ## imm = 0x400
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
LBB0_11:
	testb	$1, %r8b
	je	LBB0_16
## %bb.12:
	testl	$2048, %esi                     ## imm = 0x800
	jne	LBB0_14
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_14:
	movslq	%r10d, %rcx
	shlq	$2, %rcx
	addq	24(%rdi), %rcx
LBB0_15:
	movq	16(%rdi), %rdx
	movq	%rcx, (%rdx,%rax,8)
LBB0_16:
	cmpq	$0, 8(%rdi)
	je	LBB0_17
## %bb.18:
	popq	%rbp
	jmp	_exchange_uv                    ## TAILCALL
LBB0_17:
	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	_ff_xvmc_pack_pblocks           ; -- Begin function ff_xvmc_pack_pblocks
	.p2align	2
_ff_xvmc_pack_pblocks:                  ; @ff_xvmc_pack_pblocks
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w11, w9, w8
	cmn	w11, #3
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
	mov	w10, #0
	mov	w9, #8
	sub	w9, w9, w11
	lsl	w9, w1, w9
	add	w11, w11, #3
	cmp	w11, #0
	csel	w11, w11, wzr, gt
	lsl	x11, x11, #3
	add	x11, x11, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x0, #24]
	add	x12, x12, w10, sxtw #2
	add	w10, w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x0, #16]
	str	x12, [x13, x8]
	lsl	w9, w9, #1
	add	x8, x8, #8
	cmp	x11, x8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w9, #11, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
	b	LBB0_3
LBB0_6:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.7:
	b	_exchange_uv
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
