	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_tune_opts_set
_video_tune_opts_set:                   ## @video_tune_opts_set
	.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, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	4(%rbx), %edi
	callq	_ghb_get_video_encoder
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_hb_video_encoder_get_tunes
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	$-1, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r12
	cmpq	$0, 8(%r15,%rax,8)
	movq	%r12, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r12d, %r12d
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_GHB_WIDGET
	xorl	%r13d, %r13d
	testq	%r12, %r12
	setne	%r13b
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_gtk_widget_set_visible
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_gtk_widget_set_visible
	testq	%r12, %r12
	je	LBB0_13
## %bb.6:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_GTK_COMBO_BOX
	movq	%rax, %rdi
	callq	_gtk_combo_box_get_model
	movl	%eax, %edi
	callq	_GTK_LIST_STORE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gtk_list_store_clear
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gtk_list_store_append
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %r10
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movl	$1, %r8d
	pushq	$-1
	pushq	$0
	pushq	$3
	pushq	%r10
	pushq	$2
	callq	_gtk_list_store_set
	addq	$48, %rsp
	negq	%r12
	movl	$1, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_gtk_list_store_append
	movq	-8(%r15,%r13,8), %rcx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	pushq	$-1
	pushq	%r13
	pushq	$3
	pushq	%rcx
	pushq	$2
	callq	_gtk_list_store_set
	addq	$48, %rsp
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%r13), %rax
	incq	%rax
	incq	%r13
	cmpq	$1, %rax
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HB_VCODEC_X264_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%r15,%r13,8), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_HB_VCODEC_X265_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	testl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%r15,%r13,8), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$24, %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	"VideoEncoder"

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

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

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

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"none"

	.comm	_HB_VCODEC_X264_MASK,4,2        ## @HB_VCODEC_X264_MASK
L_.str.5:                               ## @.str.5
	.asciz	"fastdecode"

	.comm	_HB_VCODEC_X265_MASK,4,2        ## @HB_VCODEC_X265_MASK
L_.str.6:                               ## @.str.6
	.asciz	"zerolatency"

	.no_dead_strip	_video_tune_opts_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_tune_opts_set
_video_tune_opts_set:                   ; @video_tune_opts_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_ghb_get_video_encoder
	mov	x19, x0
	bl	_hb_video_encoder_get_tunes
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, x8, lsl #3]
	add	x8, x8, #1
	cbnz	x9, LBB0_3
; %bb.4:
	sub	x24, x8, #1
	b	LBB0_6
LBB0_5:
	mov	x24, #0
LBB0_6:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GHB_WIDGET
	cmp	x24, #0
	cset	w23, ne
	mov	x1, x23
	bl	_gtk_widget_set_visible
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	mov	x1, x23
	bl	_gtk_widget_set_visible
	cbz	x24, LBB0_14
; %bb.7:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_GHB_WIDGET
	bl	_GTK_COMBO_BOX
	bl	_gtk_combo_box_get_model
	bl	_GTK_LIST_STORE
	mov	x21, x0
	bl	_gtk_list_store_clear
	add	x1, sp, #28
	mov	x0, x21
	bl	_gtk_list_store_append
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x3, x0
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	w8, #-1
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	mov	w27, #3
	str	w27, [sp]
Lloh11:
	adrp	x7, l_.str.4@PAGE
Lloh12:
	add	x7, x7, l_.str.4@PAGEOFF
	add	x1, sp, #28
	mov	x0, x21
	mov	w2, #0
	mov	w4, #1
	mov	w6, #2
	bl	_gtk_list_store_set
	mov	x28, #0
Lloh13:
	adrp	x25, _HB_VCODEC_X264_MASK@GOTPAGE
Lloh14:
	ldr	x25, [x25, _HB_VCODEC_X264_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x22, _HB_VCODEC_X265_MASK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _HB_VCODEC_X265_MASK@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str.5@PAGE
Lloh18:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #28
	mov	x0, x21
	bl	_gtk_list_store_append
	ldr	x3, [x20, x28, lsl #3]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	add	x8, x28, #1
	mov	w9, #-1
	str	w9, [sp, #16]
	str	x8, [sp, #8]
	add	x1, sp, #28
	str	w27, [sp]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #1
	mov	w6, #2
	mov	x7, x3
	bl	_gtk_list_store_set
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x28, #1
	cmp	x24, x28
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x25]
	tst	w26, w19
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20, x28, lsl #3]
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x22]
	orr	w8, w8, w26
	tst	w8, w19
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20, x28, lsl #3]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VideoEncoder"

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

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

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

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"none"

	.comm	_HB_VCODEC_X264_MASK,4,2        ; @HB_VCODEC_X264_MASK
l_.str.5:                               ; @.str.5
	.asciz	"fastdecode"

	.comm	_HB_VCODEC_X265_MASK,4,2        ; @HB_VCODEC_X265_MASK
l_.str.6:                               ; @.str.6
	.asciz	"zerolatency"

	.no_dead_strip	_video_tune_opts_set
.subsections_via_symbols
