	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_video_framerate
_get_video_framerate:                   ## @get_video_framerate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_hb_value_get_string
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_hb_video_framerate_get_from_name
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_11
LBB0_5:
	leaq	-44(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_hb_video_framerate_get_limits
	movl	-36(%rbp), %r14d
	movl	%r14d, %eax
	cltd
	idivl	-40(%rbp)
	movl	%eax, %ebx
	movl	-44(%rbp), %r15d
	movq	%r12, %rdi
	callq	_hb_value_get_double
	cvtsi2sd	%ebx, %xmm1
	ucomisd	%xmm1, %xmm0
	jb	LBB0_8
## %bb.6:
	movl	%r14d, %eax
	cltd
	idivl	%r15d
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	ucomisd	%xmm0, %xmm1
	jae	LBB0_7
LBB0_8:
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-44(%rbp), %xmm1
	movl	$-1, %r14d
	ucomisd	%xmm1, %xmm0
	jb	LBB0_11
## %bb.9:
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-40(%rbp), %xmm1
	ucomisd	%xmm0, %xmm1
	jb	LBB0_11
## %bb.10:
	cvttsd2si	%xmm0, %r14d
	jmp	LBB0_11
LBB0_7:
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-36(%rbp), %xmm1
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_VALUE_TYPE_STRING,8,3       ## @HB_VALUE_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source"

L_.str.1:                               ## @.str.1
	.asciz	"auto"

L_.str.2:                               ## @.str.2
	.asciz	"same as source"

	.no_dead_strip	_get_video_framerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_framerate
_get_video_framerate:                   ; @get_video_framerate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_hb_value_type
Lloh0:
	adrp	x8, _HB_VALUE_TYPE_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_VALUE_TYPE_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_hb_value_get_string
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_hb_video_framerate_get_from_name
	cmn	w0, #1
	b.ne	LBB0_11
LBB0_5:
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_hb_video_framerate_get_limits
	ldp	w20, w8, [sp, #4]
	ldr	w21, [sp, #12]
	sdiv	w22, w20, w8
	mov	x0, x19
	bl	_hb_value_get_double
	scvtf	d1, w22
	fcmp	d0, d1
	sdiv	w8, w20, w21
	scvtf	d1, w8
	fccmp	d0, d1, #2, ge
	b.ls	LBB0_9
; %bb.6:
	ldr	s1, [sp, #12]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fcmp	d0, d1
	b.lt	LBB0_8
; %bb.7:
	ldr	s1, [sp, #8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fcmp	d0, d1
	b.ls	LBB0_10
LBB0_8:
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	ldr	s1, [sp, #4]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d1, d0
LBB0_10:
	fcvtzs	w0, d0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_VALUE_TYPE_STRING,8,3       ; @HB_VALUE_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source"

l_.str.1:                               ; @.str.1
	.asciz	"auto"

l_.str.2:                               ; @.str.2
	.asciz	"same as source"

	.no_dead_strip	_get_video_framerate
.subsections_via_symbols
