	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davs2_flush
_davs2_flush:                           ## @davs2_flush
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	8(%r12), %r15
	movq	_DAVS2_GOT_FRAME@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_davs2_decoder_flush
	movl	%eax, %ebx
	movl	4(%r12), %edi
	movq	%r12, %rsi
	callq	_davs2_decoder_frame_unref
	cmpl	(%r13), %ebx
	je	LBB0_1
## %bb.2:
	movq	_DAVS2_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAVS2_GOT_FRAME,4,2            ## @DAVS2_GOT_FRAME
	.comm	_DAVS2_ERROR,4,2                ## @DAVS2_ERROR
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoder flushing failed.\n"

	.no_dead_strip	_davs2_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davs2_flush
_davs2_flush:                           ; @davs2_flush
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
	add	x21, x20, #8
Lloh0:
	adrp	x23, _DAVS2_GOT_FRAME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DAVS2_GOT_FRAME@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_davs2_decoder_flush
	mov	x22, x0
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_davs2_decoder_frame_unref
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_1
; %bb.2:
Lloh2:
	adrp	x8, _DAVS2_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DAVS2_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_av_log
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DAVS2_GOT_FRAME,4,2            ; @DAVS2_GOT_FRAME
	.comm	_DAVS2_ERROR,4,2                ; @DAVS2_ERROR
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoder flushing failed.\n"

	.no_dead_strip	_davs2_flush
.subsections_via_symbols
