	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_flush     ## -- Begin function FLAC__stream_decoder_flush
	.p2align	4, 0x90
_FLAC__stream_decoder_flush:            ## @FLAC__stream_decoder_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_FLAC__ASSERT
	movq	8(%rbx), %rcx
	cmpl	$0, 24(%rcx)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movq	_FLAC__STREAM_DECODER_UNINITIALIZED@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_6
LBB0_2:
	movq	$0, 16(%rcx)
	movl	$0, (%rcx)
	movl	4(%rcx), %edi
	callq	_FLAC__bitreader_clear
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%cl
	jne	LBB0_3
## %bb.4:
	movq	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC@GOTPCREL(%rip), %rdx
LBB0_5:
	movb	%cl, %al
	movq	(%rdx), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, (%rdx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,8,3 ## @FLAC__STREAM_DECODER_UNINITIALIZED
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,8,3 ## @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
	.comm	_FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC,8,3 ## @FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_flush     ; -- Begin function FLAC__stream_decoder_flush
	.p2align	2
_FLAC__stream_decoder_flush:            ; @FLAC__stream_decoder_flush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_3
; %bb.1:
	ldr	x9, [x19]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	str	xzr, [x8, #16]
	str	wzr, [x8]
	ldr	w0, [x8, #4]
	bl	_FLAC__bitreader_clear
	cmp	w0, #0
	cset	w0, ne
Lloh3:
	adrp	x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,8,3 ; @FLAC__STREAM_DECODER_UNINITIALIZED
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,8,3 ; @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
	.comm	_FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC,8,3 ; @FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC
.subsections_via_symbols
