	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h261_reorder_mb_index       ## -- Begin function ff_h261_reorder_mb_index
	.p2align	4, 0x90
_ff_h261_reorder_mb_index:              ## @ff_h261_reorder_mb_index
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %eax
	imull	4(%rdi), %eax
	addl	(%rdi), %eax
	movslq	%eax, %r12
	imulq	$780903145, %r12, %rbx          ## imm = 0x2E8BA2E9
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$33, %rbx
	addl	%ecx, %ebx
	leal	(%rbx,%rbx,4), %ecx
	leal	(%rbx,%rcx,2), %ecx
	movl	%r12d, %r15d
	subl	%ecx, %r15d
	jne	LBB0_4
## %bb.1:
	imull	$1041204193, %eax, %eax         ## imm = 0x3E0F83E1
	addl	$65075262, %eax                 ## imm = 0x3E0F83E
	cmpl	$130150524, %eax                ## imm = 0x7C1F07C
	ja	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_h261_encode_gob_header
LBB0_3:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_4:
	movl	12(%r14), %esi
	movl	16(%r14), %edi
	callq	_ff_h261_get_picture_format
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movslq	%ebx, %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ebx
	imulq	$1041204193, %r12, %rax         ## imm = 0x3E0F83E1
	movq	%rax, %rcx
	sarq	$35, %rcx
	movq	%rax, %rdx
	shrq	$63, %rdx
	addl	%edx, %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	andl	$-2, %esi
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	leal	(%rcx,%rsi,2), %ecx
	addl	%r15d, %ecx
	movl	%ecx, (%r14)
	sarq	$36, %rax
	addl	%edx, %eax
	leal	(%rax,%rax,2), %eax
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_ff_init_block_index
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_update_block_index          ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_h261_reorder_mb_index       ; -- Begin function ff_h261_reorder_mb_index
	.p2align	2
_ff_h261_reorder_mb_index:              ; @ff_h261_reorder_mb_index
	.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	x19, x0
	ldp	w8, w9, [x0]
	ldr	w10, [x0, #8]
	madd	w22, w10, w9, w8
	mov	w8, #41705
	movk	w8, #11915, lsl #16
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w20, w8, w9
	mov	w8, #11
	msub	w21, w20, w8, w22
	cbnz	w21, LBB0_4
; %bb.1:
	mov	w8, #33761
	movk	w8, #15887, lsl #16
	mov	w9, #63550
	movk	w9, #992, lsl #16
	madd	w8, w22, w8, w9
	mov	w9, #61564
	movk	w9, #1985, lsl #16
	cmp	w8, w9
	b.hi	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_h261_encode_gob_header
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	stp	xzr, xzr, [x8]
LBB0_4:
	ldp	w1, w0, [x19, #12]
	bl	_ff_h261_get_picture_format
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #33761
	movk	w8, #15887, lsl #16
	smull	x8, w22, w8
	asr	x9, x8, #35
	lsr	x10, x8, #63
	add	w9, w9, w10
	and	w11, w9, #0x1
	cmp	w9, #0
	cneg	w9, w11, lt
	mov	w11, #11
	madd	w9, w9, w11, w21
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	smull	x11, w20, w11
	lsr	x12, x11, #63
	lsr	x11, x11, #32
	add	w11, w11, w12
	add	w11, w11, w11, lsl #1
	asr	x8, x8, #36
	add	w8, w8, w10
	add	w8, w8, w8, lsl #1
	sub	w10, w20, w11
	add	w8, w10, w8
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_ff_init_block_index
	mov	x0, x19
	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
	b	_ff_update_block_index
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
