	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_subtitle
_add_subtitle:                          ## @add_subtitle
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	$48, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	16(%r12), %eax
	movl	%eax, 16(%rbx)
	cmpl	$128, (%r12)
	jne	LBB0_4
## %bb.1:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_PGSSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, 36(%rbx)
	movq	_PICTURESUB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_RENDERSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	8(%r12), %rdi
	callq	_lang_for_code2
	movq	%rax, %r15
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %r13
	cmpb	$0, (%r13)
	jne	LBB0_3
## %bb.2:
	movq	8(%r15), %r13
LBB0_3:
	movl	%r14d, %edi
	callq	_hb_subsource_name
	leaq	L_.str(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	movq	%r13, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movl	8(%rbx), %r14d
	movq	16(%r15), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.2(%rip), %rdi
	callq	_STR4_TO_UINT32
	movl	%eax, 32(%rbx)
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%rbx)
	movabsq	$386547056640001, %rax          ## imm = 0x15F9000000001
	movq	%rax, 20(%rbx)
	leaq	L_.str.3(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_hb_log
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_list_add                    ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSSUB,4,2                     ## @PGSSUB
	.comm	_PICTURESUB,4,2                 ## @PICTURESUB
	.comm	_RENDERSUB,4,2                  ## @RENDERSUB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s [%s]"

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

L_.str.2:                               ## @.str.2
	.asciz	"HDMV"

L_.str.3:                               ## @.str.3
	.asciz	"bd: subtitle id=0x%x, lang=%s, 3cc=%s"

	.no_dead_strip	_add_subtitle
.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 add_subtitle
lCPI0_0:
	.long	1                               ; 0x1
	.long	90000                           ; 0x15f90
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_add_subtitle:                          ; @add_subtitle
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	mov	w0, #48
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	str	w23, [x0]
	ldr	w23, [x22, #16]
	str	w23, [x0, #16]
	ldr	w8, [x22]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PGSSUB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PGSSUB@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _PICTURESUB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PICTURESUB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #44]
Lloh6:
	adrp	x8, _RENDERSUB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RENDERSUB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w26, w8, [x20, #36]
	ldr	x0, [x22, #8]
	bl	_lang_for_code2
	mov	x25, x0
	ldr	w24, [x20, #12]
	ldr	x27, [x0]
	ldrb	w8, [x27]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x27, [x25, #8]
LBB0_3:
	mov	x0, x26
	bl	_hb_subsource_name
	str	x0, [sp]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	w1, #4
	mov	x3, x27
	bl	_snprintf
	ldr	w26, [x20, #8]
	ldr	x3, [x25, #16]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x26
	mov	w1, #4
	bl	_snprintf
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_STR4_TO_UINT32
	ldr	w8, [x22]
	str	w8, [x20, #4]
	stp	w21, w0, [x20, #28]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #20]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	mov	x3, x26
	bl	_hb_log
	mov	x0, x19
	mov	x1, x20
	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
	b	_hb_list_add
LBB0_4:
	mov	x0, x20
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSSUB,4,2                     ; @PGSSUB
	.comm	_PICTURESUB,4,2                 ; @PICTURESUB
	.comm	_RENDERSUB,4,2                  ; @RENDERSUB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s [%s]"

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

l_.str.2:                               ; @.str.2
	.asciz	"HDMV"

l_.str.3:                               ; @.str.3
	.asciz	"bd: subtitle id=0x%x, lang=%s, 3cc=%s"

	.no_dead_strip	_add_subtitle
.subsections_via_symbols
