	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_validate_video             ## -- Begin function ghb_validate_video
	.p2align	4, 0x90
_ghb_validate_video:                    ## @ghb_validate_video
	.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, %r13
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	%rax, %rdi
	callq	_ghb_lookup_container_by_name
	movq	%rax, %r15
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_ghb_settings_video_encoder_codec
	movl	(%r15), %ecx
	movq	_HB_MUX_MASK_MP4@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_HB_VCODEC_THEORA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_3:
	movq	_HB_MUX_MASK_WEBM@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.4:
	movq	_HB_VCODEC_FFMPEG_VP8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.5:
	movq	_HB_VCODEC_FFMPEG_VP9@GOTPCREL(%rip), %rcx
                                        ## implicit-def: $r13
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	callq	__
	movl	%eax, %edi
	callq	_g_strdup_printf
	movq	%rax, %r13
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GTK_MESSAGE_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_ghb_message_dialog
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_g_free
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_hb_video_encoder_get_default
	movq	%rax, %rdi
	callq	_hb_video_encoder_get_short_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ghb_dict_set_string
	movq	_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_12
LBB0_11:
	movq	%rax, %r14
LBB0_12:
	movq	(%r14), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
                                        ## implicit-def: $r13
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FileFormat"

	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"VideoEncoder"

	.comm	_HB_MUX_MASK_MP4,4,2            ## @HB_MUX_MASK_MP4
	.comm	_HB_VCODEC_THEORA,8,3           ## @HB_VCODEC_THEORA
L_.str.2:                               ## @.str.2
	.asciz	"Theora is not supported in the MP4 container.\n\nYou should choose a different video codec or container.\nIf you continue, FFMPEG will be chosen for you."

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_HB_MUX_MASK_WEBM,4,2           ## @HB_MUX_MASK_WEBM
	.comm	_HB_VCODEC_FFMPEG_VP8,8,3       ## @HB_VCODEC_FFMPEG_VP8
	.comm	_HB_VCODEC_FFMPEG_VP9,8,3       ## @HB_VCODEC_FFMPEG_VP9
L_.str.3:                               ## @.str.3
	.asciz	"Only VP8 or VP9 is supported in the WebM container.\n\nYou should choose a different video codec or container.\nIf you continue, one will be chosen for you."

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_validate_video             ; -- Begin function ghb_validate_video
	.p2align	2
_ghb_validate_video:                    ; @ghb_validate_video
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_string
	bl	_ghb_lookup_container_by_name
	mov	x20, x0
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ghb_settings_video_encoder_codec
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _HB_MUX_MASK_MP4@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HB_MUX_MASK_MP4@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh10:
	adrp	x10, _HB_VCODEC_THEORA@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HB_VCODEC_THEORA@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x0, x10, #0, ne
	b.eq	LBB0_3
; %bb.1:
Lloh13:
	adrp	x9, _HB_MUX_MASK_WEBM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HB_MUX_MASK_WEBM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _HB_VCODEC_FFMPEG_VP8@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HB_VCODEC_FFMPEG_VP8@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _HB_VCODEC_FFMPEG_VP9@GOTPAGE
Lloh20:
	ldr	x10, [x10, _HB_VCODEC_FFMPEG_VP9@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	w8, #0
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
                                        ; implicit-def: $x22
	cbnz	x23, LBB0_6
	b	LBB0_8
LBB0_3:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_5:
	bl	__
	bl	_g_strdup_printf
	mov	x22, x0
Lloh26:
	adrp	x8, _TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh28:
	ldr	x23, [x8]
	cbz	x23, LBB0_8
LBB0_6:
Lloh29:
	adrp	x8, _GTK_MESSAGE_WARNING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GTK_MESSAGE_WARNING@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x24, x0
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x4, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_ghb_message_dialog
	mov	x21, x0
	mov	x0, x22
	bl	_g_free
	cbz	w21, LBB0_9
; %bb.7:
	ldr	w0, [x20]
	bl	_hb_video_encoder_get_default
	bl	_hb_video_encoder_get_short_name
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_set_string
LBB0_8:
Lloh38:
	adrp	x8, _TRUE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh40:
	adrp	x8, _FALSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FileFormat"

	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"VideoEncoder"

	.comm	_HB_MUX_MASK_MP4,4,2            ; @HB_MUX_MASK_MP4
	.comm	_HB_VCODEC_THEORA,8,3           ; @HB_VCODEC_THEORA
l_.str.2:                               ; @.str.2
	.asciz	"Theora is not supported in the MP4 container.\n\nYou should choose a different video codec or container.\nIf you continue, FFMPEG will be chosen for you."

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_HB_MUX_MASK_WEBM,4,2           ; @HB_MUX_MASK_WEBM
	.comm	_HB_VCODEC_FFMPEG_VP8,8,3       ; @HB_VCODEC_FFMPEG_VP8
	.comm	_HB_VCODEC_FFMPEG_VP9,8,3       ; @HB_VCODEC_FFMPEG_VP9
l_.str.3:                               ; @.str.3
	.asciz	"Only VP8 or VP9 is supported in the WebM container.\n\nYou should choose a different video codec or container.\nIf you continue, one will be chosen for you."

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

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

.subsections_via_symbols
