	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_grey_combo_options         ## -- Begin function ghb_grey_combo_options
	.p2align	4, 0x90
_ghb_grey_combo_options:                ## @ghb_grey_combo_options
	.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	%rdi, %r13
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_int
	leaq	-60(%rbp), %rsi
	movl	%eax, %edi
	callq	_ghb_lookup_title
	movq	%rax, %rbx
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ghb_get_audio_info
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	%rax, %rdi
	callq	_ghb_lookup_container_by_name
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_hb_audio_encoder_get_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movl	4(%r13), %edi
	cmovneq	%r15, %r12
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_grey_builder_combo_box_item
	movl	4(%r13), %edi
	movq	8(%rbx), %rdx
	movl	(%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_grey_builder_combo_box_item
	movq	%rbx, %rdi
	callq	_hb_audio_encoder_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	andl	(%r14), %eax
	movq	8(%rbx), %rdx
	movq	%r15, %r12
	movq	_HB_ACODEC_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_5:
	xorl	%edi, %edi
	callq	_hb_video_encoder_get_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r12
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r13), %edi
	movq	8(%rbx), %rdx
	movl	(%rax), %ecx
	movq	%r15, %rsi
	callq	_grey_builder_combo_box_item
	movq	%rbx, %rdi
	callq	_hb_video_encoder_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	movq	%r12, %rax
	andl	(%r14), %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_grey_passthru
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ghb_settings_audio_encoder_codec
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movl	(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %ebx
	jmp	LBB0_13
LBB0_11:
	movl	$-1, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_13:
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_ghb_select_fallback
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_ghb_get_copy_mask
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ghb_select_audio_codec
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_grey_mix_opts
	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	"title"

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

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

	.comm	_HB_ACODEC_NONE,8,3             ## @HB_ACODEC_NONE
L_.str.3:                               ## @.str.3
	.asciz	"AudioEncoder"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_grey_combo_options         ; -- Begin function ghb_grey_combo_options
	.p2align	2
_ghb_grey_combo_options:                ; @ghb_grey_combo_options
	.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, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_int
	add	x1, sp, #12
	bl	_ghb_lookup_title
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_int
	mov	x1, x0
	mov	x0, x20
	bl	_ghb_get_audio_info
	mov	x21, x0
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_dict_get_string
	bl	_ghb_lookup_container_by_name
	mov	x20, x0
	mov	x0, #0
	bl	_hb_audio_encoder_get_next
Lloh6:
	adrp	x25, _TRUE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _FALSE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh10:
	adrp	x27, _HB_ACODEC_NONE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _HB_ACODEC_NONE@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh14:
	adrp	x24, l_.str.4@PAGE
Lloh15:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x22]
	and	w8, w9, w8
	ldr	x2, [x22, #8]
	ldr	x9, [x27]
	cmp	x2, x9
	ccmp	w8, #0, #0, ne
	ldr	w0, [x19, #4]
	csel	x28, x26, x25, ne
	ldr	w3, [x28]
	mov	x1, x23
	bl	_grey_builder_combo_box_item
	ldr	w0, [x19, #4]
	ldr	x2, [x22, #8]
	ldr	w3, [x28]
	mov	x1, x24
	bl	_grey_builder_combo_box_item
	mov	x0, x22
	bl	_hb_audio_encoder_get_next
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_3:
	mov	x0, #0
	bl	_hb_video_encoder_get_next
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh16:
	adrp	x23, l_.str.5@PAGE
Lloh17:
	add	x23, x23, l_.str.5@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x22]
	ldr	w0, [x19, #4]
	ldr	x2, [x22, #8]
	tst	w9, w8
	csel	x8, x25, x26, eq
	ldr	w3, [x8]
	mov	x1, x23
	bl	_grey_builder_combo_box_item
	mov	x0, x22
	bl	_hb_video_encoder_get_next
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_grey_passthru
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ghb_settings_audio_encoder_codec
	mov	x23, x0
	cbz	x21, LBB0_8
; %bb.7:
	ldp	w21, w22, [x21]
	b	LBB0_9
LBB0_8:
	mov	w22, #-1
LBB0_9:
	ldr	w0, [x19]
	mov	x1, x23
	bl	_ghb_select_fallback
	mov	x24, x0
	ldr	w0, [x19]
	bl	_ghb_get_copy_mask
	mov	x4, x0
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_ghb_select_audio_codec
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_grey_mix_opts
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

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

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

	.comm	_HB_ACODEC_NONE,8,3             ; @HB_ACODEC_NONE
l_.str.3:                               ; @.str.3
	.asciz	"AudioEncoder"

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

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

.subsections_via_symbols
