	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dv_init_dynamic_tables      ## -- Begin function ff_dv_init_dynamic_tables
	.p2align	4, 0x90
_ff_dv_init_dynamic_tables:             ## @ff_dv_init_dynamic_tables
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%ecx, %r13d
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	testl	%eax, %eax
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	addl	$6, %r15d
	xorl	%ebx, %ebx
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=3
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movslq	%r14d, %r14
	movq	%r14, %r12
	shlq	$4, %r12
	movq	8(%rax,%r12), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_dv_calc_mb_coordinates
	movq	(%r13), %rax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	incl	%r14d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r15d, (%rax,%r12)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=3
	addl	$5, %r15d
	incl	%ebx
	cmpl	$27, %ebx
	je	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r15d, %eax
	movzbl	%bl, %ecx
	imull	$171, %ecx, %edx
	shrl	$9, %edx
	leal	(%rdx,%rdx,2), %edx
	negl	%edx
	xorl	%r15d, %r15d
	addb	%dl, %cl
	sete	%r15b
	addl	%eax, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_DV_PROFILE_IS_1080i50
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$11, %r14d
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_DV_PROFILE_IS_720p50
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$9, %r14d
	ja	LBB0_11
	jmp	LBB0_10
LBB0_15:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_dv_init_dynamic_tables      ; -- Begin function ff_dv_init_dynamic_tables
	.p2align	2
_ff_dv_init_dynamic_tables:             ; @ff_dv_init_dynamic_tables
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w10, [x1]
	cmp	w10, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w8, #0
	mov	w21, #0
	mov	w24, #0
	ldr	w9, [x1, #4]
	mov	w25, #43691
	movk	w25, #43690, lsl #16
	mov	w26, #21846
	movk	w26, #21845, lsl #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w21, w10
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w22, w22, #1
	ldr	w9, [x19, #4]
	cmp	w22, w9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	mov	w23, #0
	add	w8, w8, #6
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=3
	ldr	x8, [x20]
	sbfiz	x28, x24, #4, #32
	add	x8, x8, x28
	ldr	x4, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_dv_calc_mb_coordinates
	ldr	x8, [x20]
	add	w24, w24, #1
	str	w27, [x8, x28]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	add	w8, w27, #5
	add	w23, w23, #1
	cmp	w23, #27
	b.eq	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	and	w9, w23, #0xff
	mul	w9, w9, w25
	cmp	w9, w26
	cinc	w27, w8, lo
	mov	x0, x19
	bl	_DV_PROFILE_IS_1080i50
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	cbz	w21, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=3
	cmp	w22, #11
	b.eq	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=3
	mov	x0, x19
	bl	_DV_PROFILE_IS_720p50
	cbz	x0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=3
	cmp	w22, #9
	b.hi	LBB0_9
	b	LBB0_8
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
