	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_finish    ## -- Begin function FLAC__stream_decoder_finish
	.p2align	4, 0x90
_FLAC__stream_decoder_finish:           ## @FLAC__stream_decoder_finish
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setne	%dil
	callq	_FLAC__ASSERT
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_FLAC__STREAM_DECODER_UNINITIALIZED@GOTPCREL(%rip), %r15
	movl	$1, %r14d
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.1:
	movq	8(%r12), %rsi
	movl	44(%rsi), %edi
	addq	$104, %rsi
	callq	_FLAC__MD5Final
	movq	8(%r12), %rax
	movq	96(%rax), %rdi
	callq	_free
	movq	8(%r12), %rax
	movq	$0, 96(%rax)
	movl	$0, (%rax)
	movl	88(%rax), %edi
	callq	_FLAC__bitreader_free
	movq	_FLAC__MAX_CHANNELS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	8(%r12), %rax
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r14), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$-4, %rdi
	callq	_free
	movq	8(%r12), %rax
	movq	8(%rax), %rcx
	movq	$0, (%rcx,%rbx,8)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_free
	movq	8(%r12), %rax
	movq	24(%rax), %rcx
	movq	$0, (%rcx,%rbx,8)
	movq	16(%rax), %rcx
	movq	$0, (%rcx,%rbx,8)
	jmp	LBB0_7
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rax)
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	movq	_stdin@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_11
## %bb.10:
	callq	_fclose
	movq	8(%r12), %rax
LBB0_11:
	movq	$0, 32(%rax)
LBB0_12:
	cmpq	$0, 56(%rax)
	je	LBB0_13
## %bb.14:
	movl	44(%rax), %esi
	movl	48(%rax), %edi
	movl	$16, %edx
	callq	_memcmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
	movq	8(%r12), %rax
	jmp	LBB0_15
LBB0_13:
	movl	$1, %r14d
LBB0_15:
	movl	$0, 40(%rax)
	movq	%r12, %rdi
	callq	_set_defaults_
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,8,3 ## @FLAC__STREAM_DECODER_UNINITIALIZED
	.comm	_FLAC__MAX_CHANNELS,4,2         ## @FLAC__MAX_CHANNELS
	.comm	_stdin,8,3                      ## @stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_finish    ; -- Begin function FLAC__stream_decoder_finish
	.p2align	2
_FLAC__stream_decoder_finish:           ; @FLAC__stream_decoder_finish
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #1
	b	LBB0_17
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #44]
	add	x1, x8, #104
	bl	_FLAC__MD5Final
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #96]
	bl	_free
	ldr	x8, [x19, #8]
	str	xzr, [x8, #96]
	str	wzr, [x8]
	ldr	w0, [x8, #88]
	bl	_FLAC__bitreader_free
Lloh2:
	adrp	x20, _FLAC__MAX_CHANNELS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FLAC__MAX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	x8, [x19, #8]
	cbz	w9, LBB0_9
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	w9, [x20]
	cmp	x22, x9
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x9, #4
	bl	_free
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	str	xzr, [x9, x22, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #16]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_free
	ldr	x8, [x19, #8]
	lsl	x9, x22, #3
	ldp	x11, x10, [x8, #16]
	str	xzr, [x10, x9]
	str	xzr, [x11, x9]
	b	LBB0_4
LBB0_9:
	stp	xzr, xzr, [x8, #72]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_13
; %bb.10:
Lloh4:
	adrp	x9, _stdin@GOTPAGE
Lloh5:
	ldr	x9, [x9, _stdin@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_12
; %bb.11:
	bl	_fclose
	ldr	x8, [x19, #8]
LBB0_12:
	str	xzr, [x8, #32]
LBB0_13:
	ldr	x9, [x8, #56]
	cbz	x9, LBB0_15
; %bb.14:
	ldp	w1, w0, [x8, #44]
	mov	w2, #16
	bl	_memcmp
	cmp	x0, #0
	cset	w20, eq
	ldr	x8, [x19, #8]
	b	LBB0_16
LBB0_15:
	mov	w20, #1
LBB0_16:
	str	wzr, [x8, #40]
	mov	x0, x19
	bl	_set_defaults_
	ldr	x8, [x21]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,8,3 ; @FLAC__STREAM_DECODER_UNINITIALIZED
	.comm	_FLAC__MAX_CHANNELS,4,2         ; @FLAC__MAX_CHANNELS
	.comm	_stdin,8,3                      ; @stdin
.subsections_via_symbols
