	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_h263_encode_mb
LCPI0_0:
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_h263_encode_mb
	.p2align	4, 0x90
_ff_h263_encode_mb:                     ## @ff_h263_encode_mb
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	64(%rdi), %rdi
	movq	120(%r12), %rax
	movq	_AV_CODEC_FLAG_PASS1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	%ecx, -144(%rbp)                ## 4-byte Spill
	testq	%rdi, %rdi
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	je	LBB0_16
## %bb.1:
	callq	_av_assert2
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	cmpq	$0, 72(%r8)
	je	LBB0_26
## %bb.2:
	xorl	%r15d, %r15d
	movl	$5, %edx
	movq	-160(%rbp), %r14                ## 8-byte Reload
	xorl	%ebx, %ebx
	movl	$0, -148(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-148(%rbp), %eax                ## 4-byte Reload
	btsl	%edx, %eax
	movl	%eax, -148(%rbp)                ## 4-byte Spill
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	decl	%edx
	addq	$8, %r15
	addq	$256, %r14                      ## imm = 0x100
	cmpq	$6, %rbx
	je	LBB0_27
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -152(%rbp)                ## 4-byte Spill
	movl	(%r14), %r13d
	xorl	%eax, %eax
	cmpq	$4, %rbx
	setae	%al
	movl	24(%r8,%rax,4), %r12d
	leaq	(%r15,%rbp), %rdx
	addq	$-128, %rdx
	movq	%r8, %rdi
	movl	%ebx, %esi
	callq	_ff_h263_pred_dc
	movl	%eax, %ecx
	subl	%eax, %r13d
	movl	%r12d, %edx
	sarl	%edx
	movl	%edx, %eax
	negl	%eax
	testl	%r13d, %r13d
	cmovnsl	%edx, %eax
	addl	%r13d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %edx
	cmpl	$127, %eax
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$127, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-126, %edx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$-127, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	cmpl	$0, 92(%r8)
	cmovel	%edx, %eax
	movl	%eax, (%r14)
	imull	%eax, %r12d
	addl	%ecx, %r12d
	orl	$1, %r12d
	movl	%r12d, -80(%rbp,%rbx,4)
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$2047, %ecx                     ## imm = 0x7FF
	cmpl	$2048, %r12d                    ## imm = 0x800
	movl	-152(%rbp), %edx                ## 4-byte Reload
	jae	LBB0_12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movl	-152(%rbp), %edx                ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, -80(%rbp,%rbx,4)
	movl	%ecx, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp,%rbx,8), %rcx
	movl	%r12d, (%rcx)
	movq	32(%r8), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	jg	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_16:
	movl	%edx, %r13d
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_get_p_cbp
	movl	%eax, %ebx
	movl	4(%r12), %eax
	movq	_MV_TYPE_16X16@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%r14d, %ecx
	orl	%r13d, %ecx
	orl	%ebx, %ecx
	orl	(%r12), %ecx
	leaq	88(%r12), %r15
	orl	%eax, %ecx
	je	LBB0_36
## %bb.17:
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	%ebx, %ecx
	andl	$3, %ecx
	sarl	$2, %ebx
	movl	%ebx, %eax
	xorl	$15, %eax
	cmpl	$3, %ecx
	cmovnel	%eax, %ebx
	cmpq	$0, 8(%r12)
	cmovel	%eax, %ebx
	leal	8(%rcx), %eax
	cmpl	$0, (%r12)
	cmovel	%ecx, %eax
	movl	4(%r12), %edx
	movq	_ff_h263_inter_MCBPC_bits@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rbx
	movq	_MV_TYPE_16X16@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_39
## %bb.18:
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %esi
	movq	_ff_h263_inter_MCBPC_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%r15, %rdi
	callq	_put_bits
	movq	_ff_h263_cbpy_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_put_bits
	movslq	(%r12), %rax
	testq	%rax, %rax
	movq	%r12, %rdi
	je	LBB0_20
## %bb.19:
	movq	_dquant_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx,%rax,4), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	-136(%rbp), %rdi                ## 8-byte Reload
LBB0_20:
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	callq	_get_bits_diff
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	addq	%rax, 80(%rdi)
LBB0_22:
	leaq	-128(%rbp), %rcx
	leaq	-140(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ff_h263_pred_motion
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	subl	-128(%rbp), %esi
	cmpl	$0, 100(%rdi)
	je	LBB0_50
## %bb.23:
	movq	%r15, %rdi
	callq	_h263p_encode_umotion
	movl	%r14d, %esi
	subl	-140(%rbp), %esi
	movq	%r15, %rdi
	callq	_h263p_encode_umotion
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	subl	-128(%rbp), %r13d
	cmpl	$1, %r13d
	jne	LBB0_52
## %bb.24:
	subl	-140(%rbp), %r14d
	cmpl	$1, %r14d
	jne	LBB0_52
## %bb.25:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	jmp	LBB0_51
LBB0_26:
	movq	32(%r8), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setg	%cl
	movdqu	4(%rax), %xmm0
	pxor	%xmm1, %xmm1
	pcmpgtd	%xmm1, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	shll	$5, %ecx
	xorl	%edx, %edx
	cmpl	$0, 20(%rax)
	setg	%dl
	orl	%ecx, %edx
	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, %eax
	orl	%edx, %eax
	movl	%eax, -148(%rbp)                ## 4-byte Spill
LBB0_27:
	movl	-148(%rbp), %eax                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	andl	$3, %eax
	movq	40(%r8), %rdx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rsi
	movl	(%r8), %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_29
## %bb.28:
	leal	4(%rax), %ebx
	testl	%ecx, %ecx
	cmovel	%eax, %ebx
	leaq	88(%r8), %r14
	movq	_ff_h263_intra_MCBPC_bits@GOTPCREL(%rip), %rcx
	leaq	(,%rbx,4), %rax
	addq	(%rcx), %rax
	movq	_ff_h263_intra_MCBPC_code@GOTPCREL(%rip), %rcx
	movq	%r8, %r15
	jmp	LBB0_30
LBB0_29:
	leal	8(%rax), %ebx
	testl	%ecx, %ecx
	cmovel	%eax, %ebx
	leaq	88(%r8), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%r8, %r15
	callq	_put_bits
	movq	_ff_h263_inter_MCBPC_bits@GOTPCREL(%rip), %rcx
	orl	$4, %ebx
	leaq	(,%rbx,4), %rax
	addq	(%rcx), %rax
	movq	_ff_h263_inter_MCBPC_code@GOTPCREL(%rip), %rcx
LBB0_30:
	movl	(%rax), %esi
	movq	(%rcx), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_put_bits
	cmpq	$0, 72(%r15)
	je	LBB0_32
## %bb.31:
	leaq	88(%r15), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	-136(%rbp), %r15                ## 8-byte Reload
LBB0_32:
	movl	-148(%rbp), %ecx                ## 4-byte Reload
	sarl	$2, %ecx
	leaq	88(%r15), %rbx
	movq	_ff_h263_cbpy_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_put_bits
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movslq	(%rdi), %rax
	testq	%rax, %rax
	movl	-144(%rbp), %r14d               ## 4-byte Reload
	je	LBB0_34
## %bb.33:
	movq	_dquant_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	-136(%rbp), %rdi                ## 8-byte Reload
LBB0_34:
	testl	%r14d, %r14d
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_54
## %bb.35:
	callq	_get_bits_diff
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	addq	%rax, 80(%rdi)
	jmp	LBB0_54
LBB0_36:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	movq	%r12, %rbx
	je	LBB0_38
## %bb.37:
	incq	80(%rbx)
	incl	116(%rbx)
LBB0_38:
	addq	$112, %rbx
	jmp	LBB0_76
LBB0_39:
	orl	$16, %eax
	movl	(%rcx,%rax,4), %esi
	movq	_ff_h263_inter_MCBPC_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%r15, %rdi
	callq	_put_bits
	movq	_ff_h263_cbpy_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_put_bits
	movslq	(%r12), %rax
	testq	%rax, %rax
	movq	%r12, %rdi
	je	LBB0_41
## %bb.40:
	movq	_dquant_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx,%rax,4), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	-136(%rbp), %rdi                ## 8-byte Reload
LBB0_41:
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_43
## %bb.42:
	callq	_get_bits_diff
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	addq	%rax, 80(%rdi)
LBB0_43:
	xorl	%ebx, %ebx
	leaq	-140(%rbp), %r14
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_46 Depth=1
	subl	-140(%rbp), %r13d
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_ff_h263_encode_motion_vector
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	incq	%rbx
	cmpq	$4, %rbx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_52
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	xorl	%edx, %edx
	leaq	-128(%rbp), %rcx
	movq	%r14, %r8
	callq	_ff_h263_pred_motion
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	16(%rdi), %rax
	movq	104(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %r13d
	movl	%r12d, %esi
	subl	-128(%rbp), %esi
	cmpl	$0, 100(%rdi)
	je	LBB0_44
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	%r15, %rdi
	callq	_h263p_encode_umotion
	movl	%r13d, %esi
	subl	-140(%rbp), %esi
	movq	%r15, %rdi
	callq	_h263p_encode_umotion
	subl	-128(%rbp), %r12d
	cmpl	$1, %r12d
	jne	LBB0_45
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=1
	subl	-140(%rbp), %r13d
	cmpl	$1, %r13d
	jne	LBB0_45
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	jmp	LBB0_45
LBB0_50:
	subl	-140(%rbp), %r14d
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_ff_h263_encode_motion_vector
LBB0_51:
	movq	-136(%rbp), %rdi                ## 8-byte Reload
LBB0_52:
	movl	-144(%rbp), %r14d               ## 4-byte Reload
	testl	%r14d, %r14d
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_54
## %bb.53:
	callq	_get_bits_diff
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	addl	%eax, 96(%rdi)
LBB0_54:
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_57
## %bb.55:
	cmpq	$0, 64(%rdi)
	je	LBB0_57
## %bb.56:
	movl	-80(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_57:
	leaq	256(%rbx), %r15
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_60
## %bb.58:
	cmpq	$0, 64(%rdi)
	je	LBB0_60
## %bb.59:
	movl	-76(%rbp), %eax
	movl	%eax, (%r15)
LBB0_60:
	leaq	512(%rbx), %r15
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_63
## %bb.61:
	cmpq	$0, 64(%rdi)
	je	LBB0_63
## %bb.62:
	movl	-72(%rbp), %eax
	movl	%eax, (%r15)
LBB0_63:
	leaq	768(%rbx), %r15
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_66
## %bb.64:
	cmpq	$0, 64(%rdi)
	je	LBB0_66
## %bb.65:
	movl	-68(%rbp), %eax
	movl	%eax, (%r15)
LBB0_66:
	leaq	1024(%rbx), %r15
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_69
## %bb.67:
	cmpq	$0, 64(%rdi)
	je	LBB0_69
## %bb.68:
	movl	-64(%rbp), %eax
	movl	%eax, (%r15)
LBB0_69:
	addq	$1280, %rbx                     ## imm = 0x500
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_h263_encode_block
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 72(%rdi)
	je	LBB0_72
## %bb.70:
	cmpq	$0, 64(%rdi)
	je	LBB0_72
## %bb.71:
	movl	-60(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_72:
	testl	%r14d, %r14d
	je	LBB0_77
## %bb.73:
	movq	64(%rdi), %r14
	movq	%rdi, %rbx
	callq	_get_bits_diff
	testq	%r14, %r14
	je	LBB0_75
## %bb.74:
	addl	%eax, 52(%rbx)
	addq	$48, %rbx
	jmp	LBB0_76
LBB0_75:
	addl	%eax, 60(%rbx)
	addq	$56, %rbx
LBB0_76:
	incl	(%rbx)
LBB0_77:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_79
## %bb.78:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_79:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_PASS1,4,2        ## @AV_CODEC_FLAG_PASS1
	.comm	_MV_TYPE_16X16,4,2              ## @MV_TYPE_16X16
	.comm	_ff_h263_inter_MCBPC_bits,8,3   ## @ff_h263_inter_MCBPC_bits
	.comm	_ff_h263_inter_MCBPC_code,8,3   ## @ff_h263_inter_MCBPC_code
	.comm	_ff_h263_cbpy_tab,8,3           ## @ff_h263_cbpy_tab
	.comm	_dquant_code,8,3                ## @dquant_code
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_ff_h263_intra_MCBPC_bits,8,3   ## @ff_h263_intra_MCBPC_bits
	.comm	_ff_h263_intra_MCBPC_code,8,3   ## @ff_h263_intra_MCBPC_code
.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 ff_h263_encode_mb
lCPI0_0:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_h263_encode_mb
	.p2align	2
_ff_h263_encode_mb:                     ; @ff_h263_encode_mb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x8, [x0, #120]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG_PASS1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG_PASS1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w26, w9, w8
	ldr	x0, [x0, #64]
	cbz	x0, LBB0_13
; %bb.1:
	str	w26, [sp, #8]                   ; 4-byte Folded Spill
	bl	_av_assert2
	ldr	x8, [x19, #72]
	str	x27, [sp]                       ; 8-byte Folded Spill
	cbz	x8, LBB0_23
; %bb.2:
	mov	x23, #0
	mov	x21, #0
	mov	w22, #0
	mov	w24, #5
	add	x28, sp, #16
	add	x26, sp, #64
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	lsl	w8, w8, w24
	orr	w22, w8, w22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	sub	w24, w24, #1
	add	x23, x23, #8
	add	x27, x27, #256
	cmp	x21, #6
	b.eq	LBB0_24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x27]
	cmp	x21, #4
	mov	w8, #28
	mov	w9, #24
	csel	x8, x9, x8, lo
	ldr	w20, [x19, x8]
	add	x2, x28, x23
	mov	x0, x19
	mov	x1, x21
	bl	_ff_h263_pred_dc
	asr	w8, w20, #1
	sub	w9, w25, w0
	cmp	w9, #0
	cneg	w8, w8, lt
	add	w8, w8, w9
	sdiv	w8, w8, w20
	ldr	w9, [x19, #92]
	cmp	w8, #127
	mov	w10, #127
	csel	w10, w8, w10, lt
	cmn	w10, #127
	mov	w11, #-127
	csel	w10, w10, w11, gt
	cmp	w9, #0
	csel	w8, w10, w8, eq
	str	w8, [x27]
	madd	w9, w8, w20, w0
	orr	w9, w9, #0x1
	str	w9, [x26, x21, lsl #2]
	tbnz	w9, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #2048
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #2047
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [x26, x21, lsl #2]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x28, x21, lsl #3]
	str	w9, [x10]
	ldr	x9, [x19, #32]
	ldr	w9, [x9, x21, lsl #2]
	cmp	w9, #0
	b.gt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w9, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_3
	b	LBB0_4
LBB0_13:
	mov	x22, x3
	mov	x23, x2
	mov	x0, x19
	mov	x1, x27
	bl	_get_p_cbp
	ldp	w8, w9, [x19]
Lloh6:
	adrp	x25, _MV_TYPE_16X16@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MV_TYPE_16X16@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w11, w22, w23
	orr	w11, w11, w0
	orr	w8, w11, w8
	sub	w9, w9, w10
	orr	w8, w8, w9
	add	x21, x19, #88
	cbz	w8, LBB0_33
; %bb.14:
	mov	x24, x0
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	and	w8, w24, #0x3
	asr	w9, w24, #2
	ldr	x10, [x19, #8]
	cmp	w8, #3
	ccmp	x10, #0, #4, eq
	eor	w10, w9, #0xf
	csel	w20, w10, w9, eq
	mov	w9, #8
	bfxil	w9, w24, #0, #2
	ldp	w10, w11, [x19]
	cmp	w10, #0
	csel	w9, w8, w9, eq
	ldr	w10, [x25]
Lloh8:
	adrp	x8, _ff_h263_inter_MCBPC_bits@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ff_h263_inter_MCBPC_bits@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	w11, w10
	b.ne	LBB0_36
; %bb.15:
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
Lloh11:
	adrp	x8, _ff_h263_inter_MCBPC_code@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ff_h263_inter_MCBPC_code@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w2, [x8, x9]
	mov	x0, x21
	bl	_put_bits
Lloh14:
	adrp	x8, _ff_h263_cbpy_tab@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ff_h263_cbpy_tab@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.16:
Lloh17:
	adrp	x9, _dquant_code@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dquant_code@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	w8, w8, #2
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x21
	mov	w1, #2
	bl	_put_bits
LBB0_17:
	cbz	w26, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_get_bits_diff
	ldr	x8, [x19, #80]
	add	x8, x8, x0
	str	x8, [x19, #80]
LBB0_19:
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ff_h263_pred_motion
	ldr	w8, [x19, #100]
	ldr	w9, [sp, #16]
	sub	w1, w23, w9
	cbz	w8, LBB0_47
; %bb.20:
	mov	x0, x21
	bl	_h263p_encode_umotion
	ldr	w8, [sp, #12]
	sub	w1, w22, w8
	mov	x0, x21
	bl	_h263p_encode_umotion
	ldr	w8, [sp, #16]
	sub	w8, w23, w8
	cmp	w8, #1
	b.ne	LBB0_48
; %bb.21:
	ldr	w8, [sp, #12]
	sub	w8, w22, w8
	cmp	w8, #1
	b.ne	LBB0_48
; %bb.22:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	b	LBB0_48
LBB0_23:
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, gt
	ldur	q0, [x8, #4]
	cmgt.4s	v0, v0, #0
Lloh20:
	adrp	x10, lCPI0_0@PAGE
Lloh21:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	and.16b	v0, v0, v1
	ldr	w8, [x8, #20]
	cmp	w8, #0
	cset	w8, gt
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	orr	w9, w10, w9, lsl #5
	orr	w22, w9, w8
LBB0_24:
	and	w8, w22, #0x3
	ldr	x10, [x19, #40]
Lloh22:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x9]
	ldr	w9, [x19]
	cmp	x10, x11
	b.ne	LBB0_26
; %bb.25:
	orr	w10, w8, #0x4
	cmp	w9, #0
	csel	w8, w8, w10, eq
	add	x21, x19, #88
Lloh25:
	adrp	x9, _ff_h263_intra_MCBPC_bits@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ff_h263_intra_MCBPC_bits@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x9, x9, w8, uxtw #2
Lloh28:
	adrp	x10, _ff_h263_intra_MCBPC_code@GOTPAGE
Lloh29:
	ldr	x10, [x10, _ff_h263_intra_MCBPC_code@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
	orr	w10, w8, #0x8
	cmp	w9, #0
	csel	w20, w8, w10, eq
	add	x21, x19, #88
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
Lloh30:
	adrp	x8, _ff_h263_inter_MCBPC_bits@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ff_h263_inter_MCBPC_bits@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x8]
	orr	w8, w20, #0x4
	add	x9, x9, w8, uxtw #2
Lloh33:
	adrp	x10, _ff_h263_inter_MCBPC_code@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ff_h263_inter_MCBPC_code@GOTPAGEOFF]
LBB0_27:
	ldr	w26, [sp, #8]                   ; 4-byte Folded Reload
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	ldr	w1, [x9]
	ldr	x9, [x10]
	ldr	w2, [x9, x8, lsl #2]
	mov	x0, x21
	bl	_put_bits
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_29
; %bb.28:
	add	x0, x19, #88
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
LBB0_29:
	asr	w8, w22, #2
Lloh35:
	adrp	x9, _ff_h263_cbpy_tab@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ff_h263_cbpy_tab@GOTPAGEOFF]
	add	x21, x19, #88
Lloh37:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
	ldr	w8, [x19]
	cbz	w8, LBB0_31
; %bb.30:
Lloh38:
	adrp	x9, _dquant_code@GOTPAGE
Lloh39:
	ldr	x9, [x9, _dquant_code@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	w8, w8, #2
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x21
	mov	w1, #2
	bl	_put_bits
LBB0_31:
	cbz	w26, LBB0_50
; %bb.32:
	mov	x0, x19
	bl	_get_bits_diff
	ldr	x8, [x19, #80]
	add	x8, x8, x0
	str	x8, [x19, #80]
	b	LBB0_50
LBB0_33:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	cbz	w26, LBB0_35
; %bb.34:
	ldr	x8, [x19, #80]
	add	x8, x8, #1
	str	x8, [x19, #80]
	ldr	w8, [x19, #116]
	add	w8, w8, #1
	str	w8, [x19, #116]
LBB0_35:
	add	x8, x19, #112
	b	LBB0_72
LBB0_36:
	orr	w9, w9, #0x10
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
Lloh41:
	adrp	x8, _ff_h263_inter_MCBPC_code@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ff_h263_inter_MCBPC_code@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	w2, [x8, x9]
	mov	x0, x21
	bl	_put_bits
Lloh44:
	adrp	x8, _ff_h263_cbpy_tab@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ff_h263_cbpy_tab@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
	ldr	w8, [x19]
	cbz	w8, LBB0_38
; %bb.37:
Lloh47:
	adrp	x9, _dquant_code@GOTPAGE
Lloh48:
	ldr	x9, [x9, _dquant_code@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	add	w8, w8, #2
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x21
	mov	w1, #2
	bl	_put_bits
LBB0_38:
	cbz	w26, LBB0_40
; %bb.39:
	mov	x0, x19
	bl	_get_bits_diff
	ldr	x8, [x19, #80]
	add	x8, x8, x0
	str	x8, [x19, #80]
LBB0_40:
	mov	x22, #0
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_43 Depth=1
	ldr	w8, [sp, #12]
	sub	w2, w20, w8
	mov	x0, x19
	mov	w3, #1
	bl	_ff_h263_encode_motion_vector
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=1
	add	x22, x22, #1
	cmp	x22, #4
	b.eq	LBB0_48
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ff_h263_pred_motion
	ldr	x8, [x19, #104]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	ldp	w23, w20, [x8]
	ldr	w8, [x19, #100]
	ldr	w9, [sp, #16]
	sub	w1, w23, w9
	cbz	w8, LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=1
	mov	x0, x21
	bl	_h263p_encode_umotion
	ldr	w8, [sp, #12]
	sub	w1, w20, w8
	mov	x0, x21
	bl	_h263p_encode_umotion
	ldr	w8, [sp, #16]
	sub	w8, w23, w8
	cmp	w8, #1
	b.ne	LBB0_42
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=1
	ldr	w8, [sp, #12]
	sub	w8, w20, w8
	cmp	w8, #1
	b.ne	LBB0_42
; %bb.46:                               ;   in Loop: Header=BB0_43 Depth=1
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	b	LBB0_42
LBB0_47:
	ldr	w8, [sp, #12]
	sub	w2, w22, w8
	mov	x0, x19
	mov	w3, #1
	bl	_ff_h263_encode_motion_vector
LBB0_48:
	cbz	w26, LBB0_50
; %bb.49:
	mov	x0, x19
	bl	_get_bits_diff
	ldr	w8, [x19, #96]
	add	w8, w8, w0
	str	w8, [x19, #96]
LBB0_50:
	mov	x0, x19
	mov	x1, x27
	mov	w2, #0
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_53
; %bb.51:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_53
; %bb.52:
	ldr	w8, [sp, #64]
	str	w8, [x27]
LBB0_53:
	add	x21, x27, #256
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_56
; %bb.54:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_56
; %bb.55:
	ldr	w8, [sp, #68]
	str	w8, [x21]
LBB0_56:
	add	x21, x27, #512
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_59
; %bb.57:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_59
; %bb.58:
	ldr	w8, [sp, #72]
	str	w8, [x21]
LBB0_59:
	add	x21, x27, #768
	mov	x0, x19
	mov	x1, x21
	mov	w2, #3
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_62
; %bb.60:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_62
; %bb.61:
	ldr	w8, [sp, #76]
	str	w8, [x21]
LBB0_62:
	add	x21, x27, #1024
	mov	x0, x19
	mov	x1, x21
	mov	w2, #4
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_65
; %bb.63:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_65
; %bb.64:
	ldr	w8, [sp, #80]
	str	w8, [x21]
LBB0_65:
	add	x20, x27, #1280
	mov	x0, x19
	mov	x1, x20
	mov	w2, #5
	bl	_h263_encode_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_68
; %bb.66:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_68
; %bb.67:
	ldr	w8, [sp, #84]
	str	w8, [x20]
LBB0_68:
	cbz	w26, LBB0_73
; %bb.69:
	ldr	x20, [x19, #64]
	mov	x0, x19
	bl	_get_bits_diff
	cbz	x20, LBB0_71
; %bb.70:
	ldr	w8, [x19, #52]
	add	w8, w8, w0
	str	w8, [x19, #52]
	add	x8, x19, #48
	b	LBB0_72
LBB0_71:
	ldr	w8, [x19, #60]
	add	w8, w8, w0
	str	w8, [x19, #60]
	add	x8, x19, #56
LBB0_72:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_73:
	ldr	x8, [sp, #88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_75
; %bb.74:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_75:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_PASS1,4,2        ; @AV_CODEC_FLAG_PASS1
	.comm	_MV_TYPE_16X16,4,2              ; @MV_TYPE_16X16
	.comm	_ff_h263_inter_MCBPC_bits,8,3   ; @ff_h263_inter_MCBPC_bits
	.comm	_ff_h263_inter_MCBPC_code,8,3   ; @ff_h263_inter_MCBPC_code
	.comm	_ff_h263_cbpy_tab,8,3           ; @ff_h263_cbpy_tab
	.comm	_dquant_code,8,3                ; @dquant_code
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_ff_h263_intra_MCBPC_bits,8,3   ; @ff_h263_intra_MCBPC_bits
	.comm	_ff_h263_intra_MCBPC_code,8,3   ; @ff_h263_intra_MCBPC_code
.subsections_via_symbols
