	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_ares
_mov_read_ares:                         ## @mov_read_ares
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %r13
	movq	(%r13), %rbx
	movl	$65, %edi
	movl	$86, %esi
	movl	$105, %edx
	movl	$110, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.2:
	movq	8(%r13), %rax
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	cmpl	$12, %r12d
	jl	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rb16
	addl	$-3405, %eax                    ## imm = 0xF2B3
	cmpl	$1, %eax
	ja	LBB0_19
## %bb.5:
	movl	$1440, 16(%r13)                 ## imm = 0x5A0
	jmp	LBB0_19
LBB0_6:
	movq	(%r13), %rbx
	movl	$65, %edi
	movl	$86, %esi
	movl	$100, %edx
	movl	$49, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.7:
	movq	(%r13), %rbx
	movl	$65, %edi
	movl	$86, %esi
	movl	$106, %edx
	movl	$50, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_11:
	cmpl	$24, %r12d
	jge	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mov_read_avid                  ## TAILCALL
LBB0_8:
	movq	(%r13), %rbx
	movl	$65, %edi
	movl	$86, %esi
	movl	$100, %edx
	movl	$110, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	cmpl	$23, %r12d
	jle	LBB0_10
LBB0_12:
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rb32
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_avio_rb32
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.13:
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:
	movq	%r15, %rdi
	callq	_avio_rb32
	cmpl	$1, %eax
	je	LBB0_18
## %bb.15:
	cmpl	$2, %eax
	jne	LBB0_19
## %bb.16:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jge	LBB0_19
## %bb.17:
	addl	%ebx, %ebx
LBB0_18:
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movq	-8(%rcx,%rax,8), %rax
	movl	%r12d, (%rax)
	movl	%ebx, 4(%rax)
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_mov_read_ares
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_ares
_mov_read_ares:                         ; @mov_read_ares
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_17
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x22, [x8, #8]
	ldr	x23, [x22]
	mov	w0, #65
	mov	w1, #86
	mov	w2, #105
	mov	w3, #110
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w21, #12, #8, eq
	b.ge	LBB0_13
LBB0_3:
	ldr	x23, [x22]
	mov	w0, #65
	mov	w1, #86
	mov	w2, #100
	mov	w3, #49
	bl	_MKTAG
	cmp	x23, x0
	b.eq	LBB0_5
; %bb.4:
	ldr	x23, [x22]
	mov	w0, #65
	mov	w1, #86
	mov	w2, #106
	mov	w3, #50
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_16
LBB0_5:
	cmp	w21, #24
	b.lt	LBB0_17
LBB0_6:
	mov	x0, x20
	mov	w1, #12
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb32
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.7:
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_avio_rb32
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.9:
	cmp	w0, #2
	b.ne	LBB0_15
; %bb.10:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w22, w8, asr #1
	b.ge	LBB0_15
; %bb.11:
	lsl	w22, w22, #1
LBB0_12:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	x8, [x8, #-8]
	stp	w21, w22, [x8]
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	mov	w1, #10
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rb16
	sub	w8, w0, #3405
	cmp	w8, #1
	b.hi	LBB0_15
; %bb.14:
	mov	w8, #1440
	str	w8, [x22, #16]
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x22, [x22]
	mov	w0, #65
	mov	w1, #86
	mov	w2, #100
	mov	w3, #110
	bl	_MKTAG
	cmp	x22, x0
	ccmp	w21, #23, #4, eq
	b.gt	LBB0_6
LBB0_17:
	and	x2, x21, #0xffffffff
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mov_read_avid
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_mov_read_ares
.subsections_via_symbols
