	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_ssa
_add_ssa:                               ## @add_ssa
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdx), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r13d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_ssaburn@GOTPCREL(%rip), %rcx
	leal	1(%r14), %edx
	xorl	%eax, %eax
	movl	$0, %r13d
	cmpl	%edx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_IMPORTSRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hb_subtitle_can_burn
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
	movl	(%rbx), %eax
LBB0_3:
	orl	%r13d, %eax
	movl	%eax, (%rbx)
	movq	_ssadefault@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ssaoffset@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movslq	%r14d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	callq	_hb_str_vlen
	cmpl	%r14d, %eax
	jle	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoll
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:
	movq	_ssalang@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rax
	testq	%rdi, %rdi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.8:
	callq	_hb_str_vlen
	cmpl	%r14d, %eax
	jle	LBB0_13
## %bb.9:
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	callq	_lang_lookup
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_13:
	incl	%r14d
	xorl	%r15d, %r15d
	cmpl	%r14d, %r12d
	sete	%r15b
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	%r15d, %edi
	callq	_hb_value_bool
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	%r13d, %edi
	callq	_hb_value_bool
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_hb_value_int
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.7(%rip), %rdi
	callq	_hb_value_string
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	_ssafile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	callq	_hb_value_string
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_hb_value_string
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_hb_value_array_append
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"und"

	.comm	_ssaburn,4,2                    ## @ssaburn
	.comm	_IMPORTSRT,4,2                  ## @IMPORTSRT
	.comm	_ssadefault,4,2                 ## @ssadefault
	.comm	_ssaoffset,8,3                  ## @ssaoffset
	.comm	_ssalang,8,3                    ## @ssalang
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Warning: Invalid SRT language (%s)\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Default"

L_.str.4:                               ## @.str.4
	.asciz	"Burn"

L_.str.5:                               ## @.str.5
	.asciz	"Offset"

L_.str.6:                               ## @.str.6
	.asciz	"Format"

L_.str.7:                               ## @.str.7
	.asciz	"SSA"

L_.str.8:                               ## @.str.8
	.asciz	"Filename"

	.comm	_ssafile,8,3                    ## @ssafile
L_.str.9:                               ## @.str.9
	.asciz	"Language"

	.no_dead_strip	_add_ssa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_ssa
_add_ssa:                               ; @add_ssa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x2]
	cbnz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ssaburn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssaburn@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w20, #1
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IMPORTSRT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMPORTSRT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_hb_subtitle_can_burn
	cmp	x0, #0
	cset	w21, ne
	ldr	w8, [x22]
	b	LBB0_5
LBB0_3:
	mov	w8, #0
LBB0_4:
	mov	w21, #0
LBB0_5:
	orr	w8, w8, w21
	str	w8, [x22]
Lloh6:
	adrp	x8, _ssadefault@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ssadefault@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x22, _ssaoffset@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ssaoffset@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_9
; %bb.6:
	bl	_hb_str_vlen
	cmp	w0, w20
	b.le	LBB0_9
; %bb.7:
	ldr	x8, [x22]
	ldr	x0, [x8, w20, sxtw #3]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, #0
	mov	w2, #0
	bl	_strtoll
	mov	x22, x0
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
Lloh11:
	adrp	x23, _ssalang@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ssalang@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_16
; %bb.11:
	bl	_hb_str_vlen
	cmp	w0, w20
	b.le	LBB0_16
; %bb.12:
	ldr	x8, [x23]
	ldr	x0, [x8, w20, sxtw #3]
	cbz	x0, LBB0_16
; %bb.13:
	bl	_lang_lookup
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x23, [x0]
	b	LBB0_17
LBB0_15:
	sxtw	x8, w20
Lloh13:
	adrp	x9, _stderr@GOTPAGE
Lloh14:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	x9, [x23]
	ldr	x2, [x9, x8, lsl #3]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_16:
Lloh18:
	adrp	x23, l_.str@PAGE
Lloh19:
	add	x23, x23, l_.str@PAGEOFF
LBB0_17:
	add	w8, w20, #1
	cmp	w24, w8
	cset	w26, eq
	bl	_hb_dict_init
	mov	x24, x0
	bl	_hb_dict_init
	mov	x25, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	bl	_hb_dict_set
	mov	x0, x26
	bl	_hb_value_bool
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_set
	mov	x0, x21
	bl	_hb_value_bool
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_set
	mov	x0, x22
	bl	_hb_value_int
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_set
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_hb_value_string
	mov	x2, x0
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x25
	bl	_hb_dict_set
Lloh32:
	adrp	x8, _ssafile@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ssafile@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x0, [x8, w20, sxtw #3]
	bl	_hb_value_string
	mov	x2, x0
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x25
	bl	_hb_dict_set
	mov	x0, x23
	bl	_hb_value_string
	mov	x2, x0
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x25
	bl	_hb_dict_set
	mov	x0, x19
	mov	x1, x24
	bl	_hb_value_array_append
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"und"

	.comm	_ssaburn,4,2                    ; @ssaburn
	.comm	_IMPORTSRT,4,2                  ; @IMPORTSRT
	.comm	_ssadefault,4,2                 ; @ssadefault
	.comm	_ssaoffset,8,3                  ; @ssaoffset
	.comm	_ssalang,8,3                    ; @ssalang
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Warning: Invalid SRT language (%s)\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Default"

l_.str.4:                               ; @.str.4
	.asciz	"Burn"

l_.str.5:                               ; @.str.5
	.asciz	"Offset"

l_.str.6:                               ; @.str.6
	.asciz	"Format"

l_.str.7:                               ; @.str.7
	.asciz	"SSA"

l_.str.8:                               ; @.str.8
	.asciz	"Filename"

	.comm	_ssafile,8,3                    ; @ssafile
l_.str.9:                               ; @.str.9
	.asciz	"Language"

	.no_dead_strip	_add_ssa
.subsections_via_symbols
