	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ghb_vquality_range
LCPI0_0:
	.long	0x42c80000                      ## float 100
LCPI0_1:
	.long	0x41200000                      ## float 10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ghb_vquality_range
	.p2align	4, 0x90
_ghb_vquality_range:                    ## @ghb_vquality_range
	.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	%r9, %r15
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_settings_video_encoder_codec
	movl	$1092616192, (%rbx)             ## imm = 0x41200000
	movl	$0, (%r15)
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	16(%rbp), %r8
	callq	_hb_video_quality_get_limits
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_settings_combo_double
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax)
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.1:
	movss	%xmm1, (%rax)
	movaps	%xmm1, %xmm0
LBB0_2:
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	imull	$-858993459, %eax, %ecx         ## imm = 0xCCCCCCCD
	addl	$429496728, %ecx                ## imm = 0x19999998
	rorl	%ecx
	movl	$2, %eax
	cmpl	$429496728, %ecx                ## imm = 0x19999998
	ja	LBB0_4
## %bb.3:
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	imull	$-858993459, %eax, %ecx         ## imm = 0xCCCCCCCD
	addl	$429496728, %ecx                ## imm = 0x19999998
	rorl	%ecx
	movl	$1, %eax
	cmpl	$429496729, %ecx                ## imm = 0x19999999
	jb	LBB0_5
LBB0_4:
	movl	%eax, (%r15)
LBB0_5:
	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	"VideoQualityGranularity"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_vquality_range             ; -- Begin function ghb_vquality_range
	.p2align	2
_ghb_vquality_range:                    ; @ghb_vquality_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x6
	mov	x19, x5
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_settings_video_encoder_codec
	mov	w8, #1092616192
	str	w8, [x22]
	str	wzr, [x19]
	add	x3, sp, #12
	mov	x1, x24
	mov	x2, x23
	mov	x4, x21
	bl	_hb_video_quality_get_limits
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_settings_combo_double
	str	s0, [x20]
	ldr	s1, [sp, #12]
	fcmp	s0, s1
	b.pl	LBB0_2
; %bb.1:
	str	s1, [x20]
	fmov	s0, s1
LBB0_2:
	mov	w8, #1120403456
	fmov	s1, w8
	fmul	s1, s0, s1
	fcvtzs	w10, s1
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	mov	w9, #39320
	movk	w9, #6553, lsl #16
	madd	w10, w10, w8, w9
	ror	w10, w10, #1
	cmp	w10, w9
	b.ls	LBB0_4
; %bb.3:
	mov	w8, #2
	b	LBB0_6
LBB0_4:
	fmov	s1, #10.00000000
	fmul	s0, s0, s1
	fcvtzs	w10, s0
	madd	w8, w10, w8, w9
	ror	w8, w8, #1
	mov	w9, #39321
	movk	w9, #6553, lsl #16
	cmp	w8, w9
	b.lo	LBB0_7
; %bb.5:
	mov	w8, #1
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VideoEncoder"

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

.subsections_via_symbols
