	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_value_neg                      ## -- Begin function value_neg
	.p2align	4, 0x90
_value_neg:                             ## @value_neg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_VALUE_TYPE
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_COERCE_REF
	movq	%rbx, %rdi
	callq	_COERCE_ENUM
	movq	%rbx, %rdi
	callq	_VALUE_TYPE
	movq	%rax, %rdi
	callq	_check_typedef
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_FLT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	callq	_value_as_double
	negl	%eax
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_value_from_double              ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_BOOL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_TYPE_LENGTH
	movq	%rax, %r15
	movq	_builtin_type_int@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_TYPE_LENGTH
	cmpq	%rax, %r15
	jge	LBB0_5
## %bb.4:
	movq	(%r12), %r14
LBB0_5:
	movq	%rbx, %rdi
	callq	_value_as_long
	negl	%eax
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_value_from_longest             ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_error
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_FLT,8,3              ## @TYPE_CODE_FLT
	.comm	_TYPE_CODE_INT,8,3              ## @TYPE_CODE_INT
	.comm	_TYPE_CODE_BOOL,8,3             ## @TYPE_CODE_BOOL
	.comm	_builtin_type_int,8,3           ## @builtin_type_int
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Argument to negate operation not a number."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_value_neg                      ; -- Begin function value_neg
	.p2align	2
_value_neg:                             ; @value_neg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_VALUE_TYPE
	mov	x20, x0
	mov	x0, x19
	bl	_COERCE_REF
	mov	x0, x19
	bl	_COERCE_ENUM
	mov	x0, x19
	bl	_VALUE_TYPE
	bl	_check_typedef
	mov	x21, x0
	bl	_TYPE_CODE
Lloh0:
	adrp	x8, _TYPE_CODE_FLT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_FLT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_value_as_double
	neg	w1, w0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_value_from_double
LBB0_2:
	mov	x0, x21
	bl	_TYPE_CODE
Lloh3:
	adrp	x8, _TYPE_CODE_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPE_CODE_INT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_TYPE_CODE
Lloh6:
	adrp	x8, _TYPE_CODE_BOOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_CODE_BOOL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_TYPE_LENGTH
	mov	x21, x0
Lloh9:
	adrp	x22, _builtin_type_int@GOTPAGE
Lloh10:
	ldr	x22, [x22, _builtin_type_int@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_TYPE_LENGTH
	ldr	x8, [x22]
	cmp	x21, x0
	csel	x20, x8, x20, lt
	mov	x0, x19
	bl	_value_as_long
	neg	w1, w0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_value_from_longest
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_FLT,8,3              ; @TYPE_CODE_FLT
	.comm	_TYPE_CODE_INT,8,3              ; @TYPE_CODE_INT
	.comm	_TYPE_CODE_BOOL,8,3             ; @TYPE_CODE_BOOL
	.comm	_builtin_type_int,8,3           ; @builtin_type_int
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Argument to negate operation not a number."

.subsections_via_symbols
