	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function digitize
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_digitize:                              ## @digitize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ecx
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	jae	LBB0_3
## %bb.1:
	ucomisd	LCPI0_0(%rip), %xmm0
	movapd	%xmm0, %xmm1
	jb	LBB0_3
## %bb.2:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_3:
	movl	$-1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	notl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rbx, %xmm0
	mulsd	%xmm1, %xmm0
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	addsd	LCPI0_1(%rip), %xmm0
LBB0_5:
	callq	_floor
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_digitize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digitize
_digitize:                              ; @digitize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	movi	d1, #0000000000000000
	fmov	d2, #1.00000000
	fcmp	d0, d2
	fcsel	d2, d0, d2, lt
	fcmp	d0, #0.0
	mov	w8, #-1
	lsl	w8, w8, w0
	mvn	w19, w8
	ucvtf	d0, w19
	fcsel	d1, d1, d2, ls
	fmul	d0, d1, d0
	fmov	d1, #0.50000000
	fadd	d1, d0, d1
	cmp	w1, #0
	fcsel	d0, d0, d1, eq
	bl	_floor
	udiv	w8, w0, w19
	ucvtf	d0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_digitize
.subsections_via_symbols
