	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_def_set_limits           ## -- Begin function audio_def_set_limits
	.p2align	4, 0x90
_audio_def_set_limits:                  ## @audio_def_set_limits
	.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
	movl	%edx, %r13d
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_audio_settings_get_row
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_gtk_list_box_row_get_index
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_value
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ghb_array_len
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.1:
	cmpl	%eax, %ebx
	jge	LBB0_11
## %bb.2:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ghb_array_get
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_settings_audio_encoder_codec
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_settings_audio_encoder_codec
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_ghb_dict_get_double
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_hb_audio_quality_get_default
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_HB_ACODEC_AUTO_PASS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_7
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rcx, %rbx
	callq	_hb_audio_quality_get_default
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	setne	%bl
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_audio_def_settings_quality_set_sensitive
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movl	$1, %esi
	callq	_audio_def_settings_quality_set_sensitive
LBB0_6:
	movl	%r13d, %edi
	callq	_hb_audio_quality_get_default
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r13d, %ebx
	cmovel	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_find_widget
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_audio_quality_update_limits
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_audio_def_settings_quality_set_sensitive
LBB0_8:
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	movl	%r13d, %esi
	callq	_ghb_select_fallback
	movl	%eax, %r13d
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_ghb_settings_audio_samplerate_rate
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ghb_settings_mixdown_mix
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_hb_audio_bitrate_get_limits
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edi
	callq	_find_widget
	movq	%rax, %rdi
	callq	_GTK_COMBO_BOX
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	%eax, %edi
	callq	_ghb_audio_bitrate_opts_filter
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_find_widget
	movq	%rax, %rdi
	callq	_GTK_COMBO_BOX
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ghb_mix_opts_filter
	movq	%r14, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_find_widget
	movq	%rax, %rdi
	callq	_GTK_COMBO_BOX
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ghb_audio_samplerate_opts_filter
LBB0_11:
	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	"AudioList"

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

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

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

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ## @HB_INVALID_AUDIO_QUALITY
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ## @HB_ACODEC_AUTO_PASS
L_.str.4:                               ## @.str.4
	.asciz	"AudioTrackQualityX"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
L_.str.5:                               ## @.str.5
	.asciz	"AudioSamplerate"

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

L_.str.7:                               ## @.str.7
	.asciz	"AudioBitrate"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_def_set_limits           ; -- Begin function audio_def_set_limits
	.p2align	2
_audio_def_set_limits:                  ; @audio_def_set_limits
	.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	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_audio_settings_get_row
	mov	x19, x0
	bl	_gtk_list_box_row_get_index
	mov	x20, x0
	ldr	x0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_value
	mov	x22, x0
	bl	_ghb_array_len
	tbnz	w20, #31, LBB0_11
; %bb.1:
	cmp	w20, w0
	b.ge	LBB0_11
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_ghb_array_get
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_settings_audio_encoder_codec
	mov	x20, x0
	ldr	x0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_settings_audio_encoder_codec
	mov	x25, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_ghb_dict_get_double
	mov	x24, x0
	mov	x0, x20
	bl	_hb_audio_quality_get_default
Lloh8:
	adrp	x28, _HB_INVALID_AUDIO_QUALITY@GOTPAGE
Lloh9:
	ldr	x28, [x28, _HB_INVALID_AUDIO_QUALITY@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _HB_ACODEC_AUTO_PASS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HB_ACODEC_AUTO_PASS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x25
	bl	_hb_audio_quality_get_default
	mov	x26, x0
	ldr	x27, [x28]
	cmp	x0, x27
	cset	w8, ne
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x19
	bl	_GTK_WIDGET
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_audio_def_settings_quality_set_sensitive
	cmp	x26, x27
	b.ne	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_GTK_WIDGET
	mov	w1, #1
	bl	_audio_def_settings_quality_set_sensitive
LBB0_6:
	mov	x0, x20
	bl	_hb_audio_quality_get_default
	ldr	x8, [x28]
	cmp	x0, x8
	csel	w25, w25, w20, eq
	mov	x0, x19
	bl	_GTK_WIDGET
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_find_widget
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_audio_quality_update_limits
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_GTK_WIDGET
	mov	w1, #0
	bl	_audio_def_settings_quality_set_sensitive
LBB0_8:
Lloh15:
	adrp	x8, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_ghb_select_fallback
	mov	x20, x0
LBB0_10:
Lloh18:
	adrp	x21, l_.str.5@PAGE
Lloh19:
	add	x21, x21, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_ghb_settings_audio_samplerate_rate
	mov	x23, x0
Lloh20:
	adrp	x24, l_.str.6@PAGE
Lloh21:
	add	x24, x24, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x1, x24
	bl	_ghb_settings_mixdown_mix
	mov	x2, x0
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_hb_audio_bitrate_get_limits
	mov	x0, x19
	bl	_GTK_WIDGET
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_find_widget
	bl	_GTK_COMBO_BOX
	ldp	w2, w1, [sp, #8]
	bl	_ghb_audio_bitrate_opts_filter
	mov	x0, x19
	bl	_GTK_WIDGET
	mov	x1, x24
	bl	_find_widget
	bl	_GTK_COMBO_BOX
	mov	x1, x20
	bl	_ghb_mix_opts_filter
	mov	x0, x19
	bl	_GTK_WIDGET
	mov	x1, x21
	bl	_find_widget
	bl	_GTK_COMBO_BOX
	mov	x1, x20
	bl	_ghb_audio_samplerate_opts_filter
LBB0_11:
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AudioList"

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

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

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

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ; @HB_INVALID_AUDIO_QUALITY
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ; @HB_ACODEC_AUTO_PASS
l_.str.4:                               ; @.str.4
	.asciz	"AudioTrackQualityX"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
l_.str.5:                               ; @.str.5
	.asciz	"AudioSamplerate"

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

l_.str.7:                               ; @.str.7
	.asciz	"AudioBitrate"

.subsections_via_symbols
