	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_p_cbp
_get_p_cbp:                             ## @get_p_cbp
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FF_MPV_FLAG_CBP_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rcx
	movq	_MV_TYPE_16X16@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %rcx
	setne	%al
	shlq	$4, %rax
	movl	16(%rbx), %edx
	xorl	%ecx, %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	setne	%cl
	leaq	(%rax,%rcx,8), %r8
	movl	20(%rbx), %r15d
	movq	_FF_LAMBDA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$-6, %cl
	sarl	%cl, %r15d
	movq	_ff_h263_inter_MCBPC_bits@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	movl	(%r11,%r8,4), %edx
	imull	%r15d, %edx
	xorl	%eax, %eax
	cmpl	%esi, %edx
	cmovgel	%esi, %edx
	setge	%al
	negl	%eax
	movl	4(%r11,%r8,4), %ecx
	imull	%r15d, %ecx
	movq	48(%rbx), %r14
	movl	32(%r14), %r9d
	movl	40(%r14), %r10d
	addl	%r10d, %ecx
	cmpl	%edx, %ecx
	cmovgel	%edx, %ecx
	movl	$1, %edx
	cmovgel	%eax, %edx
	movl	8(%r11,%r8,4), %r13d
	imull	%r15d, %r13d
	addl	%r9d, %r13d
	cmpl	%ecx, %r13d
	cmovgel	%ecx, %r13d
	movl	$2, %r14d
	cmovgel	%edx, %r14d
	movl	12(%r11,%r8,4), %r12d
	imull	%r15d, %r12d
	addl	%r10d, %r12d
	addl	%r9d, %r12d
	cmpl	%r13d, %r12d
	movl	%r13d, %r11d
	cmovll	%r12d, %r11d
	movq	_ff_h263_cbpy_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$-1, %eax
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, %edx
	cmovll	%edx, %esi
	cmovll	%r8d, %eax
	incl	%r8d
	cmpl	$16, %r8d
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %edx
	xorl	$15, %edx
	movq	(%rcx,%rdx,8), %rdx
	movl	4(%rdx), %edx
	imull	%r15d, %edx
	testb	$1, %r8b
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, %r8b
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$4, %r8b
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$8, %r8b
	je	LBB0_11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rdi
	addl	24(%rdi), %edx
	testb	$2, %r8b
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rdi
	addl	16(%rdi), %edx
	testb	$4, %r8b
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rdi
	addl	8(%rdi), %edx
	testb	$8, %r8b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rdi
	addl	(%rdi), %edx
	jmp	LBB0_11
LBB0_12:
	cmpl	%r13d, %r12d
	movl	$3, %ecx
	cmovll	%ecx, %r14d
	leal	(%r14,%rax,4), %r14d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	leal	(%r11,%r15,2), %eax
	addl	%esi, %eax
	sarl	$31, %eax
	andl	%eax, %r14d
LBB0_15:
	movq	24(%rbx), %rax
	cmpl	$0, (%rax)
	js	LBB0_18
## %bb.16:
	movl	%r14d, %ecx
	andl	$32, %ecx
	jne	LBB0_18
## %bb.17:
	movl	$-1, (%rax)
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	*40(%rbx)
	movq	24(%rbx), %rax
LBB0_18:
	cmpl	$0, 4(%rax)
	js	LBB0_21
## %bb.19:
	movl	%r14d, %ecx
	andl	$16, %ecx
	jne	LBB0_21
## %bb.20:
	movl	$-1, 4(%rax)
	movq	32(%rbx), %rax
	movl	4(%rax), %edi
	callq	*40(%rbx)
	movq	24(%rbx), %rax
LBB0_21:
	cmpl	$0, 8(%rax)
	js	LBB0_24
## %bb.22:
	movl	%r14d, %ecx
	andl	$8, %ecx
	jne	LBB0_24
## %bb.23:
	movl	$-1, 8(%rax)
	movq	32(%rbx), %rax
	movl	8(%rax), %edi
	callq	*40(%rbx)
	movq	24(%rbx), %rax
LBB0_24:
	cmpl	$0, 12(%rax)
	js	LBB0_27
## %bb.25:
	movl	%r14d, %ecx
	andl	$4, %ecx
	jne	LBB0_27
## %bb.26:
	movl	$-1, 12(%rax)
	movq	32(%rbx), %rax
	movl	12(%rax), %edi
	callq	*40(%rbx)
	movq	24(%rbx), %rax
LBB0_27:
	cmpl	$0, 16(%rax)
	js	LBB0_30
## %bb.28:
	movl	%r14d, %ecx
	andl	$2, %ecx
	jne	LBB0_30
## %bb.29:
	movl	$-1, 16(%rax)
	movq	32(%rbx), %rax
	movl	16(%rax), %edi
	callq	*40(%rbx)
	movq	24(%rbx), %rax
LBB0_30:
	cmpl	$0, 20(%rax)
	js	LBB0_33
## %bb.31:
	movl	%r14d, %ecx
	andl	$1, %ecx
	jne	LBB0_33
## %bb.32:
	movl	$-1, 20(%rax)
	movq	32(%rbx), %rax
	movl	20(%rax), %edi
	callq	*40(%rbx)
	jmp	LBB0_33
LBB0_1:
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shrl	$26, %ecx
	andl	$-32, %ecx
	shrl	$27, %edx
	andl	$-16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %ecx
	shrl	$31, %ecx
	leal	(%rdx,%rcx,8), %ecx
	movl	12(%rax), %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,4), %ecx
	movl	16(%rax), %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,2), %ecx
	movl	20(%rax), %r14d
	notl	%r14d
	shrl	$31, %r14d
	orl	%ecx, %r14d
	xorl	$62, %r14d
LBB0_33:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_MPV_FLAG_CBP_RD,4,2         ## @FF_MPV_FLAG_CBP_RD
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_MV_TYPE_16X16,8,3              ## @MV_TYPE_16X16
	.comm	_FF_LAMBDA_SHIFT,4,2            ## @FF_LAMBDA_SHIFT
	.comm	_ff_h263_inter_MCBPC_bits,8,3   ## @ff_h263_inter_MCBPC_bits
	.comm	_ff_h263_cbpy_tab,8,3           ## @ff_h263_cbpy_tab
	.no_dead_strip	_get_p_cbp
.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 get_p_cbp
lCPI0_0:
	.long	4294967270                      ; 0xffffffe6
	.long	4294967269                      ; 0xffffffe5
	.long	4294967268                      ; 0xffffffe4
	.long	4294967267                      ; 0xffffffe3
lCPI0_1:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_p_cbp:                             ; @get_p_cbp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FF_MPV_FLAG_CBP_RD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_MPV_FLAG_CBP_RD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.1:
	mov	w11, #0
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x10, _MV_TYPE_16X16@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MV_TYPE_16X16@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w12, ne
	lsl	x14, x12, #4
	ldp	w12, w13, [x19, #16]
	cmp	w12, #0
	cset	w15, ne
Lloh9:
	adrp	x16, _FF_LAMBDA_SHIFT@GOTPAGE
Lloh10:
	ldr	x16, [x16, _FF_LAMBDA_SHIFT@GOTPAGEOFF]
	bfi	x14, x15, #3, #1
Lloh11:
	ldr	w15, [x16]
	sub	w15, w15, #6
	asr	w13, w13, w15
Lloh12:
	adrp	x15, _ff_h263_inter_MCBPC_bits@GOTPAGE
Lloh13:
	ldr	x15, [x15, _ff_h263_inter_MCBPC_bits@GOTPAGEOFF]
Lloh14:
	ldr	x15, [x15]
	add	x14, x15, x14, lsl #2
	ldp	w15, w16, [x14]
	mul	w15, w15, w13
	cmp	w15, w8
	csel	w15, w15, w8, lt
	csetm	w17, ge
	ldr	x0, [x19, #48]
	ldr	w1, [x0, #40]
	madd	w16, w16, w13, w1
	cmp	w16, w15
	csel	w15, w16, w15, lt
	csinc	w16, w17, wzr, ge
	ldr	w17, [x0, #32]
	ldp	w0, w14, [x14, #8]
	madd	w0, w0, w13, w17
	cmp	w0, w15
	csel	w15, w0, w15, lt
	mov	w0, #2
	csel	w16, w0, w16, lt
	madd	w14, w14, w13, w1
	add	w17, w14, w17
	cmp	w17, w15
	csel	w14, w17, w15, lt
Lloh15:
	adrp	x0, _ff_h263_cbpy_tab@GOTPAGE
Lloh16:
	ldr	x0, [x0, _ff_h263_cbpy_tab@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x0]
	mov	w0, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w4, w8
	csel	w8, w4, w8, lt
	csel	w0, w11, w0, lt
	add	w11, w11, #1
	cmp	w11, #16
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	eor	w4, w11, #0xf
	ldr	x4, [x1, w4, uxtw #3]
	ldr	w4, [x4, #4]
	mul	w4, w4, w13
	tbnz	w11, #0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w11, #1, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w11, #2, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbz	w11, #3, LBB0_2
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x5, [x19, #48]
	ldr	w5, [x5, #24]
	add	w4, w4, w5
	tbz	w11, #1, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x5, [x19, #48]
	ldr	w5, [x5, #16]
	add	w4, w4, w5
	tbz	w11, #2, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x5, [x19, #48]
	ldr	w5, [x5, #8]
	add	w4, w4, w5
	tbz	w11, #3, LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x5, [x19, #48]
	ldr	w5, [x5]
	add	w4, w4, w5
	b	LBB0_2
LBB0_11:
	mov	w11, #3
	cmp	w17, w15
	csel	w11, w11, w16, lt
	add	w11, w11, w0, lsl #2
	orr	w15, w3, w2
	orr	w12, w15, w12
	cmp	x9, x10
	add	w9, w14, w13, lsl #1
	add	w8, w9, w8
	and	w8, w11, w8, asr #31
	csel	w8, w11, w8, ne
	cmp	w12, #0
	csel	w20, w11, w8, ne
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_14
; %bb.12:
	tbnz	w20, #5, LBB0_14
; %bb.13:
	mov	w9, #-1
	str	w9, [x8]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #24]
LBB0_14:
	ldr	w9, [x8, #4]
	tbnz	w9, #31, LBB0_17
; %bb.15:
	tbnz	w20, #4, LBB0_17
; %bb.16:
	mov	w9, #-1
	str	w9, [x8, #4]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9, #4]
	blr	x8
	ldr	x8, [x19, #24]
LBB0_17:
	ldr	w9, [x8, #8]
	tbnz	w9, #31, LBB0_20
; %bb.18:
	tbnz	w20, #3, LBB0_20
; %bb.19:
	mov	w9, #-1
	str	w9, [x8, #8]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9, #8]
	blr	x8
	ldr	x8, [x19, #24]
LBB0_20:
	ldr	w9, [x8, #12]
	tbnz	w9, #31, LBB0_23
; %bb.21:
	tbnz	w20, #2, LBB0_23
; %bb.22:
	mov	w9, #-1
	str	w9, [x8, #12]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9, #12]
	blr	x8
	ldr	x8, [x19, #24]
LBB0_23:
	ldr	w9, [x8, #16]
	tbnz	w9, #31, LBB0_26
; %bb.24:
	tbnz	w20, #1, LBB0_26
; %bb.25:
	mov	w9, #-1
	str	w9, [x8, #16]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9, #16]
	blr	x8
	ldr	x8, [x19, #24]
LBB0_26:
	ldr	w9, [x8, #20]
	tbnz	w9, #31, LBB0_30
; %bb.27:
	tbnz	w20, #0, LBB0_30
; %bb.28:
	mov	w9, #-1
	str	w9, [x8, #20]
	ldp	x9, x8, [x19, #32]
	ldr	w0, [x9, #20]
	blr	x8
	b	LBB0_30
LBB0_29:
	ldr	x8, [x19, #24]
	ldr	q0, [x8]
Lloh18:
	adrp	x9, lCPI0_0@PAGE
Lloh19:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
Lloh20:
	adrp	x9, lCPI0_1@PAGE
Lloh21:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	and.16b	v0, v0, v1
	ldp	w9, w8, [x8, #16]
	lsr	w9, w9, #30
	and	w9, w9, #0x2
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	mvn	w8, w8
	fmov	w11, s0
	orr	w10, w11, w10
	orr	w9, w10, w9
	orr	w8, w9, w8, lsr #31
	eor	w20, w8, #0x3e
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_MPV_FLAG_CBP_RD,4,2         ; @FF_MPV_FLAG_CBP_RD
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_MV_TYPE_16X16,8,3              ; @MV_TYPE_16X16
	.comm	_FF_LAMBDA_SHIFT,4,2            ; @FF_LAMBDA_SHIFT
	.comm	_ff_h263_inter_MCBPC_bits,8,3   ; @ff_h263_inter_MCBPC_bits
	.comm	_ff_h263_cbpy_tab,8,3           ; @ff_h263_cbpy_tab
	.no_dead_strip	_get_p_cbp
.subsections_via_symbols
