	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_validate_subtitles         ## -- Begin function ghb_validate_subtitles
	.p2align	4, 0x90
_ghb_validate_subtitles:                ## @ghb_validate_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_int
	leaq	-80(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ghb_lookup_title
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %rdi
	callq	_ghb_lookup_container_by_name
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ghb_get_job_subtitle_list
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ghb_array_len
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_19
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ghb_array_get
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, %r12
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_ghb_dict_get
	movq	%rax, %r14
	cmpq	$-1, %r12
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_ghb_dict_get_bool
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_HB_MUX_MASK_WEBM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	_G_FILE_TEST_IS_REGULAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_g_file_test
	testl	%eax, %eax
	jne	LBB0_3
## %bb.12:
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_g_message
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_15
LBB0_17:
	leaq	L_.str.9(%rip), %rdi
LBB0_15:
	callq	__
	movl	%eax, %edi
	callq	_g_strdup_printf
	movq	%rax, %r12
	movq	_GTK_MESSAGE_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_ghb_message_dialog
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_g_free
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %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	"title"

L_.str.1:                               ## @.str.1
	.asciz	"No title found.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"FileFormat"

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Only one subtitle may be burned into the video.\n\nYou should change your subtitle selections.\nIf you continue, some subtitles will be lost."

	.comm	_GTK_MESSAGE_WARNING,4,2        ## @GTK_MESSAGE_WARNING
L_.str.7:                               ## @.str.7
	.asciz	"Cancel"

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

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_HB_MUX_MASK_WEBM,4,2           ## @HB_MUX_MASK_WEBM
L_.str.9:                               ## @.str.9
	.asciz	"WebM in HandBrake only supports burned subtitles.\n\nYou should change your subtitle selections.\nIf you continue, some subtitles will be lost."

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

	.comm	_G_FILE_TEST_IS_REGULAR,4,2     ## @G_FILE_TEST_IS_REGULAR
L_.str.11:                              ## @.str.11
	.asciz	"SRT file does not exist or not a regular file.\n\nYou should choose a valid file.\nIf you continue, this subtitle will be ignored."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_validate_subtitles         ; -- Begin function ghb_validate_subtitles
	.p2align	2
_ghb_validate_subtitles:                ; @ghb_validate_subtitles
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_int
	add	x1, sp, #8
	bl	_ghb_lookup_title
	cbz	x0, LBB0_13
; %bb.1:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get_string
	bl	_ghb_lookup_container_by_name
	mov	x20, x0
	mov	x0, x21
	bl	_ghb_get_job_subtitle_list
	mov	x21, x0
	bl	_ghb_array_len
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x22, x0
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x23, #0
Lloh9:
	adrp	x24, l_.str.3@PAGE
Lloh10:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh11:
	adrp	x25, l_.str.4@PAGE
Lloh12:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x22, x23
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ghb_array_get
	mov	x19, x0
	mov	x1, x24
	bl	_ghb_dict_get_int
	mov	x26, x0
	mov	x0, x19
	mov	x1, x25
	bl	_ghb_dict_get
	mov	x28, x0
	cmn	x26, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ghb_dict_get_bool
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w27, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _HB_MUX_MASK_WEBM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HB_MUX_MASK_WEBM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x28, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
Lloh21:
	adrp	x1, l_.str.10@PAGE
Lloh22:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ghb_dict_get_string
Lloh23:
	adrp	x8, _G_FILE_TEST_IS_REGULAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _G_FILE_TEST_IS_REGULAR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_g_file_test
	cbnz	w0, LBB0_3
; %bb.12:
Lloh26:
	adrp	x0, l_.str.11@PAGE
Lloh27:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_17
LBB0_13:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_g_message
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh36:
	adrp	x0, l_.str.9@PAGE
Lloh37:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_17:
	bl	__
	bl	_g_strdup_printf
	mov	x19, x0
Lloh38:
	adrp	x8, _GTK_MESSAGE_WARNING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GTK_MESSAGE_WARNING@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x21, x0
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	mov	x4, x0
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_ghb_message_dialog
	mov	x20, x0
	mov	x0, x19
	bl	_g_free
	cmp	w20, #0
Lloh45:
	adrp	x8, _TRUE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh47:
	adrp	x9, _FALSE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_18:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

l_.str.1:                               ; @.str.1
	.asciz	"No title found.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"FileFormat"

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Only one subtitle may be burned into the video.\n\nYou should change your subtitle selections.\nIf you continue, some subtitles will be lost."

	.comm	_GTK_MESSAGE_WARNING,4,2        ; @GTK_MESSAGE_WARNING
l_.str.7:                               ; @.str.7
	.asciz	"Cancel"

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

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_HB_MUX_MASK_WEBM,4,2           ; @HB_MUX_MASK_WEBM
l_.str.9:                               ; @.str.9
	.asciz	"WebM in HandBrake only supports burned subtitles.\n\nYou should change your subtitle selections.\nIf you continue, some subtitles will be lost."

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

	.comm	_G_FILE_TEST_IS_REGULAR,4,2     ; @G_FILE_TEST_IS_REGULAR
l_.str.11:                              ; @.str.11
	.asciz	"SRT file does not exist or not a regular file.\n\nYou should choose a valid file.\nIf you continue, this subtitle will be ignored."

.subsections_via_symbols
