	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sanitize_subtitles
_sanitize_subtitles:                    ## @sanitize_subtitles
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	callq	_hb_interjob_get
	cmpq	$0, 16(%r14)
	jne	LBB0_36
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	cmpq	$0, 32(%rax)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	$0, 32(%rax)
LBB0_5:
	movl	8(%r14), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_15
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_hb_list_rem
	movq	%rbx, %rdi
	callq	_free
	movl	8(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %r12d
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movl	%r12d, %esi
	callq	_hb_list_item
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	32(%rax), %rcx
	je	LBB0_14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 32(%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rax), %rcx
	cmpq	(%rax), %rcx
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r12), %r13d
	addl	$2, %r12d
	movl	%r12d, 8(%rbx)
	movl	8(%r14), %edi
	callq	_hb_list_count
	movl	%r13d, %r12d
	cmpl	%eax, %r13d
	jl	LBB0_7
LBB0_15:
	movq	(%r15), %rdx
	movl	$1, 24(%rdx)
	movq	(%r14), %rax
	movq	_HB_PASS_ENCODE@GOTPCREL(%rip), %rcx
	movl	8(%r14), %ebx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.18:
	movq	%rdx, %rdi
	callq	_hb_subtitle_copy
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_hb_list_insert
	jmp	LBB0_19
LBB0_17:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_hb_list_insert
	movq	$0, (%r15)
LBB0_19:
	movl	8(%r14), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_36
## %bb.20:
	xorl	%ebx, %ebx
	movq	_PASSTHRUSUB@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%ebx, %esi
	callq	_hb_log
	movl	8(%r14), %edi
	movq	%r13, %rsi
	callq	_hb_list_rem
	movq	%r13, %rdi
	callq	_free
	movl	8(%r14), %edi
	callq	_hb_list_count
	movl	$1, %r15d
	cmpl	%eax, %ebx
	jge	LBB0_35
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r13
	movq	24(%rax), %rax
	movq	_RENDERSUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	40(%r13), %edi
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	12(%r14), %esi
	callq	_hb_subtitle_can_pass
	leaq	L_.str(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_hb_log
	movq	(%r12), %rax
	movq	%rax, 24(%r13)
	movl	$1, %r15d
	cmpq	(%r12), %rax
	je	LBB0_30
	jmp	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	callq	_hb_subtitle_can_burn
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	24(%r13), %rax
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpq	(%r12), %rax
	jne	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	40(%r13), %edi
	movl	12(%r14), %esi
	callq	_hb_subtitle_can_pass
	testl	%eax, %eax
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	L_.str.4(%rip), %rdi
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_hb_log
	movq	_RENDERSUB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
	movq	$0, 32(%r13)
	movl	$1, %r15d
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%ebx
	movl	%ebx, 8(%r13)
	movl	8(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jl	LBB0_21
	jmp	LBB0_34
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_hb_log
	movq	(%r12), %rax
	movq	%rax, 24(%r13)
	xorl	%r15d, %r15d
	cmpq	(%r12), %rax
	je	LBB0_30
	jmp	LBB0_33
LBB0_34:
	testl	%r15d, %r15d
	je	LBB0_36
LBB0_35:
	movq	_HB_FILTER_RENDER_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hb_filter_init
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_hb_add_filter_dict
LBB0_36:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_PASS_ENCODE,8,3             ## @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ## @HB_PASS_ENCODE_2ND
	.comm	_RENDERSUB,8,3                  ## @RENDERSUB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than one subtitle burn-in requested, dropping track %d."

L_.str.1:                               ## @.str.1
	.asciz	"More than one subtitle burn-in requested.  Changing track %d to soft subtitle."

	.comm	_PASSTHRUSUB,8,3                ## @PASSTHRUSUB
L_.str.2:                               ## @.str.2
	.asciz	"Subtitle burn-in requested and input track can not be rendered.  Changing track %d to soft subtitle."

L_.str.3:                               ## @.str.3
	.asciz	"Subtitle pass-thru requested and input track is not compatible with container.  Changing track %d to burned-in subtitle."

L_.str.4:                               ## @.str.4
	.asciz	"Subtitle pass-thru requested and input track is not compatible with container.  One track already burned, dropping track %d."

	.comm	_HB_FILTER_RENDER_SUB,4,2       ## @HB_FILTER_RENDER_SUB
	.no_dead_strip	_sanitize_subtitles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sanitize_subtitles
_sanitize_subtitles:                    ; @sanitize_subtitles
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w0, [x0, #24]
	bl	_hb_interjob_get
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_37
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.2:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x9, [x8]
	cbnz	x9, LBB0_5
; %bb.4:
	str	xzr, [x8, #32]
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.6:
	mov	w21, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x9, x8
	b.ne	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_hb_list_rem
	mov	x0, x22
	bl	_free
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	cmp	w21, w0
	b.ge	LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_hb_list_item
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x10, [x0]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x22, #16]
	cbz	x9, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x8]
	cbz	x10, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8, #32]
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x8, #16]
	ldr	x8, [x8]
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w23, w21, #1
	add	w8, w21, #2
	str	w8, [x22, #8]
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	mov	x21, x23
	cmp	w23, w0
	b.lt	LBB0_9
LBB0_16:
	ldr	x2, [x20]
	mov	w8, #1
	str	w8, [x2, #24]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HB_PASS_ENCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_PASS_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HB_PASS_ENCODE_2ND@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HB_PASS_ENCODE_2ND@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w21, [x19, #8]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x21
	mov	w1, #0
	bl	_hb_list_insert
	str	xzr, [x20]
	b	LBB0_19
LBB0_18:
	mov	x0, x2
	bl	_hb_subtitle_copy
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_hb_list_insert
LBB0_19:
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_37
; %bb.20:
	mov	w20, #0
	mov	w23, #0
Lloh6:
	adrp	x25, _RENDERSUB@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RENDERSUB@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.2@PAGE
Lloh9:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh10:
	adrp	x26, _PASSTHRUSUB@GOTPAGE
Lloh11:
	ldr	x26, [x26, _PASSTHRUSUB@GOTPAGEOFF]
Lloh12:
	adrp	x27, l_.str@PAGE
Lloh13:
	add	x27, x27, l_.str@PAGEOFF
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh16:
	adrp	x28, l_.str.4@PAGE
Lloh17:
	add	x28, x28, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x27
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x1, x20
	bl	_hb_log
	ldr	w0, [x19, #8]
	mov	x1, x24
	bl	_hb_list_rem
	mov	x0, x24
	bl	_free
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	mov	w23, #1
	cmp	w20, w0
	b.ge	LBB0_36
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_hb_list_item
	mov	x24, x0
	ldr	x8, [x0, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x24, #40]
	cbz	w23, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x19, #12]
	bl	_hb_subtitle_can_pass
	cbz	w0, LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_hb_log
	ldr	x8, [x26]
	str	x8, [x24, #24]
	mov	w23, #1
	b	LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	bl	_hb_subtitle_can_burn
	cbz	w0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x24, #24]
	mov	w23, #1
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_hb_log
	mov	w23, #0
	ldr	x8, [x26]
	str	x8, [x24, #24]
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x24, #40]
	ldr	w1, [x19, #12]
	bl	_hb_subtitle_can_pass
	cbnz	w0, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x28
	cbnz	w23, LBB0_22
; %bb.33:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_hb_log
	ldr	x8, [x25]
	stp	x8, xzr, [x24, #24]
	mov	w23, #1
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w20, w20, #1
	str	w20, [x24, #8]
	ldr	w0, [x19, #8]
	bl	_hb_list_count
	cmp	w20, w0
	b.lt	LBB0_23
; %bb.35:
	cbz	w23, LBB0_37
LBB0_36:
Lloh20:
	adrp	x8, _HB_FILTER_RENDER_SUB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HB_FILTER_RENDER_SUB@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_hb_filter_init
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_hb_add_filter_dict
LBB0_37:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_PASS_ENCODE,8,3             ; @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ; @HB_PASS_ENCODE_2ND
	.comm	_RENDERSUB,8,3                  ; @RENDERSUB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than one subtitle burn-in requested, dropping track %d."

l_.str.1:                               ; @.str.1
	.asciz	"More than one subtitle burn-in requested.  Changing track %d to soft subtitle."

	.comm	_PASSTHRUSUB,8,3                ; @PASSTHRUSUB
l_.str.2:                               ; @.str.2
	.asciz	"Subtitle burn-in requested and input track can not be rendered.  Changing track %d to soft subtitle."

l_.str.3:                               ; @.str.3
	.asciz	"Subtitle pass-thru requested and input track is not compatible with container.  Changing track %d to burned-in subtitle."

l_.str.4:                               ; @.str.4
	.asciz	"Subtitle pass-thru requested and input track is not compatible with container.  One track already burned, dropping track %d."

	.comm	_HB_FILTER_RENDER_SUB,4,2       ; @HB_FILTER_RENDER_SUB
	.no_dead_strip	_sanitize_subtitles
.subsections_via_symbols
