	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function old_flac_header
_old_flac_header:                       ## @old_flac_header
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rbx
	movq	(%rcx), %r13
	movq	_AV_CODEC_ID_FLAC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_av_parser_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r12), %eax
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_avcodec_alloc_context3
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_avcodec_parameters_to_context
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	_PARSER_FLAG_COMPLETE_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	(%r14,%r14,2), %rax
	movq	8(%r13,%rax,8), %r8
	addq	16(%r13,%rax,8), %r8
	movl	(%r13,%rax,8), %r9d
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-72(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	pushq	$-1
	pushq	%rax
	pushq	%rax
	callq	_av_parser_parse2
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_av_parser_close
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_parser_close
	jmp	LBB0_9
LBB0_7:
	movl	$1, %ebx
LBB0_9:
	leaq	-56(%rbp), %rdi
	callq	_avcodec_free_context
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_FLAC,4,2           ## @AV_CODEC_ID_FLAC
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ## @PARSER_FLAG_COMPLETE_FRAMES
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.no_dead_strip	_old_flac_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function old_flac_header
_old_flac_header:                       ; @old_flac_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	ldp	x9, x8, [x0]
	ldr	x20, [x9, w1, sxtw #3]
	ldr	x24, [x8]
Lloh0:
	adrp	x21, _AV_CODEC_ID_FLAC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_CODEC_ID_FLAC@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_av_parser_init
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x21]
	stp	w10, w8, [x9]
	mov	x0, #0
	bl	_avcodec_alloc_context3
	str	x0, [sp, #24]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x1, [x20]
	bl	_avcodec_parameters_to_context
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGEOFF]
	sxtw	x9, w22
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w8, #24
	madd	x8, x9, x8, x24
	ldp	x10, x9, [x8, #8]
	add	x4, x10, x9
	ldr	w5, [x8]
Lloh8:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	w8, #-1
	str	w8, [sp]
	add	x2, sp, #8
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x21
	mov	x7, x6
	bl	_av_parser_parse2
	mov	x0, x19
	bl	_av_parser_close
	ldr	x3, [x21]
	cbz	x3, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w23, #0
	b	LBB0_9
LBB0_5:
	mov	w23, #-1
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_7:
	mov	x23, x0
	mov	x0, x19
	bl	_av_parser_close
	b	LBB0_9
LBB0_8:
	mov	w23, #1
LBB0_9:
	add	x0, sp, #24
	bl	_avcodec_free_context
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_FLAC,4,2           ; @AV_CODEC_ID_FLAC
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ; @PARSER_FLAG_COMPLETE_FRAMES
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.no_dead_strip	_old_flac_header
.subsections_via_symbols
