	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_push_video
_ffmpeg_push_video:                     ## @ffmpeg_push_video
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r12
	movl	20(%rdi), %eax
	movl	24(%rdi), %edi
	leal	1(%rax), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	movl	%edx, %esi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%edx, 20(%r12)
	movl	$1, %r14d
	testl	%esi, %esi
	jne	LBB0_12
## %bb.3:
	movl	8(%r12), %edi
	callq	_slock_lock
	movl	16(%r12), %edi
	callq	_fifo_write_avail
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_slock_unlock
	cmpl	$0, 36(%r12)
	jne	LBB0_7
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r12), %edi
	callq	_scond_signal
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r12), %edi
	callq	_slock_unlock
	movl	8(%r12), %edi
	callq	_slock_lock
	movl	16(%r12), %edi
	callq	_fifo_write_avail
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_slock_unlock
	cmpl	$0, 36(%r12)
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$31, %ebx
	ja	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r12), %edi
	callq	_slock_lock
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, (%r12)
	movl	4(%r12), %edi
	movl	32(%r12), %esi
	callq	_scond_wait
	movl	$1, (%r12)
	jmp	LBB0_6
LBB0_13:
	movl	8(%r12), %edi
	callq	_slock_lock
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	cmpq	$0, -56(%rbp)
	je	LBB0_16
## %bb.14:
	movq	$0, -80(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movl	28(%r12), %eax
	imull	-80(%rbp), %eax
LBB0_17:
	movl	%eax, -72(%rbp)
	movl	16(%r12), %edi
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	callq	_fifo_write
	cmpl	$0, -76(%rbp)
	je	LBB0_20
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r12), %edi
	movslq	%ebx, %rbx
	movq	%rbx, %rsi
	shlq	$5, %rsi
	addq	16(%r15), %rsi
	movl	-72(%rbp), %edx
	callq	_fifo_write
	incl	%r13d
	addl	8(%r15), %ebx
	cmpl	-76(%rbp), %r13d
	jb	LBB0_19
LBB0_20:
	movl	8(%r12), %edi
	callq	_slock_unlock
	movl	4(%r12), %edi
	callq	_scond_signal
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_push_video
.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
_ffmpeg_push_video:                     ; @ffmpeg_push_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_12
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_12
; %bb.2:
	ldp	w8, w9, [x19, #20]
	add	w10, w8, #1
	sdiv	w11, w8, w9
	msub	w8, w11, w9, w8
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	str	w9, [x19, #20]
	cbz	w8, LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_12
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_slock_lock
	ldr	w0, [x19, #16]
	bl	_fifo_write_avail
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_slock_unlock
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_11
; %bb.5:
	mov	w22, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #4]
	bl	_scond_signal
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #32]
	bl	_slock_unlock
	ldr	w0, [x19, #8]
	bl	_slock_lock
	ldr	w0, [x19, #16]
	bl	_fifo_write_avail
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_slock_unlock
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #31
	b.hi	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #32]
	bl	_slock_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #32]
	bl	_scond_wait
	str	w22, [x19]
	b	LBB0_7
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #80
	ret
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_slock_lock
	ldp	q1, q0, [x20]
	stp	q1, q0, [sp]
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w8, #0
	str	xzr, [sp]
	b	LBB0_16
LBB0_15:
	ldr	w8, [sp]
	ldr	w9, [x19, #28]
	mul	w8, w9, w8
LBB0_16:
	str	w8, [sp, #8]
	ldr	w0, [x19, #16]
	mov	x1, sp
	mov	w2, #32
	bl	_fifo_write
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_19
; %bb.17:
	mov	w21, #0
	mov	w22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	ldr	x8, [x20, #16]
	sxtw	x9, w21
	add	x1, x8, x9, lsl #5
	ldr	w2, [sp, #8]
	bl	_fifo_write
	add	w22, w22, #1
	ldr	w8, [x20, #8]
	add	w21, w8, w21
	ldr	w8, [sp, #4]
	cmp	w22, w8
	b.lo	LBB0_18
LBB0_19:
	ldr	w0, [x19, #8]
	bl	_slock_unlock
	ldr	w0, [x19, #4]
	bl	_scond_signal
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_push_video
.subsections_via_symbols
