	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tta_init
_tta_init:                              ## @tta_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.3:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movq	_AV_CODEC_ID_TTA@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.5:
	movq	16(%rdi), %rdx
	cmpq	$0, 16(%rcx)
	je	LBB0_8
## %bb.6:
	cmpl	$21, 8(%rcx)
	jg	LBB0_8
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_8:
	movl	12(%rcx), %ecx
	cmpl	$8388608, %ecx                  ## imm = 0x800000
	jb	LBB0_10
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_2:
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movl	%ecx, %esi
	shll	$8, %esi
	imulq	$192835267, %rsi, %rdi          ## imm = 0xB7E6EC3
	shrq	$32, %rdi
	subl	%edi, %esi
	shrl	%esi
	addl	%edi, %esi
	shrl	$7, %esi
	movl	%esi, (%rdx)
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only one stream is supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_CODEC_ID_TTA,8,3            ## @AV_CODEC_ID_TTA
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported codec\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid TTA extradata\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.3:                               ## @.str.3
	.asciz	"Sample rate too large\n"

	.no_dead_strip	_tta_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tta_init
_tta_init:                              ; @tta_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x10, [x8]
	ldr	x9, [x10]
Lloh0:
	adrp	x11, _AV_CODEC_ID_TTA@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_CODEC_ID_TTA@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_6
; %bb.2:
	ldr	x9, [x0, #16]
	ldr	x11, [x10, #16]
	cbz	x11, LBB0_7
; %bb.3:
	ldr	w11, [x10, #8]
	cmp	w11, #21
	b.gt	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w3, [x10, #12]
	cmp	w3, #2048, lsl #12              ; =8388608
	b.lo	LBB0_10
; %bb.8:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_9:
	bl	_av_log
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_10:
	lsl	w10, w3, #8
	mov	w11, #28355
	movk	w11, #2942, lsl #16
	umull	x11, w10, w11
	lsr	x11, x11, #32
	sub	w10, w10, w11
	add	w10, w11, w10, lsr #1
	lsr	w10, w10, #7
	str	w10, [x9]
	mov	x0, x8
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only one stream is supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_CODEC_ID_TTA,8,3            ; @AV_CODEC_ID_TTA
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported codec\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid TTA extradata\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.3:                               ; @.str.3
	.asciz	"Sample rate too large\n"

	.no_dead_strip	_tta_init
.subsections_via_symbols
