	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sub
_add_sub:                               ## @add_sub
	.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	%r8, %rbx
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rdi, %r15
	movl	(%rsi), %edi
	movl	%edx, %esi
	callq	_hb_list_item
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.4:
	movq	_subburn@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	callq	_hb_subtitle_can_burn
	testq	%rax, %rax
	setne	%cl
	movl	(%rbx), %eax
LBB0_6:
	movzbl	%cl, %r15d
	orl	%r15d, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rbx)
	movq	_subdefault@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movq	_subforce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_test_sub_list
	movl	%eax, %ebx
	testb	%r15b, %r15b
	jne	LBB0_11
## %bb.7:
	movl	(%r13), %edi
	movq	_mux@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_subtitle_can_pass
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:
	xorl	%r13d, %r13d
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_hb_dict_init
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %r15d
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_hb_value_int
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movl	%r13d, %edi
	callq	_hb_value_bool
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movl	%r15d, %edi
	callq	_hb_value_bool
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_hb_value_bool
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_hb_value_array_append
	jmp	LBB0_12
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%r14d
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movl	%r14d, %edx
	callq	_fprintf
	movl	$-1, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movl	$1, (%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Could not find subtitle track %d, skipped\n"

	.comm	_subburn,4,2                    ## @subburn
	.comm	_subdefault,4,2                 ## @subdefault
	.comm	_subforce,4,2                   ## @subforce
	.comm	_mux,4,2                        ## @mux
L_.str.1:                               ## @.str.1
	.asciz	"Warning: Skipping subtitle track %d, can't have more than one track burnt in\n"

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

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

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

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

	.no_dead_strip	_add_sub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sub
_add_sub:                               ; @add_sub
	.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, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x0
	ldr	w0, [x1]
	mov	x1, x2
	bl	_hb_list_item
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _subburn@GOTPAGE
Lloh1:
	ldr	x9, [x9, _subburn@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w23, #0, eq
	b.eq	LBB0_5
; %bb.2:
	mov	w21, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	w2, w20, #1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	ldr	w0, [x24]
	bl	_hb_subtitle_can_burn
	cmp	x0, #0
	cset	w21, ne
	ldr	w8, [x22]
LBB0_6:
	orr	w8, w8, w21
	str	w8, [x22]
Lloh8:
	adrp	x8, _subdefault@GOTPAGE
Lloh9:
	ldr	x8, [x8, _subdefault@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w25, eq
Lloh11:
	adrp	x8, _subforce@GOTPAGE
Lloh12:
	ldr	x8, [x8, _subforce@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_sub_list
	mov	x23, x0
	tbnz	w21, #0, LBB0_8
; %bb.7:
	ldr	w0, [x24]
Lloh14:
	adrp	x8, _mux@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mux@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_hb_subtitle_can_pass
	cbz	w0, LBB0_10
LBB0_8:
	bl	_hb_dict_init
	mov	x22, x0
	mov	x0, x20
	bl	_hb_value_int
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_set
	mov	x0, x25
	bl	_hb_value_bool
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_set
	mov	x0, x23
	bl	_hb_value_bool
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_set
	mov	x0, x21
	bl	_hb_value_bool
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_set
	mov	x0, x19
	mov	x1, x22
	bl	_hb_value_array_append
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.11:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	w2, w20, #1
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_12:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Could not find subtitle track %d, skipped\n"

	.comm	_subburn,4,2                    ; @subburn
	.comm	_subdefault,4,2                 ; @subdefault
	.comm	_subforce,4,2                   ; @subforce
	.comm	_mux,4,2                        ; @mux
l_.str.1:                               ; @.str.1
	.asciz	"Warning: Skipping subtitle track %d, can't have more than one track burnt in\n"

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

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

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

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

	.no_dead_strip	_add_sub
.subsections_via_symbols
