	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ghb_vquality_default
LCPI0_0:
	.quad	0x3fe6666666666666              ## double 0.69999999999999996
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ghb_vquality_default
	.p2align	4, 0x90
_ghb_vquality_default:                  ## @ghb_vquality_default
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_settings_video_encoder_codec
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$9, %ecx
	jae	LBB0_1
## %bb.3:
	movslq	%ecx, %rax
	leaq	l_switch.table.ghb_vquality_default(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_4
LBB0_1:
	leaq	-12(%rbp), %rsi
	leaq	-8(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	leaq	-4(%rbp), %r8
	movl	%eax, %edi
	callq	_hb_video_quality_get_limits
	movss	-8(%rbp), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	subss	-12(%rbp), %xmm0
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	cmpl	$0, -4(%rbp)
	je	LBB0_4
## %bb.2:
	subss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VideoEncoder"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ghb_vquality_default
l_switch.table.ghb_vquality_default:
	.long	0x41a00000                      ## float 20
	.long	0x41a00000                      ## float 20
	.long	0x41a00000                      ## float 20
	.long	0x41a00000                      ## float 20
	.long	0x41a00000                      ## float 20
	.long	0x41a00000                      ## float 20
	.long	0x42340000                      ## float 45
	.long	0x40400000                      ## float 3
	.long	0x40400000                      ## float 3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_vquality_default           ; -- Begin function ghb_vquality_default
	.p2align	2
_ghb_vquality_default:                  ; @ghb_vquality_default
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_settings_video_encoder_codec
	sub	w8, w0, #128
	cmp	w8, #9
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, l_switch.table.ghb_vquality_default@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ghb_vquality_default@PAGEOFF
	ldr	s0, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	sub	x1, x29, #4
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	bl	_hb_video_quality_get_limits
	ldr	s0, [sp, #8]
	ldur	s1, [x29, #-4]
	fsub	s1, s0, s1
	fcvt	d1, s1
	mov	x8, #7378697629483820646
	movk	x8, #16358, lsl #48
	fmov	d2, x8
	fmul	d1, d1, d2
	fcvt	s1, d1
	ldr	w8, [sp]
	fsub	s0, s0, s1
	cmp	w8, #0
	fcsel	s0, s1, s0, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VideoEncoder"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ghb_vquality_default
l_switch.table.ghb_vquality_default:
	.long	0x41a00000                      ; float 20
	.long	0x41a00000                      ; float 20
	.long	0x41a00000                      ; float 20
	.long	0x41a00000                      ; float 20
	.long	0x41a00000                      ; float 20
	.long	0x41a00000                      ; float 20
	.long	0x42340000                      ; float 45
	.long	0x40400000                      ; float 3
	.long	0x40400000                      ; float 3

.subsections_via_symbols
