	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_finalize_stsd_codec
_mov_finalize_stsd_codec:               ## @mov_finalize_stsd_codec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	8(%rdx), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rax)
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %edx
	cmpl	$2, %edx
	jl	LBB0_4
## %bb.3:
	movl	%edx, 8(%rax)
LBB0_4:
	movl	12(%rax), %edx
	addl	$-128, %edx
	cmpl	$19, %edx
	ja	LBB0_17
## %bb.5:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_13:
	movl	12(%r14), %ecx
	movl	%ecx, 20(%rax)
	jmp	LBB0_17
LBB0_16:
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
LBB0_12:
	movq	%rcx, (%rax)
	jmp	LBB0_17
LBB0_6:
	movl	$1, 16(%rax)
	movl	32(%rax), %r15d
	movl	$81, %edi
	movl	$99, %esi
	movl	$108, %edx
	movl	$112, %ecx
	callq	_MKTAG
	cmpl	%eax, %r15d
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movl	$8000, 8(%rax)                  ## imm = 0x1F40
LBB0_8:
	movl	$160, 8(%r14)
	cmpl	$0, 12(%r14)
	jne	LBB0_17
## %bb.9:
	movl	$35, 12(%r14)
	jmp	LBB0_17
LBB0_11:
	movl	$1, 16(%rax)
	movl	$16000, 8(%rax)                 ## imm = 0x3E80
	jmp	LBB0_17
LBB0_10:
	movl	$1, 16(%rax)
	movl	$8000, 8(%rax)                  ## imm = 0x1F40
	jmp	LBB0_17
LBB0_14:
	cmpl	$36, 24(%rax)
	jne	LBB0_17
## %bb.15:
	movl	28(%rax), %edi
	addl	$21, %edi
	callq	_AV_RB8
	movq	8(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	28(%rcx), %edi
	addl	$32, %edi
	callq	_AV_RB32
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVSTREAM_PARSE_FULL,4,2        ## @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mov_finalize_stsd_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_finalize_stsd_codec
_mov_finalize_stsd_codec:               ; @mov_finalize_stsd_codec
	.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	x20, x3
	mov	x19, x2
	ldr	x8, [x2, #8]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w10, [x8, #8]
	cbnz	w10, LBB0_4
; %bb.2:
	ldr	w10, [x20]
	cmp	w10, #2
	b.lt	LBB0_4
; %bb.3:
	str	w10, [x8, #8]
LBB0_4:
	ldr	w10, [x8, #12]
	sub	w10, w10, #128
	cmp	w10, #19
	b.hi	LBB0_17
; %bb.5:
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
	ldr	w9, [x20, #12]
	str	w9, [x8, #20]
	b	LBB0_17
LBB0_7:
Lloh5:
	adrp	x8, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_17
LBB0_8:
	str	x9, [x8]
	b	LBB0_17
LBB0_9:
	mov	w9, #1
	str	w9, [x8, #16]
	ldr	w21, [x8, #32]
	mov	w0, #81
	mov	w1, #99
	mov	w2, #108
	mov	w3, #112
	bl	_MKTAG
	cmp	w21, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
	mov	w9, #8000
	str	w9, [x8, #8]
LBB0_11:
	mov	w8, #160
	str	w8, [x20, #8]
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_17
; %bb.12:
	mov	w8, #35
	str	w8, [x20, #12]
	b	LBB0_17
LBB0_13:
	mov	w9, #1
	str	w9, [x8, #16]
	mov	w9, #16000
	str	w9, [x8, #8]
	b	LBB0_17
LBB0_14:
	mov	w9, #1
	str	w9, [x8, #16]
	mov	w9, #8000
	str	w9, [x8, #8]
	b	LBB0_17
LBB0_15:
	ldr	w9, [x8, #24]
	cmp	w9, #36
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x8, #28]
	add	w0, w8, #21
	bl	_AV_RB8
	ldr	x8, [x19, #8]
	str	w0, [x8, #16]
	ldr	w8, [x8, #28]
	add	w0, w8, #32
	bl	_AV_RB32
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
LBB0_17:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVSTREAM_PARSE_FULL,4,2        ; @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mov_finalize_stsd_codec
.subsections_via_symbols
