	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_encoder
_flush_encoder:                         ## @flush_encoder
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_stream_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_CAP_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	xorl	%edi, %edi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_av_log
	xorl	%edi, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_encode_write_frame
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -36(%rbp)
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stream_ctx,8,3                 ## @stream_ctx
	.comm	_AV_CODEC_CAP_DELAY,4,2         ## @AV_CODEC_CAP_DELAY
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flushing stream #%u encoder\n"

	.no_dead_strip	_flush_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_encoder
_flush_encoder:                         ; @flush_encoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _stream_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stream_ctx@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_CAP_DELAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_CAP_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x21, _AV_LOG_INFO@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AV_LOG_INFO@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, #0
	mov	x2, x20
	mov	x3, x19
	bl	_av_log
	add	x2, sp, #12
	mov	x0, #0
	mov	x1, x19
	bl	_encode_write_frame
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stream_ctx,8,3                 ; @stream_ctx
	.comm	_AV_CODEC_CAP_DELAY,4,2         ; @AV_CODEC_CAP_DELAY
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flushing stream #%u encoder\n"

	.no_dead_strip	_flush_encoder
.subsections_via_symbols
