	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_settings
_validate_settings:                     ## @validate_settings
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_WINDOW
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ghb_lookup_title
	movq	_FALSE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_ghb_array_len
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_ghb_array_get
	movq	%rax, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ghb_dict_get
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ghb_dict_get_string
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_g_strdup_printf
	movq	%rax, %r12
	movq	_GTK_MESSAGE_QUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_ghb_message_dialog
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_g_free
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_6:
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_g_path_get_dirname
	movq	%rax, %r12
	movq	_G_FILE_TEST_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_file_test
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	_R_OK@GOTPCREL(%rip), %rax
	movq	_W_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_access
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.7(%rip), %rdi
LBB0_8:
	callq	__
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_g_strdup_printf
	movq	%rax, %rbx
	movq	_GTK_MESSAGE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_ghb_message_dialog
	movq	%rbx, %rdi
	callq	_g_free
	movq	%r12, %rdi
	callq	_g_free
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_20:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, %rdi
	callq	_g_free
	movq	_G_FILE_TEST_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_g_file_test
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_g_strdup_printf
	movq	%rax, %r12
	movq	_GTK_MESSAGE_QUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %r15
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_ghb_message_dialog
	movq	%rbx, %r14
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_g_free
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.14:
	movq	%r14, %rdi
	callq	_g_unlink
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ghb_validate_audio
	testl	%eax, %eax
	je	LBB0_9
## %bb.16:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ghb_validate_subtitles
	testl	%eax, %eax
	je	LBB0_9
## %bb.17:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ghb_validate_video
	testl	%eax, %eax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	je	LBB0_20
## %bb.18:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ghb_validate_filters
	testl	%eax, %eax
	je	LBB0_9
## %bb.19:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_window"

L_.str.1:                               ## @.str.1
	.asciz	"title"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"Destination: %s\n\nAnother queued job has specified the same destination.\nDo you want to overwrite?"

	.comm	_GTK_MESSAGE_QUESTION,4,2       ## @GTK_MESSAGE_QUESTION
L_.str.5:                               ## @.str.5
	.asciz	"Cancel"

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

	.comm	_G_FILE_TEST_IS_DIR,4,2         ## @G_FILE_TEST_IS_DIR
L_.str.7:                               ## @.str.7
	.asciz	"Destination: %s\n\nThis is not a valid directory."

	.comm	_GTK_MESSAGE_ERROR,4,2          ## @GTK_MESSAGE_ERROR
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_W_OK,4,2                       ## @W_OK
L_.str.8:                               ## @.str.8
	.asciz	"Destination: %s\n\nCan not read or write the directory."

	.comm	_G_FILE_TEST_EXISTS,4,2         ## @G_FILE_TEST_EXISTS
L_.str.9:                               ## @.str.9
	.asciz	"Destination: %s\n\nFile already exists.\nDo you want to overwrite?"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_validate_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_settings
_validate_settings:                     ; @validate_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_WINDOW
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	add	x1, sp, #8
	bl	_ghb_lookup_title
	cbz	x0, LBB0_11
; %bb.1:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_string
	mov	x21, x0
	ldr	w0, [x22]
	bl	_ghb_array_len
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x23, x0
	mov	x24, #0
Lloh6:
	adrp	x25, l_.str.3@PAGE
Lloh7:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh8:
	adrp	x26, l_.str.2@PAGE
Lloh9:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x24
	bl	_ghb_array_get
	mov	x1, x25
	bl	_ghb_dict_get
	mov	x1, x26
	bl	_ghb_dict_get_string
	mov	x1, x0
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_g_strdup_printf
	mov	x22, x0
Lloh12:
	adrp	x8, _GTK_MESSAGE_QUESTION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GTK_MESSAGE_QUESTION@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x24, x0
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x4, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_ghb_message_dialog
	mov	x23, x0
	mov	x0, x22
	bl	_g_free
	cbz	w23, LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_g_path_get_dirname
	mov	x22, x0
Lloh19:
	adrp	x8, _G_FILE_TEST_IS_DIR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _G_FILE_TEST_IS_DIR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_g_file_test
	cbz	x0, LBB0_9
; %bb.7:
Lloh22:
	adrp	x8, _R_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _W_OK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _W_OK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_g_access
	cbz	x0, LBB0_13
; %bb.8:
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_10:
	bl	__
	mov	x1, x22
	bl	_g_strdup_printf
	mov	x20, x0
Lloh32:
	adrp	x8, _GTK_MESSAGE_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GTK_MESSAGE_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x4, #0
	bl	_ghb_message_dialog
	mov	x0, x20
	bl	_g_free
	mov	x0, x22
	bl	_g_free
LBB0_11:
Lloh37:
	adrp	x21, _FALSE@GOTPAGE
Lloh38:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x21]
	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
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x0, x22
	bl	_g_free
Lloh39:
	adrp	x8, _G_FILE_TEST_EXISTS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _G_FILE_TEST_EXISTS@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_g_file_test
	cbz	x0, LBB0_16
; %bb.14:
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_g_strdup_printf
	mov	x22, x0
Lloh44:
	adrp	x8, _GTK_MESSAGE_QUESTION@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GTK_MESSAGE_QUESTION@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
Lloh47:
	adrp	x0, l_.str.5@PAGE
Lloh48:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x24, x0
Lloh49:
	adrp	x0, l_.str.6@PAGE
Lloh50:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x4, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_ghb_message_dialog
	mov	x23, x0
	mov	x0, x22
	bl	_g_free
	cbz	w23, LBB0_11
; %bb.15:
	mov	x0, x21
	bl	_g_unlink
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_ghb_validate_audio
	cbz	w0, LBB0_11
; %bb.17:
	mov	x0, x20
	mov	x1, x19
	bl	_ghb_validate_subtitles
	cbz	w0, LBB0_11
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_ghb_validate_video
Lloh51:
	adrp	x21, _FALSE@GOTPAGE
Lloh52:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	bl	_ghb_validate_filters
Lloh53:
	adrp	x8, _TRUE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x21, x21, x8, eq
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_window"

l_.str.1:                               ; @.str.1
	.asciz	"title"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"Destination: %s\n\nAnother queued job has specified the same destination.\nDo you want to overwrite?"

	.comm	_GTK_MESSAGE_QUESTION,4,2       ; @GTK_MESSAGE_QUESTION
l_.str.5:                               ; @.str.5
	.asciz	"Cancel"

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

	.comm	_G_FILE_TEST_IS_DIR,4,2         ; @G_FILE_TEST_IS_DIR
l_.str.7:                               ; @.str.7
	.asciz	"Destination: %s\n\nThis is not a valid directory."

	.comm	_GTK_MESSAGE_ERROR,4,2          ; @GTK_MESSAGE_ERROR
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_W_OK,4,2                       ; @W_OK
l_.str.8:                               ; @.str.8
	.asciz	"Destination: %s\n\nCan not read or write the directory."

	.comm	_G_FILE_TEST_EXISTS,4,2         ; @G_FILE_TEST_EXISTS
l_.str.9:                               ; @.str.9
	.asciz	"Destination: %s\n\nFile already exists.\nDo you want to overwrite?"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_validate_settings
.subsections_via_symbols
