	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applyDeltas
_applyDeltas:                           ## @applyDeltas
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_26
## %bb.1:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%ecx, 20(%rdi,%rax)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_hb_list_rem
	movq	%rbx, %rdi
	callq	_free
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	8(%r15), %r14
	movq	%r12, %rbx
	shlq	$5, %rbx
	movl	16(%r14,%rbx), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%rbx), %r13
	movl	24(%r14,%rbx), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r14
	addq	$16, %r14
	xorl	%r15d, %r15d
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%rax, %r13
	jg	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%ebx
	movl	8(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jge	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %r12
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	-8(%r14), %rcx
	movq	(%rax), %r13
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%rax, %r13
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rax
	subq	%r12, %rax
	cmpq	%r15, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmovgl	%ebx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmovgq	%rax, %r15
	movq	_SYNC_TYPE_AUDIO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	8(%rsi), %r15
	jl	LBB0_11
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r13
	jge	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%ebx
	movl	8(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jge	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	subq	%rcx, (%rax)
	movq	8(%rax), %rdx
	cmpq	(%r13), %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	subq	%rcx, %rdx
	movq	%rdx, 8(%rax)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r14), %rax
	movq	_SYNC_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	jle	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	decl	%esi
	callq	_hb_list_item
	movq	16(%rax), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	subq	%rcx, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, 16(%rax)
	subq	%rcx, 8(%rax)
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 16(%rax)
	movq	(%rax), %rdx
	movq	%rdx, 8(%rax)
	jmp	LBB0_24
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ## @SYNC_TYPE_SUBTITLE
	.comm	_SYNC_TYPE_AUDIO,8,3            ## @SYNC_TYPE_AUDIO
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_SYNC_TYPE_VIDEO,8,3            ## @SYNC_TYPE_VIDEO
	.no_dead_strip	_applyDeltas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applyDeltas
_applyDeltas:                           ; @applyDeltas
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	str	x0, [sp]                        ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x28, x22, lsl #5
	ldr	w10, [x9, #20]
	add	w8, w10, w8
	str	w8, [x9, #20]
	ldr	w0, [x27]
	mov	x1, x20
	bl	_hb_list_rem
	mov	x0, x20
	bl	_free
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_25
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x28, [x19, #8]
	add	x21, x28, x22, lsl #5
	ldr	w0, [x21, #16]!
	mov	w1, #0
	bl	_hb_list_item
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	lsl	x8, x22, #5
	add	x25, x28, x8
	ldr	w0, [x25, #24]!
	ldr	x23, [x28, x8]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	mov	w21, #0
	add	x8, x28, x22, lsl #5
	add	x24, x8, #8
	mov	w26, #-1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	x27, x9
	b.gt	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w21, w21, #1
	ldr	w0, [x25]
	bl	_hb_list_count
	mov	x23, x27
	cmp	w21, w0
	b.ge	LBB0_15
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	mov	x1, x21
	bl	_hb_list_item
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _SYNC_TYPE_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYNC_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	ldr	x27, [x0]
	ldr	x9, [x20]
	cmp	x8, x10
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	x27, x9
	b.le	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	sub	x9, x27, x23
	cmp	x9, x19
	csel	w26, w21, w26, gt
	csel	x19, x9, x19, gt
Lloh3:
	adrp	x9, _SYNC_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYNC_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x20, #8]
	cmp	x19, x8
	b.lt	LBB0_9
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x21
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x19, x27, [sp]                  ; 16-byte Folded Reload
	tbnz	w26, #31, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_hb_list_count
	cmp	w26, w0
Lloh6:
	adrp	x23, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b.ge	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x26
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	w21, w21, #1
	ldr	w0, [x25]
	bl	_hb_list_count
	cmp	w21, w0
	b.ge	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	mov	x1, x21
	bl	_hb_list_item
	ldr	x8, [x20, #8]
	ldp	x10, x9, [x0]
	sub	x10, x10, x8
	str	x10, [x0]
	ldr	x10, [x23]
	cmp	x9, x10
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	sub	x8, x9, x8
	str	x8, [x0, #8]
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
Lloh8:
	adrp	x9, _SYNC_TYPE_VIDEO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SYNC_TYPE_VIDEO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w26, #0, #4, eq
	b.le	LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	sub	w1, w26, #1
	bl	_hb_list_item
	ldr	x9, [x0, #16]
	ldr	x8, [x20, #8]
	subs	x9, x9, x8
	b.le	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x0, #8]
	sub	x10, x10, x8
	stp	x10, x9, [x0, #8]
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x0]
	stp	x9, xzr, [x0, #8]
	b	LBB0_3
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ; @SYNC_TYPE_SUBTITLE
	.comm	_SYNC_TYPE_AUDIO,8,3            ; @SYNC_TYPE_AUDIO
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_SYNC_TYPE_VIDEO,8,3            ; @SYNC_TYPE_VIDEO
	.no_dead_strip	_applyDeltas
.subsections_via_symbols
