	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_direct_dist_scale_factor ## -- Begin function ff_h264_direct_dist_scale_factor
	.p2align	4, 0x90
_ff_h264_direct_dist_scale_factor:      ## @ff_h264_direct_dist_scale_factor
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_FIELD_PICTURE
	movq	8(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdx
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	sete	%al
	shlq	$2, %rax
	addq	(%rcx), %rax
	jmp	LBB0_3
LBB0_2:
	addq	$8, %rcx
	movq	%rcx, %rax
LBB0_3:
	movl	(%rax), %r12d
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_FRAME_MBAFF
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.6:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	16(%rbx), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_get_scale_factor
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_7
## %bb.8:
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_14
## %bb.9:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	4(%rax), %r12d
	movl	4(%rcx), %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	16(%rbx), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_get_scale_factor
	movq	16(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%ebx, %edx
	xorl	$1, %edx
	movq	%rax, (%rcx,%rdx,8)
	incl	%ebx
	movq	(%r14), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %eax
LBB0_11:
	testl	%eax, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_get_scale_factor
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_BOTTOM_FIELD,8,3          ## @PICT_BOTTOM_FIELD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_direct_dist_scale_factor ; -- Begin function ff_h264_direct_dist_scale_factor
	.p2align	2
_ff_h264_direct_dist_scale_factor:      ; @ff_h264_direct_dist_scale_factor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x22, x0
	bl	_FIELD_PICTURE
	ldr	x8, [x22, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh0:
	adrp	x10, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	add	x8, x8, w9, uxtw #2
	b	LBB0_3
LBB0_2:
	add	x8, x8, #8
LBB0_3:
	ldr	w20, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w21, [x8]
	mov	x0, x22
	bl	_FRAME_MBAFF
	cbz	x0, LBB0_11
; %bb.4:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x25, #0
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w23, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w24, [x8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w25, #16
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_get_scale_factor
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	cmp	x25, x8, lsl #1
	b.lt	LBB0_6
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	w24, #0
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	w22, [x8, #4]
	ldr	w23, [x9, #4]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w24, #16
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_get_scale_factor
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	eor	w9, w24, #0x1
	str	x0, [x8, w9, uxtw #3]
	add	w24, w24, #1
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w24, w8, lsl #1
	b.lt	LBB0_9
; %bb.10:
	cmp	w8, #1
	b.ge	LBB0_12
	b	LBB0_14
LBB0_11:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
LBB0_12:
	mov	x22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_get_scale_factor
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.lt	LBB0_13
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_BOTTOM_FIELD,8,3          ; @PICT_BOTTOM_FIELD
.subsections_via_symbols
