	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_srt_to_ssa                  ## -- Begin function hb_srt_to_ssa
	.p2align	4, 0x90
_hb_srt_to_ssa:                         ## @hb_srt_to_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	%rdi, %rbx
	movslq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movl	%esi, %r15d
	movq	8(%rbx), %r12
	cmpq	$0, -8(%r12,%rdi,8)
	je	LBB0_3
## %bb.2:
	leal	1(%rdi), %esi
	movl	%esi, (%rbx)
	movq	%rbx, %rdi
	callq	_hb_buffer_realloc
	movq	8(%rbx), %r12
	movslq	(%rbx), %rdi
	movq	$0, -8(%r12,%rdi,8)
LBB0_3:
	addl	$80, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_hb_buffer_init
	movq	%rax, -80(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hb_buffer_swap_copy
	movq	8(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	callq	_strlen
	movl	%eax, %r15d
	cmpb	$0, (%r12)
	je	LBB0_4
## %bb.5:
	movq	%r12, %rbx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %esi
	incl	%esi
	movl	%eax, %r12d
	addl	%r15d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hb_buffer_realloc
	movq	8(%rbx), %rax
	movslq	%r15d, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_free
	movq	%r13, %rdx
	addl	-60(%rbp), %edx
	movl	%r12d, %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, %r13
	movslq	%edx, %rax
	leaq	(%r12,%rax), %rbx
	cmpb	$0, (%r12,%rax)
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rsi
	callq	_srt_markup_to_ssa
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	4(%r15), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_hb_buffer_realloc
	movq	8(%r14), %rsi
	movzbl	(%rbx), %eax
	cmpb	$10, %al
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$13, %al
	movq	%r13, %rdx
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%edx, %rax
	leaq	1(%rax), %rcx
	cmpb	$10, 1(%r12,%rax)
	cmovnel	%edx, %ecx
	movslq	%ecx, %rax
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rax
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rax), %rdx
	cmpb	$0, 1(%r12,%rax)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rax
	movw	$20060, (%rsi,%rax)             ## imm = 0x4E5C
	addl	$2, %r15d
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%edx
	movslq	%r15d, %rcx
	incl	%r15d
	movb	%al, (%rsi,%rcx)
	jmp	LBB0_15
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movslq	%r15d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	incl	%eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	leaq	-80(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_17:
	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	"%d,,Default,,0,0,0,,"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_srt_to_ssa                  ; -- Begin function hb_srt_to_ssa
	.p2align	2
_hb_srt_to_ssa:                         ; @hb_srt_to_ssa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	w8, [x0]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	sub	w9, w8, #1
	ldr	x9, [x24, w9, sxtw #3]
	cbz	x9, LBB0_3
; %bb.2:
	add	w1, w8, #1
	str	w1, [x19]
	mov	x0, x19
	bl	_hb_buffer_realloc
	ldr	x24, [x19, #8]
	ldr	w8, [x19]
	sub	w9, w8, #1
	str	xzr, [x24, w9, sxtw #3]
LBB0_3:
	add	w0, w8, #80
	bl	_hb_buffer_init
	mov	x1, x0
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_hb_buffer_swap_copy
	ldr	x21, [x19, #8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sprintf
	ldr	x0, [x19, #8]
	bl	_strlen
	mov	x20, x0
	ldrb	w8, [x24]
	cbz	w8, LBB0_15
; %bb.4:
	mov	w26, #0
	mov	w25, #20060
	mov	x22, x24
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	bl	_strlen
	add	w22, w0, w20
	add	w1, w22, #1
	mov	x0, x19
	bl	_hb_buffer_realloc
	ldr	x21, [x19, #8]
	add	x0, x21, w20, sxtw
	mov	x1, x23
	bl	_strcpy
	mov	x0, x23
	bl	_free
	ldr	w8, [sp, #20]
	add	w26, w8, w26
	mov	x20, x22
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x24, w26, sxtw
	ldrb	w8, [x22]
	cbz	w8, LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #20
	mov	x0, x22
	bl	_srt_markup_to_ssa
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w1, w20, #4
	mov	x0, x19
	bl	_hb_buffer_realloc
	ldr	x21, [x19, #8]
	ldrb	w8, [x22]
	cmp	w8, #10
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #13
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w26
	add	x8, x8, #1
	ldrb	w9, [x24, x8]
	cmp	w9, #10
	csel	w8, w8, w26, eq
	sxtw	x8, w8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sxtw	x8, w26
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x8, #1
	ldrb	w8, [x24, x26]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	cbz	w8, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	strh	w25, [x21, w20, sxtw]
	add	w20, w20, #2
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, #1
	strb	w8, [x21, w20, sxtw]
	add	w20, w20, #1
	b	LBB0_6
LBB0_15:
	strb	wzr, [x21, w20, sxtw]
	add	w8, w20, #1
	str	w8, [x19]
	add	x0, sp, #24
	bl	_hb_buffer_close
LBB0_16:
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d,,Default,,0,0,0,,"

.subsections_via_symbols
