	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_check_track
_avi_check_track:                       ## @avi_check_track
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$119, %edi
	movl	$98, %esi
	callq	_AVI_TWOCC
	cmpq	%r15, %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movl	$100, %edi
	movl	$98, %esi
	callq	_AVI_TWOCC
	cmpq	%r15, %rax
	jne	LBB0_7
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movl	$100, %edi
	movl	$99, %esi
	callq	_AVI_TWOCC
	cmpq	%r15, %rax
	jne	LBB0_10
## %bb.8:
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	movl	$100, %edi
	movl	$100, %esi
	callq	_AVI_TWOCC
	cmpq	%r15, %rax
	jne	LBB0_15
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
LBB0_14:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspicious track type ('wb'), track %d is not an audio track"

	.comm	_VC_CONTAINER_ERROR_FAILED,4,2  ## @VC_CONTAINER_ERROR_FAILED
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
L_.str.1:                               ## @.str.1
	.asciz	"suspicious track type ('db'), track %d is not a video track"

L_.str.2:                               ## @.str.2
	.asciz	"suspicious track type ('dc'), track %d is not a video track"

L_.str.3:                               ## @.str.3
	.asciz	"suspicious track type ('dd'), track %d is not a video track"

L_.str.4:                               ## @.str.4
	.asciz	"invalid track number %d (no more than %d tracks expected)"

	.no_dead_strip	_avi_check_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_check_track
_avi_check_track:                       ; @avi_check_track
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, x2
	b.le	LBB0_13
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w0, #119
	mov	w1, #98
	bl	_AVI_TWOCC
	cmp	x0, x21
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_LOG_DEBUG
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
LBB0_4:
	mov	w0, #100
	mov	w1, #98
	bl	_AVI_TWOCC
	cmp	x0, x21
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_LOG_DEBUG
Lloh16:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
LBB0_7:
	mov	w0, #100
	mov	w1, #99
	bl	_AVI_TWOCC
	cmp	x0, x21
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_LOG_DEBUG
Lloh24:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
LBB0_10:
	mov	w0, #100
	mov	w1, #100
	bl	_AVI_TWOCC
	cmp	x0, x21
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.12:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x20
	mov	x2, x19
	bl	_LOG_DEBUG
Lloh34:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
Lloh36:
	ldr	w22, [x8]
LBB0_15:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspicious track type ('wb'), track %d is not an audio track"

	.comm	_VC_CONTAINER_ERROR_FAILED,4,2  ; @VC_CONTAINER_ERROR_FAILED
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
l_.str.1:                               ; @.str.1
	.asciz	"suspicious track type ('db'), track %d is not a video track"

l_.str.2:                               ; @.str.2
	.asciz	"suspicious track type ('dc'), track %d is not a video track"

l_.str.3:                               ; @.str.3
	.asciz	"suspicious track type ('dd'), track %d is not a video track"

l_.str.4:                               ; @.str.4
	.asciz	"invalid track number %d (no more than %d tracks expected)"

	.no_dead_strip	_avi_check_track
.subsections_via_symbols
