	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_push_video_thread
_ffmpeg_push_video_thread:              ## @ffmpeg_push_video_thread
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ffmpeg_scale_input
LBB0_2:
	movl	(%rbx), %eax
	movq	8(%rbx), %rdx
	movl	%eax, (%rdx)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_encode_video
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpq	$0, -24(%rbp)
	je	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_av_interleaved_write_frame
	testq	%rax, %rax
	js	LBB0_6
LBB0_5:
	incl	(%rbx)
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_push_video_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_push_video_thread
_ffmpeg_push_video_thread:              ; @ffmpeg_push_video_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ffmpeg_scale_input
LBB0_2:
	ldr	w8, [x19]
	ldr	x2, [x19, #8]
	str	w8, [x2]
	add	x1, sp, #8
	mov	x0, x19
	bl	_encode_video
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_av_interleaved_write_frame
	tbnz	x0, #63, LBB0_6
LBB0_5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_push_video_thread
.subsections_via_symbols
