	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function numericvar_to_int64
_numericvar_to_int64:                   ## @numericvar_to_int64
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_init_var
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_set_var_from_var
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_round_var
	movq	%r15, %rdi
	callq	_strip_var
	movslq	-80(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	-76(%rbp), %ebx
	testl	%ebx, %ebx
	setns	%al
	leal	1(%rbx), %r14d
	cmpl	%r14d, %r15d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movq	-72(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12
	subl	(%r12), %r13d
	movq	_NUMERIC_NEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.3:
	movq	_NBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	callq	_pg_mul_s64_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	leaq	-80(%rbp), %rdi
	callq	_free_var
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_1:
	movl	$0, (%r14)
	leaq	-80(%rbp), %rdi
	callq	_free_var
	jmp	LBB0_15
LBB0_4:
	movl	%r14d, %eax
	movl	$2, %r14d
	subq	%rax, %r14
	movl	$1, %r13d
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r13
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	movl	(%r12,%r13,4), %esi
	movq	%rbx, %rdx
	callq	_pg_sub_s64_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r13), %rax
	cmpq	$1, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	movq	_NBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_pg_mul_s64_overflow
	movl	%eax, %edi
	callq	_unlikely
	incq	%r13
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_9
LBB0_10:
	leaq	-80(%rbp), %rdi
	callq	_free_var
	movl	-44(%rbp), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:
	movq	_PG_INT64_MIN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_16
## %bb.13:
	xorl	%eax, %eax
	subl	-44(%rbp), %eax
LBB0_14:
	movl	%eax, (%rcx)
LBB0_15:
	movl	$1, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_NEG,8,3                ## @NUMERIC_NEG
	.comm	_NBASE,4,2                      ## @NBASE
	.comm	_PG_INT64_MIN,4,2               ## @PG_INT64_MIN
	.no_dead_strip	_numericvar_to_int64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function numericvar_to_int64
_numericvar_to_int64:                   ; @numericvar_to_int64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	bl	_init_var
	mov	x1, sp
	mov	x0, x20
	bl	_set_var_from_var
	mov	x0, sp
	mov	w1, #0
	bl	_round_var
	mov	x0, sp
	bl	_strip_var
	ldrsw	x20, [sp]
	cbz	w20, LBB0_4
; %bb.1:
	ldr	w23, [sp, #4]
	cmp	w23, #0
	add	w25, w23, #1
	ccmp	w20, w25, #0, ge
	cset	w0, le
	bl	_Assert
Lloh0:
	adrp	x8, _NUMERIC_NEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMERIC_NEG@GOTPAGEOFF]
	ldp	x21, x26, [sp, #8]
Lloh2:
	ldr	x22, [x8]
	ldr	w8, [x26]
	neg	w0, w8
	str	w0, [sp, #28]
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.2:
Lloh3:
	adrp	x23, _NBASE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NBASE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #28
	bl	_pg_mul_s64_overflow
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, sp
	bl	_free_var
	mov	w0, #0
	b	LBB0_16
LBB0_4:
	str	wzr, [x19]
	mov	x0, sp
	bl	_free_var
	b	LBB0_15
LBB0_5:
	mov	x24, #0
	sub	x25, x25, #2
	add	x26, x26, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x24, #1
	cmp	x8, x20
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #28]
	ldr	w1, [x26, x24, lsl #2]
	add	x2, sp, #28
	bl	_pg_sub_s64_overflow
	bl	_unlikely
	cbnz	x0, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x25, x24
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #28]
	ldr	w1, [x23]
	add	x2, sp, #28
	bl	_pg_mul_s64_overflow
	bl	_unlikely
	add	x24, x24, #1
	cbz	x0, LBB0_6
	b	LBB0_3
LBB0_10:
	mov	x0, sp
	bl	_free_var
	ldr	w8, [sp, #28]
	cmp	x21, x22
	b.eq	LBB0_14
; %bb.11:
Lloh5:
	adrp	x9, _PG_INT64_MIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PG_INT64_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
	ldr	w8, [sp, #28]
	neg	w8, w8
LBB0_14:
	str	w8, [x19]
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_NEG,8,3                ; @NUMERIC_NEG
	.comm	_NBASE,4,2                      ; @NBASE
	.comm	_PG_INT64_MIN,4,2               ; @PG_INT64_MIN
	.no_dead_strip	_numericvar_to_int64
.subsections_via_symbols
