	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_codec_data
_get_codec_data:                        ## @get_codec_data
	.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
	movl	%r8d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movl	$1, %r14d
	testl	%r13d, %r13d
	je	LBB0_30
LBB0_2:
	movq	%rbx, %rdi
	callq	_avio_feof
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_30
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$7, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rax, %rdi
	callq	_PKTSIZE
	movl	%eax, %r14d
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_29
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_avio_r8
	cmpl	$128, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	cmpl	$129, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$130, %eax
	jne	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_avio_r8
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rax, %rdi
	callq	_PKTSIZE
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_28
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$82, %r15d
	jne	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	cmpl	$0, 52(%rsi)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$52, %rsi
	movq	%rsi, %rdi
	callq	_av_freep
	movq	8(%r12), %rsi
	movl	$0, 48(%rsi)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_ff_get_extradata
	testl	%eax, %eax
	js	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	jne	LBB0_28
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$11, %r14d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$7, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rax, %rdi
	callq	_PKTSIZE
	movl	%eax, %r14d
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_28
## %bb.14:
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	testq	%r12, %r12
	je	LBB0_17
## %bb.15:
	callq	_avio_rl32
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_ff_codec_get_id
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	16(%rcx), %r14
	movl	$82, %edi
	movl	$74, %esi
	movl	$80, %edx
	movl	$71, %ecx
	callq	_MKTAG
	cmpq	%rax, %r14
	jne	LBB0_18
## %bb.16:
	movq	_AV_CODEC_ID_NUV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_31:
	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_17:
	movl	$4, %esi
	callq	_avio_skip
LBB0_18:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rdi
	testq	%r14, %r14
	je	LBB0_25
## %bb.19:
	callq	_avio_rl32
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	8(%r14), %rcx
	movq	%rax, 40(%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	8(%r14), %rcx
	movq	%rax, 32(%rcx)
	movl	$0, 24(%rcx)
	movq	8(%rcx), %rsi
	movq	16(%rcx), %rdi
	callq	_ff_wav_codec_get_id
                                        ## kill: def $eax killed $eax def $rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.22:
	movq	_nuv_audio_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movq	16(%rax), %rsi
	callq	_ff_codec_get_id
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_24
## %bb.23:
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$-2, %ecx
	callq	_ff_get_pcm_codec_id
                                        ## kill: def $eax killed $eax def $rax
LBB0_24:
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_26
LBB0_25:
	movl	$16, %esi
	callq	_avio_skip
LBB0_26:
	movq	%rbx, %rdi
	movl	$488, %esi                      ## imm = 0x1E8
	callq	_avio_skip
LBB0_29:
	xorl	%r14d, %r14d
LBB0_30:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.comm	_AV_CODEC_ID_NUV,4,2            ## @AV_CODEC_ID_NUV
	.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	_AV_CODEC_ID_NONE,4,2           ## @AV_CODEC_ID_NONE
	.comm	_nuv_audio_tags,4,2             ## @nuv_audio_tags
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AVSTREAM_PARSE_FULL,4,2        ## @AVSTREAM_PARSE_FULL
	.no_dead_strip	_get_codec_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_codec_data
_get_codec_data:                        ; @get_codec_data
	.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	x23, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	cbnz	x2, LBB0_5
; %bb.1:
	cbnz	w23, LBB0_5
; %bb.2:
	mov	w0, #1
	b	LBB0_31
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #7
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	bl	_PKTSIZE
	mov	x24, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_avio_skip
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_feof
	cbnz	w0, LBB0_30
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_r8
	cmp	w0, #128
	b.eq	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #129
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #130
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_r8
	mov	x25, x0
	mov	x0, x19
	mov	w1, #6
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	bl	_PKTSIZE
	mov	x24, x0
	cbz	x22, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #82
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x22, #8]
	mov	x0, x1
	ldr	w8, [x0, #52]!
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_av_freep
	ldr	x1, [x22, #8]
	str	wzr, [x1, #48]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	mov	x2, x19
	mov	x3, x24
	bl	_ff_get_extradata
	tbnz	w0, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	mov	w0, #0
	cbnz	w23, LBB0_4
	b	LBB0_31
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #11
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #7
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	bl	_PKTSIZE
	mov	x24, x0
	cmp	w0, #512
	b.ne	LBB0_4
; %bb.17:
	mov	x0, x19
	bl	_avio_rl32
	mov	x0, x19
	cbz	x22, LBB0_21
; %bb.18:
	bl	_avio_rl32
	mov	x1, x0
	ldr	x8, [x22, #8]
	str	x0, [x8, #16]
Lloh0:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ff_codec_get_id
	ldr	x8, [x22, #8]
	str	w0, [x8]
	ldr	x23, [x8, #16]
	mov	w0, #82
	mov	w1, #74
	mov	w2, #80
	mov	w3, #71
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_22
; %bb.19:
Lloh3:
	adrp	x8, _AV_CODEC_ID_NUV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_NUV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9]
	b	LBB0_22
LBB0_20:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	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_21:
	mov	w1, #4
	bl	_avio_skip
LBB0_22:
	mov	x0, x19
	cbz	x20, LBB0_28
; %bb.23:
	bl	_avio_rl32
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x20, #8]
	str	x0, [x8, #40]
	cbz	x0, LBB0_32
; %bb.24:
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x20, #8]
	str	x0, [x8, #32]
	str	wzr, [x8, #24]
	ldp	x1, x0, [x8, #8]
	bl	_ff_wav_codec_get_id
                                        ; kill: def $w0 killed $w0 def $x0
Lloh9:
	adrp	x8, _AV_CODEC_ID_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.25:
Lloh12:
	adrp	x8, _nuv_audio_tags@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nuv_audio_tags@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #16]
	bl	_ff_codec_get_id
Lloh15:
	adrp	x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_27
; %bb.26:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #-2
	bl	_ff_get_pcm_codec_id
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_27:
	ldr	x8, [x20, #8]
	str	w0, [x8]
Lloh18:
	adrp	x8, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_29
LBB0_28:
	mov	w1, #16
	bl	_avio_skip
LBB0_29:
	mov	x0, x19
	mov	w1, #488
	bl	_avio_skip
LBB0_30:
	mov	w0, #0
LBB0_31:
	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
LBB0_32:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, #0
	bl	_av_log
Lloh26:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.comm	_AV_CODEC_ID_NUV,4,2            ; @AV_CODEC_ID_NUV
	.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	_AV_CODEC_ID_NONE,4,2           ; @AV_CODEC_ID_NONE
	.comm	_nuv_audio_tags,4,2             ; @nuv_audio_tags
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AVSTREAM_PARSE_FULL,4,2        ; @AVSTREAM_PARSE_FULL
	.no_dead_strip	_get_codec_data
.subsections_via_symbols
