	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function avpriv_dnxhd_get_hr_frame_size
LCPI0_0:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_avpriv_dnxhd_get_hr_frame_size
	.p2align	4, 0x90
_avpriv_dnxhd_get_hr_frame_size:        ## @avpriv_dnxhd_get_hr_frame_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_ff_dnxhd_get_cid_table
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movd	%ebx, %xmm0
	pinsrd	$1, %r14d, %xmm0
	paddd	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, %xmm1
	psrad	$31, %xmm1
	psrld	$28, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$4, %xmm1
	pextrd	$1, %xmm1, %ecx
	movd	%xmm1, %edx
	imull	%edx, %ecx
	movq	_ff_dnxhd_cid_table@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	%eax, %edi
	shlq	$4, %rdi
	imull	8(%rsi,%rdi), %ecx
	movl	%ecx, %eax
	cltd
	idivl	(%rsi,%rdi)
                                        ## kill: def $eax killed $eax def $rax
	leal	2048(%rax), %ecx
	leal	6143(%rax), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	andl	$-4096, %edi                    ## imm = 0xF000
	movl	$8192, %esi                     ## imm = 0x2000
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dnxhd_cid_table,8,3         ## @ff_dnxhd_cid_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_dnxhd_get_hr_frame_size ; -- Begin function avpriv_dnxhd_get_hr_frame_size
	.p2align	2
_avpriv_dnxhd_get_hr_frame_size:        ; @avpriv_dnxhd_get_hr_frame_size
	.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	x20, x2
	mov	x19, x1
	bl	_ff_dnxhd_get_cid_table
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	w8, w20, #15
	add	w9, w20, #30
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	add	w9, w19, #15
	add	w10, w19, #30
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #4
	mul	w8, w8, w9
Lloh0:
	adrp	x9, _ff_dnxhd_cid_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_dnxhd_cid_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x9, x9, w0, uxtw #4
	ldr	w10, [x9, #8]
	mul	w8, w8, w10
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w9, w8, #2048
	mov	w10, #6143
	add	w8, w8, w10
	cmp	w9, #0
	csel	w8, w8, w9, lt
	and	w0, w8, #0xfffff000
	mov	w1, #8192
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FFMAX
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dnxhd_cid_table,8,3         ; @ff_dnxhd_cid_table
.subsections_via_symbols
