	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cast_into_complex
_cast_into_complex:                     ## @cast_into_complex
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_TYPE_TARGET_TYPE
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_VALUE_TYPE
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	%rax, %r14
	movq	_TYPE_CODE_COMPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_VALUE_TYPE
	movq	%rax, %rdi
	cmpq	%rbx, %r14
	jne	LBB0_2
## %bb.1:
	callq	_TYPE_TARGET_TYPE
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_allocate_value
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_allocate_value
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_VALUE_CONTENTS_RAW
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_VALUE_CONTENTS
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_TYPE_LENGTH
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_VALUE_CONTENTS_RAW
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_VALUE_CONTENTS
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_TYPE_LENGTH
	addq	%rax, %rbx
	movq	%r12, %rdi
	callq	_TYPE_LENGTH
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_2:
	callq	_TYPE_CODE
	movq	_TYPE_CODE_FLT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_VALUE_TYPE
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movq	_not_lval@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_value_zero
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_value_literal_complex          ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_COMPLEX,8,3          ## @TYPE_CODE_COMPLEX
	.comm	_TYPE_CODE_FLT,8,3              ## @TYPE_CODE_FLT
	.comm	_TYPE_CODE_INT,8,3              ## @TYPE_CODE_INT
	.comm	_not_lval,4,2                   ## @not_lval
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot cast non-number to complex"

	.no_dead_strip	_cast_into_complex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cast_into_complex
_cast_into_complex:                     ; @cast_into_complex
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	bl	_TYPE_TARGET_TYPE
	mov	x21, x0
	mov	x0, x20
	bl	_VALUE_TYPE
	bl	_TYPE_CODE
	mov	x22, x0
Lloh0:
	adrp	x8, _TYPE_CODE_COMPLEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_COMPLEX@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_VALUE_TYPE
	cmp	x22, x23
	b.ne	LBB0_2
; %bb.1:
	bl	_TYPE_TARGET_TYPE
	mov	x21, x0
	bl	_allocate_value
	mov	x22, x0
	mov	x0, x21
	bl	_allocate_value
	mov	x23, x0
	mov	x0, x22
	bl	_VALUE_CONTENTS_RAW
	mov	x24, x0
	mov	x0, x20
	bl	_VALUE_CONTENTS
	mov	x25, x0
	mov	x0, x21
	bl	_TYPE_LENGTH
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	mov	x0, x23
	bl	_VALUE_CONTENTS_RAW
	mov	x24, x0
	mov	x0, x20
	bl	_VALUE_CONTENTS
	mov	x20, x0
	mov	x0, x21
	bl	_TYPE_LENGTH
	add	x20, x0, x20
	mov	x0, x21
	bl	_TYPE_LENGTH
	mov	x2, x0
	mov	x0, x24
	mov	x1, x20
	bl	_memcpy
	mov	x0, x22
	mov	x1, x23
	b	LBB0_5
LBB0_2:
	bl	_TYPE_CODE
Lloh3:
	adrp	x8, _TYPE_CODE_FLT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPE_CODE_FLT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_VALUE_TYPE
	bl	_TYPE_CODE
Lloh6:
	adrp	x8, _TYPE_CODE_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_CODE_INT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _not_lval@GOTPAGE
Lloh10:
	ldr	x8, [x8, _not_lval@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_value_zero
	mov	x1, x0
	mov	x0, x20
LBB0_5:
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_value_literal_complex
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_COMPLEX,8,3          ; @TYPE_CODE_COMPLEX
	.comm	_TYPE_CODE_FLT,8,3              ; @TYPE_CODE_FLT
	.comm	_TYPE_CODE_INT,8,3              ; @TYPE_CODE_INT
	.comm	_not_lval,4,2                   ; @not_lval
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot cast non-number to complex"

	.no_dead_strip	_cast_into_complex
.subsections_via_symbols
