	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_read_header
_mpc_read_header:                       ## @mpc_read_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	16(%r12), %r14
	callq	_avio_rl24
	movq	%rax, %rbx
	movl	$77, %edi
	movl	$80, %esi
	movl	$43, %edx
	xorl	%ecx, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.4:
	movq	(%r12), %rdi
	callq	_avio_r8
	movl	%eax, (%r14)
	movl	%eax, %ecx
	orl	$16, %ecx
	cmpl	$23, %ecx
	jne	LBB0_5
## %bb.6:
	movq	(%r12), %rdi
	callq	_avio_rl32
	movl	%eax, 4(%r14)
	movslq	%eax, %rdi
	shlq	$2, %rdi
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	jae	LBB0_7
## %bb.8:
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_malloc
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_3
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movabsq	$38654705663, %rax              ## imm = 0x8FFFFFFFF
	movq	%rax, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %r15
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rsi
	movl	%eax, 28(%rsi)
	movq	_AV_CODEC_ID_MUSEPACK7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movl	$2, (%rsi)
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movl	$16, 4(%rsi)
	movq	(%r12), %rdx
	movq	%r12, %rdi
	movl	$16, %ecx
	callq	_ff_get_extradata
	testq	%rax, %rax
	js	LBB0_20
## %bb.14:
	movq	_mpc_rate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rdx
	movq	8(%rdx), %rcx
	movl	8(%rcx), %ecx
	andl	$3, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 16(%rdx)
	movq	_MPC_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_avpriv_set_pts_info
	movq	$0, 8(%r15)
	movl	4(%r14), %eax
	movl	%eax, (%r15)
	movq	(%r12), %rdi
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_15
## %bb.16:
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ff_ape_parse_tag
	movl	8(%r12), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_av_dict_get
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_ff_id3v1_read
LBB0_18:
	movq	(%r12), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_avio_seek
	jmp	LBB0_19
LBB0_20:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_av_freep
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a Musepack file\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Can demux Musepack SV7, got version %02X\n"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Too many frames, seeking is not possible\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot allocate seektable\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Container reports no frames\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MUSEPACK7,4,2      ## @AV_CODEC_ID_MUSEPACK7
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_mpc_rate,8,3                   ## @mpc_rate
	.comm	_MPC_FRAMESIZE,4,2              ## @MPC_FRAMESIZE
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
L_.str.5:                               ## @.str.5
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_mpc_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mpc_read_header
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	8                               ; 0x8
lCPI0_1:
	.long	2                               ; 0x2
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mpc_read_header:                       ; @mpc_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x0, [x0]
	bl	_avio_rl24
	mov	x20, x0
	mov	w0, #77
	mov	w1, #80
	mov	w2, #43
	mov	w3, #0
	bl	_MKTAG
	cmp	x20, x0
	b.ne	LBB0_6
; %bb.1:
	ldr	x0, [x19]
	bl	_avio_r8
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x21]
	orr	w8, w0, #0x10
	cmp	w8, #23
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x19]
	bl	_avio_rl32
	mov	x8, x0
	str	w0, [x21, #4]
	sbfiz	x0, x8, #2, #32
Lloh0:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x0, x9
	b.hs	LBB0_8
; %bb.3:
	cbz	w8, LBB0_11
; %bb.4:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_av_malloc
	str	w0, [x21, #16]
	cbnz	w0, LBB0_12
; %bb.5:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_20
LBB0_6:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_av_log
Lloh23:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh26:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_12:
Lloh31:
	adrp	x8, lCPI0_0@PAGE
Lloh32:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21, #8]
	stp	xzr, xzr, [x21, #24]
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_19
; %bb.13:
	mov	x20, x0
Lloh33:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x1, [x0, #16]
	str	w8, [x1, #28]
Lloh36:
	adrp	x8, _AV_CODEC_ID_MUSEPACK7@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_CODEC_ID_MUSEPACK7@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, lCPI0_1@PAGE
Lloh40:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x1]
Lloh41:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #20]
	ldr	x2, [x19]
	mov	x0, x19
	mov	w3, #16
	bl	_ff_get_extradata
	tbnz	x0, #63, LBB0_19
; %bb.14:
Lloh44:
	adrp	x8, _mpc_rate@GOTPAGE
Lloh45:
	ldr	x8, [x8, _mpc_rate@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	x10, [x9, #8]
	ldr	w10, [x10, #8]
	and	x10, x10, #0x3
	ldr	w3, [x8, x10, lsl #2]
	str	w3, [x9, #16]
Lloh47:
	adrp	x8, _MPC_FRAMESIZE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MPC_FRAMESIZE@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_avpriv_set_pts_info
	str	xzr, [x20, #8]
	ldr	w8, [x21, #4]
	str	w8, [x20]
	ldr	x0, [x19]
	ldr	w8, [x0]
Lloh50:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.15:
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	bl	_ff_ape_parse_tag
	ldr	w0, [x19, #8]
Lloh53:
	adrp	x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_ff_id3v1_read
LBB0_17:
	ldr	x0, [x19]
Lloh58:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_avio_seek
LBB0_18:
	mov	w0, #0
	b	LBB0_10
LBB0_19:
	add	x0, x21, #16
	bl	_av_freep
LBB0_20:
Lloh61:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdr	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdrp	Lloh39, Lloh41
	.loh AdrpLdr	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a Musepack file\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Can demux Musepack SV7, got version %02X\n"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Too many frames, seeking is not possible\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot allocate seektable\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Container reports no frames\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MUSEPACK7,4,2      ; @AV_CODEC_ID_MUSEPACK7
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_mpc_rate,8,3                   ; @mpc_rate
	.comm	_MPC_FRAMESIZE,4,2              ; @MPC_FRAMESIZE
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
l_.str.5:                               ; @.str.5
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_mpc_read_header
.subsections_via_symbols
