	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msf_read_header
_msf_read_header:                       ## @msf_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	%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, %rbx
	movl	(%rdi), %edi
	movl	$4, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 28(%rcx)
	movl	(%rbx), %edi
	callq	_avio_rb32
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_avio_rb32
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	1023(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$10, %edx
	cmpl	%eax, %edx
	jle	LBB0_8
## %bb.3:
	movl	(%rbx), %edi
	callq	_avio_rb32
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_avio_rb32
	movq	(%r14), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	cmpl	$7, %r12d
	ja	LBB0_13
## %bb.5:
	movq	_AV_CODEC_ID_PCM_S16BE@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	cmpl	$5, %r12d
	movl	$152, %eax
	movl	$192, %ecx
	cmovel	%eax, %ecx
	cmpl	$4, %r12d
	movl	$96, %eax
	cmovnel	%ecx, %eax
	imull	(%rdi), %eax
	movl	%eax, 4(%rdi)
	movl	$14, %esi
	callq	_ff_alloc_extradata
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	xorl	%r13d, %r13d
	cmpl	$4, %r12d
	sete	%r13b
	movq	(%r14), %rax
	movl	20(%rax), %edi
	movl	24(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rax
	movl	20(%rax), %edi
	movl	$1, %esi
	callq	_AV_WL16
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	20(%rax), %edi
	addl	$2, %edi
	shll	$11, %esi
	callq	_AV_WL16
	movq	(%r14), %rax
	movl	20(%rax), %edi
	addl	$6, %edi
	movl	%r13d, %esi
	callq	_AV_WL16
	movq	(%r14), %rax
	movl	20(%rax), %edi
	addl	$8, %edi
	movl	%r13d, %esi
	callq	_AV_WL16
	movq	(%r14), %rax
	movl	20(%rax), %edi
	addl	$10, %edi
	movl	$1, %esi
	callq	_AV_WL16
	movq	(%r14), %rdi
	movq	_AV_CODEC_ID_ATRAC3@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	movl	(%rdi), %eax
	shll	$4, %eax
	movl	%eax, 4(%rdi)
	movq	_AV_CODEC_ID_ADPCM_PSX@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_AVSTREAM_PARSE_FULL_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movl	%r15d, %esi
	callq	_av_get_audio_frame_duration2
	movl	%eax, 8(%r14)
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_avio_tell
	movl	$64, %esi
	subl	%eax, %esi
	movl	%ebx, %edi
	callq	_avio_skip
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ## @AV_CODEC_ID_PCM_S16BE
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_ADPCM_PSX,4,2      ## @AV_CODEC_ID_ADPCM_PSX
	.comm	_AV_CODEC_ID_ATRAC3,4,2         ## @AV_CODEC_ID_ATRAC3
	.comm	_AVSTREAM_PARSE_FULL_RAW,4,2    ## @AVSTREAM_PARSE_FULL_RAW
	.comm	_AV_CODEC_ID_MP3,4,2            ## @AV_CODEC_ID_MP3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Codec %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_msf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msf_read_header
_msf_read_header:                       ; @msf_read_header
	.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
	ldr	w0, [x0]
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #28]
	ldr	w0, [x19]
	bl	_avio_rb32
	mov	x22, x0
	ldr	w0, [x19]
	bl	_avio_rb32
	ldr	x8, [x20]
	str	w0, [x8]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w0, w8, asr #10
	b.ge	LBB0_8
; %bb.3:
	ldr	w0, [x19]
	bl	_avio_rb32
	mov	x21, x0
	ldr	w0, [x19]
	bl	_avio_rb32
	mov	x8, x0
	ldr	x0, [x20]
	str	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.4:
	cmp	w22, #7
	b.hi	LBB0_13
; %bb.5:
Lloh6:
	adrp	x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGEOFF]
	mov	w9, w22
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
	mov	w8, #192
	mov	w9, #152
	cmp	w22, #5
	csel	w8, w9, w8, eq
	mov	w9, #96
	cmp	w22, #4
	csel	w8, w9, w8, eq
	ldr	w9, [x0]
	mul	w8, w9, w8
	str	w8, [x0, #4]
	mov	w1, #14
	bl	_ff_alloc_extradata
	tbnz	w0, #31, LBB0_10
; %bb.7:
	cmp	w22, #4
	cset	w22, eq
	ldr	x8, [x20]
	ldp	w0, w2, [x8, #20]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	ldr	w0, [x8, #20]
	mov	w1, #1
	bl	_AV_WL16
	ldr	x8, [x20]
	ldr	w9, [x8, #20]
	add	w0, w9, #2
	ldr	w8, [x8]
	lsl	w1, w8, #11
	bl	_AV_WL16
	ldr	x8, [x20]
	ldr	w8, [x8, #20]
	add	w0, w8, #6
	mov	x1, x22
	bl	_AV_WL16
	ldr	x8, [x20]
	ldr	w8, [x8, #20]
	add	w0, w8, #8
	mov	x1, x22
	bl	_AV_WL16
	ldr	x8, [x20]
	ldr	w8, [x8, #20]
	add	w0, w8, #10
	mov	w1, #1
	bl	_AV_WL16
	ldr	x0, [x20]
Lloh10:
	adrp	x8, _AV_CODEC_ID_ATRAC3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_ATRAC3@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_12:
Lloh17:
	adrp	x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_avpriv_request_sample
Lloh21:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	ldr	w8, [x0]
	lsl	w8, w8, #4
	str	w8, [x0, #4]
Lloh23:
	adrp	x8, _AV_CODEC_ID_ADPCM_PSX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_CODEC_ID_ADPCM_PSX@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh25:
	adrp	x8, _AVSTREAM_PARSE_FULL_RAW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVSTREAM_PARSE_FULL_RAW@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh28:
	adrp	x8, _AV_CODEC_ID_MP3@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_CODEC_ID_MP3@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	x1, x21
	bl	_av_get_audio_frame_duration2
	str	w0, [x20, #8]
	ldr	w19, [x19]
	mov	x0, x19
	bl	_avio_tell
	mov	w8, #64
	sub	w1, w8, w0
	mov	x0, x19
	bl	_avio_skip
	ldr	x8, [x20]
	ldr	x3, [x8, #8]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ; @AV_CODEC_ID_PCM_S16BE
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_ADPCM_PSX,4,2      ; @AV_CODEC_ID_ADPCM_PSX
	.comm	_AV_CODEC_ID_ATRAC3,4,2         ; @AV_CODEC_ID_ATRAC3
	.comm	_AVSTREAM_PARSE_FULL_RAW,4,2    ; @AVSTREAM_PARSE_FULL_RAW
	.comm	_AV_CODEC_ID_MP3,4,2            ; @AV_CODEC_ID_MP3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Codec %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_msf_read_header
.subsections_via_symbols
