	.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_int32
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x41f0000000000000              ## double 4294967296
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_to_int32
	.p2align	4, 0x90
_to_int32:                              ## @to_int32
	.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_7
## %bb.1:
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_is_finite
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_5
## %bb.4:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_fmod
	jmp	LBB0_6
LBB0_2:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_6
LBB0_5:
	xorpd	LCPI0_0(%rip), %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_fmod
	xorpd	LCPI0_0(%rip), %xmm0
LBB0_6:
	cvttsd2si	%xmm0, %rax
	movq	%rax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	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_int32                       ; -- Begin function to_int32
	.p2align	2
_to_int32:                              ; @to_int32
	.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_7
; %bb.1:
	ldr	d0, [sp, #8]
	bl	_is_finite
	cbz	x0, LBB0_4
; %bb.2:
	ldr	d0, [sp, #8]
	fcmp	d0, #0.0
	b.le	LBB0_5
; %bb.3:
	mov	x8, #4751297606875873280
	fmov	d1, x8
	bl	_fmod
	b	LBB0_6
LBB0_4:
	movi	d0, #0000000000000000
	b	LBB0_6
LBB0_5:
	fneg	d0, d0
	mov	x8, #4751297606875873280
	fmov	d1, x8
	bl	_fmod
	fneg	d0, d0
LBB0_6:
	fcvtzs	x8, d0
	str	x8, [x19]
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_7:
	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
