	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decavcodecaBSInfo
_decavcodecaBSInfo:                     ## @decavcodecaBSInfo
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movq	24(%rdi), %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decavcodecaInfo                ## TAILCALL
LBB0_3:
	movq	%r15, %rbx
	movq	(%r13), %rdi
	callq	_avcodec_find_decoder
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %esi
	leaq	_decavcodecaBSInfo.codec_name(%rip), %rdi
	movl	$63, %edx
	callq	_strncpy
	movl	%eax, 72(%r14)
	movq	%r15, %rdi
	callq	_avcodec_alloc_context3
	movq	%rax, %r12
	movq	%rax, -144(%rbp)
	movq	8(%r13), %rax
	testq	%rax, %rax
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	je	LBB0_8
## %bb.5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avcodec_parameters_to_context
	movq	(%r13), %rax
	movq	%rax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_68
LBB0_8:
	movl	(%r15), %edi
	callq	_av_parser_init
LBB0_9:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_AV_SAMPLE_FMT_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hb_ff_set_sample_fmt
	movq	$0, -96(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_hb_avcodec_open
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	-96(%rbp), %rdi
	callq	_av_dict_free
	movl	$-1, %eax
	jmp	LBB0_68
LBB0_11:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movl	12(%rcx), %eax
	movl	%eax, 76(%r12)
	movl	8(%rcx), %eax
	movl	%eax, 72(%r12)
LBB0_13:
	leaq	-96(%rbp), %rdi
	callq	_av_dict_free
	testq	%rbx, %rbx
	movq	-136(%rbp), %r14                ## 8-byte Reload
	je	LBB0_64
## %bb.14:
	movq	%rbx, %rax
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_60
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r13d, %r13d
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r13d, %r8
	addq	8(%rax), %r8
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	subl	%r13d, %r9d
	movl	24(%rax), %eax
	subq	$8, %rsp
	movq	%r12, %rsi
	leaq	-128(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	pushq	$0
	pushq	%rax
	pushq	%rax
	callq	_av_parser_parse2
	addq	$32, %rsp
	movl	%eax, %r15d
	movl	-60(%rbp), %r9d
	testl	%r9d, %r9d
	je	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r12), %rax
	movq	_AV_CODEC_ID_TRUEHD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	8(%r12), %rax
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r8, -128(%rbp)
	subl	%r13d, %r9d
	movl	%r9d, -60(%rbp)
	movl	%r9d, %r15d
	testl	%r9d, %r9d
	jne	LBB0_19
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=2
	xorl	%ebx, %ebx
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=2
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=2
	xorl	%eax, %eax
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%rax, 64(%r12)
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_av_init_packet
	movq	-128(%rbp), %rax
	movq	%rax, -120(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -112(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_avcodec_send_packet
	testl	%eax, %eax
	jns	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=2
	leaq	-120(%rbp), %rdi
	callq	_av_packet_unref
	xorl	%ebx, %ebx
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	$0, -56(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	js	LBB0_57
## %bb.30:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-56(%rbp), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rcx, 48(%r14)
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	16(%r12), %rax
	movq	%rax, 48(%r14)
	leaq	L_.str.2(%rip), %rdi
	callq	_hb_log
	movq	-56(%rbp), %rax
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=2
	movl	$1, 56(%r14)
	movl	20(%rax), %eax
	movl	%eax, 68(%r14)
	movl	56(%r12), %eax
	movq	%r14, %rbx
	movl	%eax, 64(%r14)
	movq	(%r12), %rdi
	callq	_av_get_bits_per_sample
	movl	%eax, %r14d
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_17 Depth=2
	callq	_av_get_channel_layout_nb_channels
	jmp	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_17 Depth=2
	movl	16(%rax), %eax
LBB0_36:                                ##   in Loop: Header=BB0_17 Depth=2
	imull	%r14d, %eax
	movq	%rbx, %r14
	imull	48(%rbx), %eax
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jle	LBB0_43
## %bb.37:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_44
LBB0_38:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	-56(%rbp), %rdi
	movq	_AV_FRAME_DATA_MATRIXENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_frame_get_side_data
	movq	_AV_MATRIX_ENCODING_NONE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rax), %rcx
LBB0_40:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rcx), %rax
	movq	%rax, 40(%r14)
	movq	_AV_MATRIX_ENCODING_DOLBY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_MATRIX_ENCODING_DPLII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
	jmp	LBB0_46
LBB0_43:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	24(%r12), %rax
	testq	%rax, %rax
	movl	$1, %ecx
	cmovlel	%ecx, %eax
	movl	%eax, (%r14)
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_38
LBB0_44:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_AV_MATRIX_ENCODING_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r14)
	testq	%rax, %rax
	jne	LBB0_48
	jmp	LBB0_47
LBB0_45:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_46:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	-56(%rbp), %rax
	movl	16(%rax), %edi
	callq	_av_get_default_channel_layout
	movq	%rax, 8(%r14)
LBB0_48:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r12), %rax
	movq	_AV_CODEC_ID_AC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_53
## %bb.49:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_CODEC_ID_EAC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_56
## %bb.51:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpq	$0, 40(%r12)
	jne	LBB0_56
## %bb.52:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	leaq	-120(%rbp), %rdx
	callq	_parse_adts_extradata
	jmp	LBB0_56
LBB0_53:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	32(%r12), %rax
	movq	_AV_AUDIO_SERVICE_TYPE_KARAOKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	$7, 16(%r14)
	jmp	LBB0_56
LBB0_55:                                ##   in Loop: Header=BB0_17 Depth=2
	movl	%eax, 16(%r14)
LBB0_56:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	-56(%rbp), %rdi
	callq	_av_frame_unref
	movl	$1, %ebx
	movl	$1, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_57:                                ##   in Loop: Header=BB0_17 Depth=2
	leaq	-120(%rbp), %rdi
	callq	_av_packet_unref
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_58:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_62
## %bb.59:                              ##   in Loop: Header=BB0_17 Depth=2
	addl	%r15d, %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r9d
	cmpl	%r13d, %r9d
	jg	LBB0_17
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%ebx, %ebx
LBB0_61:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%ebx, %ebx
	je	LBB0_63
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_65
LBB0_63:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_65
LBB0_64:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_65:
	movl	52(%r12), %eax
	movl	%eax, 36(%r14)
	movl	48(%r12), %eax
	movl	%eax, 32(%r14)
	movq	_hb_libav_chan_map@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	testq	%rdi, %rdi
	je	LBB0_67
## %bb.66:
	callq	_av_parser_close
LBB0_67:
	leaq	-144(%rbp), %rdi
	callq	_hb_avcodec_free_context
	movq	-88(%rbp), %rax                 ## 8-byte Reload
LBB0_68:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_decavcodecaBSInfo.codec_name,64,4 ## @decavcodecaBSInfo.codec_name
	.comm	_AV_SAMPLE_FMT_FLT,4,2          ## @AV_SAMPLE_FMT_FLT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"err_detect"

L_.str.1:                               ## @.str.1
	.asciz	"crccheck+explode"

	.comm	_AV_CODEC_ID_TRUEHD,8,3         ## @AV_CODEC_ID_TRUEHD
	.comm	_AV_CH_LAYOUT_MONO,8,3          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,8,3        ## @AV_CH_LAYOUT_STEREO
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.2:                               ## @.str.2
	.asciz	"decavcodecaBSInfo: warning: invalid frame sample_rate! Using context sample_rate."

	.comm	_AV_MATRIX_ENCODING_NONE,8,3    ## @AV_MATRIX_ENCODING_NONE
	.comm	_AV_FRAME_DATA_MATRIXENCODING,4,2 ## @AV_FRAME_DATA_MATRIXENCODING
	.comm	_AV_MATRIX_ENCODING_DOLBY,8,3   ## @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_DPLII,8,3   ## @AV_MATRIX_ENCODING_DPLII
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,8,3 ## @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CODEC_ID_AC3,8,3            ## @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_EAC3,8,3           ## @AV_CODEC_ID_EAC3
	.comm	_AV_AUDIO_SERVICE_TYPE_KARAOKE,8,3 ## @AV_AUDIO_SERVICE_TYPE_KARAOKE
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.comm	_hb_libav_chan_map,4,2          ## @hb_libav_chan_map
	.no_dead_strip	_decavcodecaBSInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decavcodecaBSInfo
_decavcodecaBSInfo:                     ; @decavcodecaBSInfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x25, x0
	ldp	x26, x21, [x0, #16]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x25
	mov	x1, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_decavcodecaInfo
LBB0_3:
	ldr	x0, [x25]
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_7
; %bb.4:
	mov	x24, x0
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x0, _decavcodecaBSInfo.codec_name@PAGE
Lloh1:
	add	x0, x0, _decavcodecaBSInfo.codec_name@PAGEOFF
	mov	w2, #63
	bl	_strncpy
	str	w0, [x19, #72]
	mov	x0, x24
	bl	_avcodec_alloc_context3
	mov	x22, x0
	str	x0, [sp, #72]
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	ldr	x9, [x26]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_avcodec_parameters_to_context
	mov	x23, #0
	ldr	x8, [x25]
	str	x8, [x22]
	b	LBB0_9
LBB0_7:
	mov	w26, #-1
	b	LBB0_66
LBB0_8:
	ldr	w0, [x24]
	bl	_av_parser_init
	mov	x23, x0
LBB0_9:
Lloh2:
	adrp	x8, _AV_SAMPLE_FMT_FLT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_SAMPLE_FMT_FLT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x24
	bl	_hb_ff_set_sample_fmt
	str	xzr, [sp, #64]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #64
	mov	w3, #0
	bl	_av_dict_set
	add	x2, sp, #64
	mov	x0, x22
	mov	x1, x24
	mov	w3, #0
	bl	_hb_avcodec_open
	cbz	x0, LBB0_11
; %bb.10:
	add	x0, sp, #64
	bl	_av_dict_free
	mov	w26, #-1
	b	LBB0_66
LBB0_11:
	cbz	x26, LBB0_13
; %bb.12:
	ldr	d0, [x26, #8]
	str	d0, [x22, #72]
LBB0_13:
	add	x0, sp, #64
	bl	_av_dict_free
	cbz	x20, LBB0_62
; %bb.14:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	mov	w26, #0
Lloh9:
	adrp	x27, _AV_CODEC_ID_TRUEHD@GOTPAGE
Lloh10:
	ldr	x27, [x27, _AV_CODEC_ID_TRUEHD@GOTPAGEOFF]
Lloh11:
	adrp	x24, _AVERROR_EOF@GOTPAGE
Lloh12:
	ldr	x24, [x24, _AVERROR_EOF@GOTPAGEOFF]
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_59
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w21, #0
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, #8]
	add	x4, x9, w21, sxtw
	cbz	x23, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	sub	w5, w8, w21
	ldr	w6, [x20, #24]
	str	wzr, [sp]
	add	x2, sp, #56
	add	x3, sp, #52
	mov	x0, x23
	mov	x1, x22
	mov	x7, x6
	bl	_av_parser_parse2
	mov	x25, x0
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22, #8]
Lloh13:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, xzr, eq
	cset	w28, ne
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=2
	str	x4, [sp, #56]
	sub	w8, w8, w21
	str	w8, [sp, #52]
	mov	x25, x8
	cbnz	w8, LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	w28, #0
	cbz	w28, LBB0_58
	b	LBB0_60
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	x8, #0
	mov	w28, #1
LBB0_24:                                ;   in Loop: Header=BB0_17 Depth=2
	str	x8, [x22, #64]
	add	x0, sp, #32
	bl	_av_init_packet
	ldr	x8, [sp, #56]
	str	x8, [sp, #32]
	ldr	w8, [sp, #52]
	str	w8, [sp, #40]
	add	x1, sp, #32
	mov	x0, x22
	bl	_avcodec_send_packet
	tbz	w0, #31, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x0, sp, #32
	bl	_av_packet_unref
	mov	w28, #0
	cbz	w28, LBB0_58
	b	LBB0_60
LBB0_27:                                ;   in Loop: Header=BB0_17 Depth=2
	str	xzr, [sp, #24]
	bl	_av_frame_alloc
	mov	x1, x0
	str	x0, [sp, #24]
	mov	x0, x22
	bl	_avcodec_receive_frame
	tbnz	w0, #31, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [sp, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_17 Depth=2
	str	x9, [x19, #48]
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	w28, #0
	b	LBB0_57
LBB0_31:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22, #16]
	str	x8, [x19, #48]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hb_log
	ldr	x8, [sp, #24]
LBB0_32:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	w9, #1
	str	w9, [x19, #56]
	ldr	w8, [x8, #20]
	str	w8, [x19, #68]
	ldr	w8, [x22, #56]
	str	w8, [x19, #64]
	ldr	x0, [x22]
	bl	_av_get_bits_per_sample
	mov	x26, x0
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_17 Depth=2
	bl	_av_get_channel_layout_nb_channels
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w0, [x8, #16]
LBB0_35:                                ;   in Loop: Header=BB0_17 Depth=2
	mul	w8, w0, w26
	ldr	w9, [x19, #48]
	mul	w8, w8, w9
	str	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_17 Depth=2
	tbz	w28, #0, LBB0_40
LBB0_37:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x0, [sp, #24]
Lloh21:
	adrp	x8, _AV_FRAME_DATA_MATRIXENCODING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_FRAME_DATA_MATRIXENCODING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_av_frame_get_side_data
	cbz	x0, LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x0]
	b	LBB0_42
LBB0_39:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22, #24]
	cmp	x8, #0
	csinc	w8, w8, wzr, gt
	str	w8, [x19]
	tbnz	w28, #0, LBB0_37
LBB0_40:                                ;   in Loop: Header=BB0_17 Depth=2
Lloh24:
	adrp	x8, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh27:
	adrp	x9, _AV_MATRIX_ENCODING_NONE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AV_MATRIX_ENCODING_NONE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	str	x9, [x19, #40]
	cbnz	x8, LBB0_48
	b	LBB0_47
LBB0_41:                                ;   in Loop: Header=BB0_17 Depth=2
Lloh30:
	adrp	x8, _AV_MATRIX_ENCODING_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_NONE@GOTPAGEOFF]
LBB0_42:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x8]
	str	x8, [x19, #40]
Lloh32:
	adrp	x9, _AV_MATRIX_ENCODING_DOLBY@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AV_MATRIX_ENCODING_DOLBY@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_17 Depth=2
Lloh35:
	adrp	x9, _AV_MATRIX_ENCODING_DPLII@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_MATRIX_ENCODING_DPLII@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_17 Depth=2
Lloh38:
	adrp	x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
LBB0_46:                                ;   in Loop: Header=BB0_17 Depth=2
	str	x8, [x19, #8]
	cbnz	x8, LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #16]
	bl	_av_get_default_channel_layout
	str	x0, [x19, #8]
LBB0_48:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22]
Lloh41:
	adrp	x9, _AV_CODEC_ID_AC3@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AV_CODEC_ID_AC3@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_53
; %bb.49:                               ;   in Loop: Header=BB0_17 Depth=2
Lloh44:
	adrp	x9, _AV_CODEC_ID_EAC3@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_CODEC_ID_EAC3@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_53
; %bb.50:                               ;   in Loop: Header=BB0_17 Depth=2
Lloh47:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_56
; %bb.51:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_56
; %bb.52:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x2, sp, #32
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_parse_adts_extradata
	b	LBB0_56
LBB0_53:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x22, #32]
Lloh50:
	adrp	x9, _AV_AUDIO_SERVICE_TYPE_KARAOKE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AV_AUDIO_SERVICE_TYPE_KARAOKE@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w8, #7
	str	w8, [x19, #16]
	b	LBB0_56
LBB0_55:                                ;   in Loop: Header=BB0_17 Depth=2
	str	w8, [x19, #16]
LBB0_56:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x0, [sp, #24]
	bl	_av_frame_unref
	mov	w28, #1
	mov	w26, #1
LBB0_57:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x0, sp, #32
	bl	_av_packet_unref
	add	x0, sp, #24
	bl	_av_frame_free
	cbnz	w28, LBB0_60
LBB0_58:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x20]
	add	w21, w25, w21
	cmp	w8, w21
	b.gt	LBB0_17
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, #0
LBB0_60:                                ;   in Loop: Header=BB0_15 Depth=1
	cbnz	w28, LBB0_63
; %bb.61:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_15
	b	LBB0_63
LBB0_62:
	mov	w26, #0
LBB0_63:
	ldr	d0, [x22, #48]
	str	d0, [x19, #32]
Lloh53:
	adrp	x8, _hb_libav_chan_map@GOTPAGE
Lloh54:
	ldr	x8, [x8, _hb_libav_chan_map@GOTPAGEOFF]
	str	x8, [x19, #24]
	cbz	x23, LBB0_65
; %bb.64:
	mov	x0, x23
	bl	_av_parser_close
LBB0_65:
	add	x0, sp, #72
	bl	_hb_avcodec_free_context
LBB0_66:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_decavcodecaBSInfo.codec_name,64,0 ; @decavcodecaBSInfo.codec_name
	.comm	_AV_SAMPLE_FMT_FLT,4,2          ; @AV_SAMPLE_FMT_FLT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"err_detect"

l_.str.1:                               ; @.str.1
	.asciz	"crccheck+explode"

	.comm	_AV_CODEC_ID_TRUEHD,8,3         ; @AV_CODEC_ID_TRUEHD
	.comm	_AV_CH_LAYOUT_MONO,8,3          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,8,3        ; @AV_CH_LAYOUT_STEREO
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.2:                               ; @.str.2
	.asciz	"decavcodecaBSInfo: warning: invalid frame sample_rate! Using context sample_rate."

	.comm	_AV_MATRIX_ENCODING_NONE,8,3    ; @AV_MATRIX_ENCODING_NONE
	.comm	_AV_FRAME_DATA_MATRIXENCODING,4,2 ; @AV_FRAME_DATA_MATRIXENCODING
	.comm	_AV_MATRIX_ENCODING_DOLBY,8,3   ; @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_DPLII,8,3   ; @AV_MATRIX_ENCODING_DPLII
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,8,3 ; @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CODEC_ID_AC3,8,3            ; @AV_CODEC_ID_AC3
	.comm	_AV_CODEC_ID_EAC3,8,3           ; @AV_CODEC_ID_EAC3
	.comm	_AV_AUDIO_SERVICE_TYPE_KARAOKE,8,3 ; @AV_AUDIO_SERVICE_TYPE_KARAOKE
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.comm	_hb_libav_chan_map,4,2          ; @hb_libav_chan_map
	.no_dead_strip	_decavcodecaBSInfo
.subsections_via_symbols
