	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function syncVideoClose
LCPI0_0:
	.quad	0x40f5f90000000000              ## double 9.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_syncVideoClose:                        ## @syncVideoClose
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r14
	movq	8(%r15), %rax
	movq	48(%r15), %rcx
	movq	64(%rax), %rbx
	movl	(%rcx), %esi
	movl	56(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movq	48(%r15), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	movl	8(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:
	movl	12(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.4:
	cvtsi2sd	%edx, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm2
	divsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %esi
	movapd	%xmm1, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2sd	%ecx, %xmm2
	divsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %edx
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	mulsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	divsd	%xmm1, %xmm0
	leaq	L_.str.1(%rip), %rdi
	movb	$1, %al
	callq	_hb_log
LBB0_5:
	movq	(%rbx), %rax
	movq	_HB_PASS_ENCODE_1ST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movl	8(%rbx), %edi
	callq	_hb_interjob_get
	movq	48(%r15), %rcx
	movl	(%rcx), %edx
	movl	%edx, (%rax)
	jmp	LBB0_8
LBB0_6:
	movq	48(%r15), %rcx
LBB0_8:
	movl	24(%rcx), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	movl	24(%rax), %edi
	movq	%rbx, %rsi
	callq	_hb_list_rem
	movq	%rbx, %rdi
	callq	_free
	movq	48(%r15), %rax
	movl	24(%rax), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movq	48(%r15), %rdi
	addq	$24, %rdi
	callq	_hb_list_close
	movq	48(%r15), %rdi
	addq	$20, %rdi
	callq	_hb_list_empty
	movq	48(%r15), %rdi
	addq	$16, %rdi
	callq	_hb_list_empty
	movq	8(%r15), %rax
	movl	28(%rax), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	%rax, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_free
	movq	8(%r15), %rax
	movl	28(%rax), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	28(%rax), %edi
	movq	%rbx, %rsi
	callq	_hb_list_rem
	cmpq	$0, 40(%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	40(%rbx), %rdi
	callq	_hb_thread_close
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_17
LBB0_18:
	movq	8(%r15), %rdi
	addq	$28, %rdi
	callq	_hb_list_close
	movq	8(%r15), %rdi
	addq	$24, %rdi
	callq	_hb_lock_close
	movq	8(%r15), %rax
	movq	16(%rax), %rdi
	callq	_free
	movq	8(%r15), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync: got %d frames, %d expected"

L_.str.1:                               ## @.str.1
	.asciz	"sync: framerate min %.3f fps, max %.3f fps, avg %.3f fps"

	.comm	_HB_PASS_ENCODE_1ST,8,3         ## @HB_PASS_ENCODE_1ST
	.no_dead_strip	_syncVideoClose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syncVideoClose
_syncVideoClose:                        ; @syncVideoClose
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_19
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	x21, [x8, #64]
	ldr	x9, [x20, #48]
	ldr	w1, [x9]
	ldr	w2, [x8, #56]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	ldr	x8, [x20, #48]
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	w11, [x8, #8]
	cmp	w11, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w10, [x8, #12]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.4:
	scvtf	d0, w11
	mov	x11, #273778395316224
	movk	x11, #16629, lsl #48
	fmov	d1, x11
	fdiv	d0, d1, d0
	fcvtzs	w1, d0
	scvtf	d0, w9
	fdiv	d0, d1, d0
	fcvtzs	w2, d0
	ldr	s0, [x8]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fmul	d0, d0, d1
	scvtf	d1, w10
	fdiv	d0, d0, d1
	str	d0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
LBB0_5:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _HB_PASS_ENCODE_1ST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HB_PASS_ENCODE_1ST@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x21, #8]
	bl	_hb_interjob_get
	ldr	x8, [x20, #48]
	ldr	w9, [x8]
	str	w9, [x0]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #48]
LBB0_8:
	ldr	w0, [x8, #24]
	mov	w1, #0
	bl	_hb_list_item
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	ldr	w0, [x8, #24]
	mov	x1, x21
	bl	_hb_list_rem
	mov	x0, x21
	bl	_free
	ldr	x8, [x20, #48]
	ldr	w0, [x8, #24]
	mov	w1, #0
	bl	_hb_list_item
	mov	x21, x0
	cbnz	x0, LBB0_10
LBB0_11:
	ldr	x8, [x20, #48]
	add	x0, x8, #24
	bl	_hb_list_close
	ldr	x8, [x20, #48]
	add	x0, x8, #20
	bl	_hb_list_empty
	ldr	x8, [x20, #48]
	add	x0, x8, #16
	bl	_hb_list_empty
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #28]
	mov	w1, #0
	bl	_hb_list_item
	cbz	x0, LBB0_18
; %bb.12:
	mov	x21, x0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_free
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #28]
	mov	w1, #0
	bl	_hb_list_item
	mov	x21, x0
	cbz	x0, LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #28]
	mov	x1, x21
	bl	_hb_list_rem
	mov	x0, x21
	ldr	x8, [x0, #40]!
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_thread_close
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	blr	x8
	b	LBB0_13
LBB0_18:
	ldr	x8, [x20, #8]
	add	x0, x8, #28
	bl	_hb_list_close
	ldr	x8, [x20, #8]
	add	x0, x8, #24
	bl	_hb_lock_close
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #16]
	bl	_free
	ldr	x0, [x20, #8]
	bl	_free
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
LBB0_19:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync: got %d frames, %d expected"

l_.str.1:                               ; @.str.1
	.asciz	"sync: framerate min %.3f fps, max %.3f fps, avg %.3f fps"

	.comm	_HB_PASS_ENCODE_1ST,8,3         ; @HB_PASS_ENCODE_1ST
	.no_dead_strip	_syncVideoClose
.subsections_via_symbols
