	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfi_read_header
_bfi_read_header:                       ## @bfi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	8(%rdi), %r12
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, (%r12)
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	(%r15), %rcx
	movq	%rax, 40(%rcx)
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	(%r15), %rcx
	movq	%rax, 32(%rcx)
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	$768, %ecx                      ## imm = 0x300
	callq	_ff_get_extradata
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 24(%rcx)
	movq	_AV_CODEC_ID_BFI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	%rax, 16(%r15)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 24(%rcx)
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movl	$1, 4(%rcx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	$8, 8(%rcx)
	movl	(%rcx), %eax
	shll	$3, %eax
	movl	%eax, 12(%rcx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addl	$-3, %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_seek
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sample rate %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_BFI,4,2            ## @AV_CODEC_ID_BFI
	.comm	_AV_PIX_FMT_PAL8,4,2            ## @AV_PIX_FMT_PAL8
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_bfi_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 bfi_read_header
lCPI0_0:
	.long	1                               ; 0x1
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bfi_read_header:                       ; @bfi_read_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldp	x19, x25, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rl32
	str	x0, [x25]
	mov	x0, x19
	bl	_avio_rl32
	mov	x0, x19
	bl	_avio_rl32
	mov	x0, x19
	bl	_avio_rl32
	mov	x0, x19
	bl	_avio_rl32
	mov	x24, x0
	mov	x0, x19
	mov	w1, #12
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x21]
	str	x0, [x8, #40]
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x21]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	w1, #8
	bl	_avio_skip
	ldr	x1, [x21]
	mov	x0, x22
	mov	x2, x19
	mov	w3, #768
	bl	_ff_get_extradata
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_avio_rl32
	mov	x3, x0
	ldr	x8, [x20]
	str	w3, [x8]
	cmp	w3, #0
	b.le	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #32
	mov	w2, #1
	mov	x3, x24
	bl	_avpriv_set_pts_info
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh3:
	adrp	x10, _AV_CODEC_ID_BFI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_BFI@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #20]
Lloh6:
	adrp	x8, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x9, #28]
	ldr	x8, [x25]
	stp	x8, x8, [x21, #8]
Lloh9:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #20]
Lloh15:
	adrp	x8, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, lCPI0_0@PAGE
Lloh19:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x10, #4]
	ldr	w9, [x10]
	lsl	w9, w9, #3
	stp	w9, w8, [x10, #12]
	sub	w1, w23, #3
Lloh20:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_avio_seek
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
Lloh31:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sample rate %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_BFI,4,2            ; @AV_CODEC_ID_BFI
	.comm	_AV_PIX_FMT_PAL8,4,2            ; @AV_PIX_FMT_PAL8
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_bfi_read_header
.subsections_via_symbols
