	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function to_integer
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_to_integer
	.p2align	4, 0x90
_to_integer:                            ## @to_integer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	leaq	-24(%rbp), %rdx
	callq	_to_number
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_isnan
	xorpd	%xmm0, %xmm0
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	roundsd	$9, %xmm1, %xmm2
	movapd	LCPI0_0(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0]
	movapd	%xmm1, %xmm0
	xorpd	%xmm3, %xmm0
	roundsd	$9, %xmm0, %xmm4
	xorpd	%xmm3, %xmm4
	cmpnlesd	%xmm1, %xmm0
	andpd	%xmm0, %xmm4
	andnpd	%xmm2, %xmm0
	orpd	%xmm4, %xmm0
LBB0_3:
	movsd	%xmm0, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_to_integer                     ; -- Begin function to_integer
	.p2align	2
_to_integer:                            ; @to_integer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	add	x2, sp, #8
	bl	_to_number
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	d0, [sp, #8]
	bl	_isnan
	movi	d0, #0000000000000000
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	d0, [sp, #8]
	frintm	d1, d0
	fneg	d2, d0
	frintm	d2, d2
	fneg	d2, d2
	fcmp	d0, #0.0
	fcsel	d0, d2, d1, lt
LBB0_3:
	str	d0, [x19]
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
