	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ApplyVOBSubs
_ApplyVOBSubs:                          ## @ApplyVOBSubs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_hb_list_rem
	leaq	-48(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_hb_list_count
	cmpl	%eax, %r13d
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_hb_list_item
	movq	%rax, -48(%rbp)
	leal	1(%r13), %r12d
	movl	(%rbx), %edi
	callq	_hb_list_count
	cmpl	%eax, %r12d
	jge	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_hb_list_item
	movq	-48(%rbp), %rsi
	movq	8(%rsi), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	8(%rsi), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	16(%r14), %rax
	jle	LBB0_12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	16(%r14), %rcx
	jle	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %rax
	cmpq	16(%r14), %rax
	jg	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ScaleSubtitle
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ApplySub
	movq	%r15, %rdi
	callq	_hb_buffer_close
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movq	%rsi, -48(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r13d
	jmp	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_ApplyVOBSubs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ApplyVOBSubs
_ApplyVOBSubs:                          ; @ApplyVOBSubs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x23, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_hb_list_rem
	add	x0, sp, #8
	bl	_hb_buffer_close
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_hb_list_count
	cmp	w21, w0
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w0, [x20]
	mov	x1, x21
	bl	_hb_list_item
	str	x0, [sp, #8]
	add	w22, w21, #1
	ldr	w0, [x20]
	bl	_hb_list_count
	cmp	w22, w0
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	bl	_hb_list_item
	ldr	x1, [sp, #8]
	ldr	x8, [x1, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #16]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	ldr	x8, [x1, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.le	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x1, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.gt	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x2, x19
	bl	_ScaleSubtitle
	mov	x2, x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_ApplySub
	mov	x0, sp
	bl	_hb_buffer_close
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	str	x1, [sp, #8]
	cbnz	x1, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
	b	LBB0_3
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_ApplyVOBSubs
.subsections_via_symbols
