	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pes_add_subtitle_to_title
LCPI0_0:
	.long	1081472                         ## 0x108080
	.long	1081472                         ## 0x108080
	.long	1081472                         ## 0x108080
	.long	12578816                        ## 0xbff000
LCPI0_1:
	.long	12578816                        ## 0xbff000
	.long	1081472                         ## 0x108080
	.long	1081472                         ## 0x108080
	.long	1081472                         ## 0x108080
LCPI0_2:
	.long	1081472                         ## 0x108080
	.long	12578816                        ## 0xbff000
	.long	1081472                         ## 0x108080
	.long	1081472                         ## 0x108080
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pes_add_subtitle_to_title:             ## @pes_add_subtitle_to_title
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rcx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_get_id
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_hb_list_count
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	cmpl	(%rax), %r12d
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_3
LBB0_5:
	movl	$72, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	%r12d, (%rbx)
	movabsq	$386547056640001, %rax          ## imm = 0x15F9000000001
	movq	%rax, 64(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.8:
	movq	_VOBSUB@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PGSSUB@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rbx)
	movq	_PICTURESUB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_RENDERSUB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rax,%rcx,4), %edi
	callq	_lang_for_code
	movl	44(%rbx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	(%rax), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_11
## %bb.10:
	movq	8(%rax), %rcx
LBB0_11:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_hb_subsource_name
	leaq	L_.str.1(%rip), %rdx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movl	40(%rbx), %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rsi,%rdi,4), %edx
	movl	%edx, 32(%rbx)
	leaq	4(%rsi,%rdi,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rsi,%rdi,4), %ecx
	movl	%ecx, 16(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_VOBSUB@GOTPCREL(%rip), %rax
	movq	%rbx, %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rax), %rbx
	movq	%r8, %rbx
	jne	LBB0_13
## %bb.12:
	leaq	(%rsi,%rdi,4), %rax
	addq	$12, %rax
	movq	24(%rbx), %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1081472,1081472,1081472,12578816]
	movups	%xmm0, (%rcx)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [12578816,1081472,1081472,1081472]
	movups	%xmm0, 16(%rcx)
	movups	%xmm0, 32(%rcx)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1081472,12578816,1081472,1081472]
	movups	%xmm0, 48(%rcx)
	movl	(%rax), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	(%rbx), %r12d
LBB0_13:
	movl	8(%rsi,%rdi,4), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_hb_log
	testl	%r13d, %r13d
	js	LBB0_23
## %bb.14:
	cmpl	%r13d, %r15d
	cmovll	%r15d, %r13d
	jle	LBB0_22
## %bb.15:
	movq	%rbx, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rbx
	addq	$8, %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r13d
	cmpl	%r13d, %r15d
	je	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_hb_list_item
	movl	(%rax), %eax
	movzwl	%ax, %ecx
	sarl	$16, %eax
	cmpl	%ecx, (%rbx)
	jl	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	jg	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%eax, (%rcx)
	jg	LBB0_19
	jmp	LBB0_21
LBB0_24:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_23:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_list_add                    ## TAILCALL
LBB0_20:
	movl	%r15d, %r13d
LBB0_21:
	movq	%r12, %rbx
LBB0_22:
	movl	(%r14), %edi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_list_insert                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSSUB,8,3                     ## @PGSSUB
	.comm	_PICTURESUB,8,3                 ## @PICTURESUB
	.comm	_RENDERSUB,8,3                  ## @RENDERSUB
	.comm	_VOBSUB,8,3                     ## @VOBSUB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized subtitle!"

L_.str.1:                               ## @.str.1
	.asciz	"%s [%s]"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"stream id 0x%x (type 0x%x substream 0x%x) subtitle 0x%x"

	.no_dead_strip	_pes_add_subtitle_to_title
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pes_add_subtitle_to_title
lCPI0_0:
	.long	1                               ; 0x1
	.long	90000                           ; 0x15f90
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	1081472                         ; 0x108080
	.long	1081472                         ; 0x108080
	.long	1081472                         ; 0x108080
	.long	12578816                        ; 0xbff000
lCPI0_2:
	.long	12578816                        ; 0xbff000
	.long	1081472                         ; 0x108080
	.long	1081472                         ; 0x108080
	.long	1081472                         ; 0x108080
lCPI0_3:
	.long	1081472                         ; 0x108080
	.long	12578816                        ; 0xbff000
	.long	1081472                         ; 0x108080
	.long	1081472                         ; 0x108080
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pes_add_subtitle_to_title:             ; @pes_add_subtitle_to_title
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x26, x1
	mov	x27, x0
	ldr	x28, [x0, #8]
	mov	w8, #20
	smaddl	x24, w1, w8, x28
	mov	x0, x24
	bl	_get_id
	mov	x23, x0
	ldr	w0, [x19]
	bl	_hb_list_count
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_hb_list_item
	ldr	w8, [x0]
	cmp	w23, w8
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cmp	w20, w21
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #72
	mov	w1, #1
	bl	_calloc
	mov	x21, x0
	stp	w23, w26, [x0]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #64]
	ldr	w8, [x24]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.6:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	str	w22, [sp, #60]                  ; 4-byte Folded Spill
Lloh2:
	adrp	x8, _VOBSUB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VOBSUB@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	str	w22, [sp, #60]                  ; 4-byte Folded Spill
Lloh4:
	adrp	x8, _PGSSUB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGSSUB@GOTPAGEOFF]
LBB0_9:
	sxtw	x25, w26
	ldr	x26, [x8]
	str	x26, [x21, #8]
Lloh6:
	adrp	x8, _PICTURESUB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PICTURESUB@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _RENDERSUB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RENDERSUB@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x8, [x21, #48]
	mov	w8, #20
	madd	x8, x25, x8, x28
	ldr	w0, [x8, #16]
	bl	_lang_for_code
	mov	x27, x0
	str	x28, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w28, [x21, #44]
	ldr	x22, [x0]
	ldrb	w8, [x22]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	x22, [x27, #8]
LBB0_11:
	mov	x0, x26
	bl	_hb_subsource_name
	str	x0, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x28
	mov	w1, #4
	mov	x3, x22
	bl	_snprintf
	ldr	w0, [x21, #40]
	ldr	x3, [x27, #16]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldp	x12, x8, [sp, #40]              ; 16-byte Folded Reload
	ldr	w11, [x8]
	mov	w8, #20
	madd	x27, x25, x8, x12
	ldr	w9, [x27, #4]!
	mov	x10, x27
	ldr	w8, [x10, #8]!
	stp	w8, w11, [x21, #32]
	ldr	w11, [x24]
	stp	w9, w11, [x21, #16]
Lloh16:
	adrp	x11, _VOBSUB@GOTPAGE
Lloh17:
	ldr	x11, [x11, _VOBSUB@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x26, x11
	mov	x11, x12
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x21, #24]
Lloh19:
	adrp	x9, lCPI0_1@PAGE
Lloh20:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
Lloh21:
	adrp	x9, lCPI0_2@PAGE
Lloh22:
	ldr	q1, [x9, lCPI0_2@PAGEOFF]
	stp	q0, q1, [x8]
Lloh23:
	adrp	x9, lCPI0_3@PAGE
Lloh24:
	ldr	q0, [x9, lCPI0_3@PAGEOFF]
	stp	q1, q0, [x8, #32]
	ldr	w8, [x10]
	ldr	w9, [x27]
	ldr	w23, [x21]
LBB0_13:
	ldr	w22, [sp, #60]                  ; 4-byte Folded Reload
	mov	w10, #20
	madd	x24, x25, x10, x11
	ldr	w10, [x24, #8]!
	stp	x9, x23, [sp, #16]
	stp	x10, x8, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	tbnz	w22, #31, LBB0_20
; %bb.14:
	cmp	w20, w22
	csel	w22, w20, w22, lt
	b.gt	LBB0_16
	b	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w22, w22, #1
	cmp	w20, w22
	b.eq	LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_hb_list_item
	ldr	w8, [x0]
	and	w9, w8, #0xffff
	ldr	w10, [x24]
	cmp	w10, w9
	b.lt	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	b.gt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	asr	w8, w8, #16
	ldr	w9, [x27]
	cmp	w9, w8
	b.gt	LBB0_15
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_free
LBB0_20:
	ldr	w0, [x19]
	mov	x1, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_hb_list_add
LBB0_21:
	mov	x22, x20
LBB0_22:
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_hb_list_insert
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpAdrp	Lloh19, Lloh21
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSSUB,8,3                     ; @PGSSUB
	.comm	_PICTURESUB,8,3                 ; @PICTURESUB
	.comm	_RENDERSUB,8,3                  ; @RENDERSUB
	.comm	_VOBSUB,8,3                     ; @VOBSUB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized subtitle!"

l_.str.1:                               ; @.str.1
	.asciz	"%s [%s]"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"stream id 0x%x (type 0x%x substream 0x%x) subtitle 0x%x"

	.no_dead_strip	_pes_add_subtitle_to_title
.subsections_via_symbols
