	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_frame
_flush_frame:                           ## @flush_frame
	.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	%rdx, %r12
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movq	(%rcx), %r15
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ff_get_audio_buffer
	movq	%rax, -56(%rbp)
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r13), %edi
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_swr_next_pts
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_ROUNDED_DIV
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	movq	16(%rbx), %rsi
	xorl	%r12d, %r12d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	$0, %ecx
	cmoveq	%rsi, %rcx
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_swr_convert
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	jmp	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_flush_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_frame
_flush_frame:                           ; @flush_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	x8, x23, [x8]
	ldr	x24, [x8]
	mov	w1, #4096
	bl	_ff_get_audio_buffer
	str	x0, [sp, #8]
	str	x0, [x22]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x23]
Lloh0:
	adrp	x8, _INT64_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT64_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_swr_next_pts
	ldr	w1, [x24]
	bl	_ROUNDED_DIV
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x1, [x20, #16]
	cmp	w21, #0
	csel	x3, x1, xzr, eq
	mov	w2, #4096
	mov	w4, #0
	bl	_swr_convert
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	w8, [x19]
	stp	w22, w8, [x20, #4]
	str	w21, [x20]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_4:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh6:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w0, w8, w21, eq
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_flush_frame
.subsections_via_symbols
