	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_tracks
_enable_tracks:                         ## @enable_tracks
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AVMEDIA_TYPE_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___bzero
	movq	%r15, %rdi
	movl	$255, %esi
	movq	%rbx, %rdx
	callq	_memset
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.9:
	xorl	%r15d, %r15d
	movq	_AVMEDIA_TYPE_UNKNOWN@GOTPCREL(%rip), %r14
	movq	_AVMEDIA_TYPE_NB@GOTPCREL(%rip), %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	movl	(%rsi), %r12d
	cmpq	%rax, %r15
	jge	LBB0_4
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	(%r14), %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r12d, %eax
	jge	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_is_cover_image
	movq	_AVMEDIA_TYPE_NB@GOTPCREL(%rip), %rsi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movslq	(%rax), %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi,%rax,4), %ecx
	testl	%ecx, %ecx
	movl	%r15d, %edx
	cmovnsl	%ecx, %edx
	movl	%edx, (%rdi,%rax,4)
	movq	_AV_DISPOSITION_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_MOV_TRACK_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	orl	%ecx, (%rdx,%r15,4)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx,%rax,4)
	jmp	LBB0_15
LBB0_3:
	movq	_AVMEDIA_TYPE_NB@GOTPCREL(%rip), %rsi
LBB0_4:
	testl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	jle	LBB0_20
## %bb.5:
	xorl	%eax, %eax
	movq	_MOV_TRACK_ENABLED@GOTPCREL(%rip), %r8
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movslq	(%rsi), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-128(%rax), %edx
	cmpl	$2, %edx
	ja	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%rax,4), %edx
	cmpl	$2, %edx
	jge	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%edx, %edx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r10,%rax,4), %edx
	testl	%edx, %edx
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r8), %r9d
	movq	8(%rbx), %rdi
	orl	%r9d, (%rdi,%rdx,4)
	jmp	LBB0_19
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_NB,4,2            ## @AVMEDIA_TYPE_NB
	.comm	_AVMEDIA_TYPE_UNKNOWN,4,2       ## @AVMEDIA_TYPE_UNKNOWN
	.comm	_AV_DISPOSITION_DEFAULT,4,2     ## @AV_DISPOSITION_DEFAULT
	.comm	_MOV_TRACK_ENABLED,4,2          ## @MOV_TRACK_ENABLED
	.no_dead_strip	_enable_tracks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_tracks
_enable_tracks:                         ; @enable_tracks
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x0, #16]
Lloh3:
	adrp	x24, _AVMEDIA_TYPE_NB@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AVMEDIA_TYPE_NB@GOTPAGEOFF]
	ldr	w26, [x24]
	lsl	x22, x26, #2
	mov	x9, x22
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x7fffffff0
	sub	x19, x8, x12
	mov	sp, x19
	mov	x9, x22
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
	cmp	w26, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_bzero
	mov	x0, x20
	mov	w1, #255
	mov	x2, x22
	bl	_memset
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x27, #0
Lloh9:
	adrp	x28, _AVMEDIA_TYPE_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x28, [x28, _AVMEDIA_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh11:
	adrp	x25, _AV_DISPOSITION_DEFAULT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AV_DISPOSITION_DEFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x21]
	ldr	w26, [x24]
	cmp	x27, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x22, [x8, x27, lsl #3]
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	ldr	w9, [x28]
	cmp	w8, w9
	ccmp	w8, w26, #0, gt
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_is_cover_image
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8]
	lsl	x8, x8, #2
	ldr	w9, [x20, x8]
	cmp	w9, #0
	csel	w9, w27, w9, lt
	str	w9, [x20, x8]
	ldr	w9, [x22]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x9, _MOV_TRACK_ENABLED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOV_TRACK_ENABLED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	x10, [x23, #8]
	lsl	x11, x27, #2
	ldr	w12, [x10, x11]
	orr	w9, w12, w9
	str	w9, [x10, x11]
	ldr	w9, [x19, x8]
	add	w9, w9, #1
	str	w9, [x19, x8]
	b	LBB0_4
LBB0_9:
	cmp	w26, #1
	b.lt	LBB0_18
; %bb.10:
	mov	x8, #0
	mov	w9, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w9, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x8, #1
	ldrsw	x10, [x24]
	cmp	x8, x10
	b.ge	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w8, #128
	cmp	w10, #2
	b.hi	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w10, [x19, x8, lsl #2]
	cmp	w10, #2
	b.ge	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	w10, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w10, [x20, x8, lsl #2]
	tbnz	w10, #31, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh16:
	adrp	x11, _MOV_TRACK_ENABLED@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MOV_TRACK_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	ldr	x12, [x23, #8]
	lsl	x10, x10, #2
	ldr	w13, [x12, x10]
	orr	w11, w13, w11
	str	w11, [x12, x10]
	b	LBB0_12
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_NB,4,2            ; @AVMEDIA_TYPE_NB
	.comm	_AVMEDIA_TYPE_UNKNOWN,4,2       ; @AVMEDIA_TYPE_UNKNOWN
	.comm	_AV_DISPOSITION_DEFAULT,4,2     ; @AV_DISPOSITION_DEFAULT
	.comm	_MOV_TRACK_ENABLED,4,2          ; @MOV_TRACK_ENABLED
	.no_dead_strip	_enable_tracks
.subsections_via_symbols
