	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coerceToInt
_coerceToInt:                           ## @coerceToInt
	.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	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_PGBT_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	16(%rdi), %rax
LBB0_2:
	movq	%rax, (%rbx)
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_PGBT_DOUBLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	8(%rdi), %edi
	callq	_rint
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_fprintf
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_valueTypeName
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_FLOAT8_FITS_IN_INT64
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cvttsd2si	-24(%rbp), %rax         ## 8-byte Folded Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PGBT_INT,8,3                   ## @PGBT_INT
	.comm	_PGBT_DOUBLE,8,3                ## @PGBT_DOUBLE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"double to int overflow for %f\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot coerce %s to int\n"

	.no_dead_strip	_coerceToInt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coerceToInt
_coerceToInt:                           ; @coerceToInt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PGBT_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGBT_INT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #16]
LBB0_2:
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x9, _PGBT_DOUBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGBT_DOUBLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x0, #8]
	bl	_rint
	fmov	d8, d0
	bl	_isnan
	cbz	x0, LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	d8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	bl	_valueTypeName
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_7:
	bl	_fprintf
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	fmov	d0, d8
	bl	_FLOAT8_FITS_IN_INT64
	cbz	w0, LBB0_5
; %bb.10:
	fcvtzs	x8, d8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PGBT_INT,8,3                   ; @PGBT_INT
	.comm	_PGBT_DOUBLE,8,3                ; @PGBT_DOUBLE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"double to int overflow for %f\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot coerce %s to int\n"

	.no_dead_strip	_coerceToInt
.subsections_via_symbols
