	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sub2video_heartbeat
_sub2video_heartbeat:                   ## @sub2video_heartbeat
	.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	_input_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %r13
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	(%r13), %r14d
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_input_streams@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	4(%r13), %rcx
	movslq	%r14d, %rdx
	addq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rbx
	cmpq	$0, 40(%rbx)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r12), %rax
	movl	(%rax), %esi
	movq	48(%rbx), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_av_rescale_q
	leaq	-1(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	24(%rbx), %rcx
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sub2video_update
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rbx)
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %edi
	callq	_av_buffersrc_get_nb_failed_requests
	addl	%eax, %r12d
	incq	%r15
	movslq	8(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_sub2video_push_ref
	jmp	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	_input_files,8,3                ## @input_files
	.comm	_input_streams,8,3              ## @input_streams
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.no_dead_strip	_sub2video_heartbeat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sub2video_heartbeat
_sub2video_heartbeat:                   ; @sub2video_heartbeat
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _input_files@GOTPAGE
Lloh1:
	ldr	x8, [x8, _input_files@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x23, [x8, x9, lsl #3]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w24, #0
Lloh3:
	adrp	x25, _input_streams@GOTPAGE
Lloh4:
	ldr	x25, [x25, _input_streams@GOTPAGEOFF]
Lloh5:
	adrp	x26, _INT64_MAX@GOTPAGE
Lloh6:
	ldr	x26, [x26, _INT64_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x25]
	ldr	w9, [x23, #4]
	add	w9, w9, w24
	ldr	x21, [x8, w9, sxtw #3]
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #48]
	ldr	w1, [x8]
	ldr	x8, [x21, #48]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_av_rescale_q
	sub	x22, x0, #1
	ldr	x8, [x21, #24]
	cmp	x22, x8
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #32]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #40]
	ldr	x9, [x9]
	ldr	w9, [x9]
	ldr	x10, [x26]
	cmp	w9, #0
	ccmp	x8, x10, #0, eq
	b.ge	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, #0
	bl	_sub2video_update
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	w27, #0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w0, [x8]
	bl	_av_buffersrc_get_nb_failed_requests
	add	w27, w27, w0
	add	x28, x28, #1
	ldrsw	x8, [x21, #8]
	cmp	x28, x8
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w27, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_sub2video_push_ref
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_input_files,8,3                ; @input_files
	.comm	_input_streams,8,3              ; @input_streams
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.no_dead_strip	_sub2video_heartbeat
.subsections_via_symbols
