	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function sample_scale
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sample_scale:                          ## @sample_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	cvtsi2sd	%rax, %xmm1
	mulsd	%xmm1, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	roundsd	$9, %xmm0, %xmm2
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm2
	jbe	LBB0_3
## %bb.1:
	ucomisd	%xmm1, %xmm2
	movapd	%xmm2, %xmm0
	jbe	LBB0_3
## %bb.2:
	movapd	%xmm1, %xmm0
LBB0_3:
	cvttsd2si	%xmm0, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sample_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample_scale
_sample_scale:                          ; @sample_scale
	.cfi_startproc
; %bb.0:
	ucvtf	d1, w0
	fmov	d2, #0.50000000
	fmadd	d0, d0, d1, d2
	frintm	d2, d0
	movi	d0, #0000000000000000
	fcmp	d2, #0.0
	b.le	LBB0_3
; %bb.1:
	fcmp	d2, d1
	fmov	d0, d2
	b.le	LBB0_3
; %bb.2:
	fmov	d0, d1
LBB0_3:
	fcvtzu	w0, d0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sample_scale
.subsections_via_symbols
