	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_if_needed
_flush_if_needed:                       ## @flush_if_needed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rdi)
	js	LBB0_6
## %bb.2:
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.3:
	movq	_AVFMT_FLAG_FLUSH_PACKETS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rax)
	je	LBB0_4
LBB0_7:
	popq	%rbp
	jmp	_avio_flush                     ## TAILCALL
LBB0_4:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	16(%rax), %rax
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_6:
	popq	%rbp
	retq
LBB0_8:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AVIO_DATA_MARKER_FLUSH_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_avio_write_marker              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMT_FLAG_FLUSH_PACKETS,4,2   ## @AVFMT_FLAG_FLUSH_PACKETS
	.comm	_AVFMT_NOFILE,4,2               ## @AVFMT_NOFILE
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AVIO_DATA_MARKER_FLUSH_POINT,4,2 ## @AVIO_DATA_MARKER_FLUSH_POINT
	.no_dead_strip	_flush_if_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_if_needed
_flush_if_needed:                       ; @flush_if_needed
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x9, [x0]
	tbnz	x9, #63, LBB0_7
; %bb.2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w10, [x8, #4]
Lloh0:
	adrp	x11, _AVFMT_FLAG_FLUSH_PACKETS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AVFMT_FLAG_FLUSH_PACKETS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
LBB0_4:
	b	_avio_flush
LBB0_5:
	cbz	w9, LBB0_7
; %bb.6:
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	ret
LBB0_8:
Lloh6:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AVIO_DATA_MARKER_FLUSH_POINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVIO_DATA_MARKER_FLUSH_POINT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	b	_avio_write_marker
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_FLUSH_PACKETS,4,2   ; @AVFMT_FLAG_FLUSH_PACKETS
	.comm	_AVFMT_NOFILE,4,2               ; @AVFMT_NOFILE
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AVIO_DATA_MARKER_FLUSH_POINT,4,2 ; @AVIO_DATA_MARKER_FLUSH_POINT
	.no_dead_strip	_flush_if_needed
.subsections_via_symbols
