	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_framerate_get_close   ## -- Begin function hb_video_framerate_get_close
	.p2align	4, 0x90
_hb_video_framerate_get_close:          ## @hb_video_framerate_get_close
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rdi), %xmm0
	divsd	(%rdi), %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	callq	_hb_video_framerate_get_next
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$-1, %r14d
	movq	_hb_video_rate_clock@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_hb_video_framerate_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r15), %xmm0
	divsd	(%rbx), %xmm0
	subsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_ABS
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cvttsd2si	(%rbx), %r14d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_ABS
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hb_video_rate_clock,8,3        ## @hb_video_rate_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_framerate_get_close   ; -- Begin function hb_video_framerate_get_close
	.p2align	2
_hb_video_framerate_get_close:          ; @hb_video_framerate_get_close
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	fmov	d8, d0
	ldp	d9, d10, [x0]
	mov	x0, #0
	bl	_hb_video_framerate_get_next
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	scvtf	d0, d10
	mov	w19, #-1
Lloh0:
	adrp	x21, _hb_video_rate_clock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hb_video_rate_clock@GOTPAGEOFF]
	fdiv	d10, d0, d9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_hb_video_framerate_get_next
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x21]
	scvtf	d0, d0
	ldr	d1, [x20]
	fdiv	d0, d0, d1
	fsub	d9, d0, d10
	fmov	d0, d9
	bl	_ABS
	fcmp	d0, d8
	b.pl	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	d0, [x20]
	fcvtzs	w19, d0
	fmov	d0, d9
	bl	_ABS
	fmov	d8, d0
	b	LBB0_2
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_video_rate_clock,8,3        ; @hb_video_rate_clock
.subsections_via_symbols
