	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_push_audio
_ffmpeg_push_audio:                     ## @ffmpeg_push_audio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r12
	movl	$1, %r14d
	cmpl	$0, 28(%rdi)
	je	LBB0_14
## %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, 24(%r12)
	jne	LBB0_7
LBB0_10:
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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	20(%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, 24(%r12)
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movslq	(%r15), %rcx
	movslq	12(%r12), %rdx
	imulq	%rcx, %rdx
	shlq	$2, %rdx
	cmpq	%rax, %rdx
	jbe	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%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	20(%r12), %esi
	callq	_scond_wait
	movl	$1, (%r12)
	jmp	LBB0_6
LBB0_13:
	movl	8(%r12), %edi
	callq	_slock_lock
	movl	16(%r12), %edi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	imull	12(%r12), %edx
	shll	$2, %edx
	callq	_fifo_write
	movl	8(%r12), %edi
	callq	_slock_unlock
	movl	4(%r12), %edi
	callq	_scond_signal
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_push_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_push_audio
_ffmpeg_push_audio:                     ; @ffmpeg_push_audio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_13
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_13
; %bb.2:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_12
; %bb.3:
	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, #24]
	cbz	w8, LBB0_10
; %bb.4:
	mov	w22, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #4]
	bl	_scond_signal
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #20]
	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, #24]
	cbz	w8, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, w21
	ldr	w9, [x20]
	ldr	w10, [x19, #12]
	mul	w9, w10, w9
	cmp	x8, w9, sxtw #2
	b.hs	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #20]
	bl	_slock_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #20]
	bl	_scond_wait
	str	w22, [x19]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_slock_lock
	ldp	w8, w1, [x20]
	ldp	w9, w0, [x19, #12]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	bl	_fifo_write
	ldr	w0, [x19, #8]
	bl	_slock_unlock
	ldr	w0, [x19, #4]
	bl	_scond_signal
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_push_audio
.subsections_via_symbols
