	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_tfdt
_mov_read_tfdt:                         ## @mov_read_tfdt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	movq	%rsi, %r14
	movq	8(%rdi), %rdx
	movq	16(%r13), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	cmpq	%rcx, (%rbx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_5
	jmp	LBB0_2
LBB0_1:
	movq	16(%r13), %rcx
LBB0_2:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %r12
	movl	(%r12), %eax
	incl	%eax
	je	LBB0_8
## %bb.7:
	cmpl	24(%r13), %eax
	jne	LBB0_14
LBB0_8:
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_avio_rb24
	movq	%r14, %rdi
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	callq	_avio_rb64
	jmp	LBB0_11
LBB0_10:
	callq	_avio_rb32
LBB0_11:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_get_current_frag_stream_info
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, (%rax)
LBB0_13:
	movq	%r14, 8(%r12)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find corresponding track id %u\n"

	.no_dead_strip	_mov_read_tfdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_tfdt
_mov_read_tfdt:                         ; @mov_read_tfdt
	.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	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x9, [x0, #8]
	ldr	x3, [x19, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x11, [x10]
	cmp	x11, x3
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x3, [x19, #16]
LBB0_5:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_6:
	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
LBB0_7:
	ldr	x22, [x10, #8]
	ldr	w8, [x22]
	adds	w8, w8, #1
	b.hs	LBB0_9
; %bb.8:
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	cbz	w21, LBB0_11
; %bb.10:
	bl	_avio_rb64
	b	LBB0_12
LBB0_11:
	bl	_avio_rb32
LBB0_12:
	mov	x20, x0
	mov	x0, x19
	bl	_get_current_frag_stream_info
	cbz	x0, LBB0_14
; %bb.13:
	str	x20, [x0]
LBB0_14:
	str	x20, [x22, #8]
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find corresponding track id %u\n"

	.no_dead_strip	_mov_read_tfdt
.subsections_via_symbols
