// File: TsukiGva2[P]Blade-lang/blade.cpp
// Function: div(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
std::string div(std::vector<std::string> nums){
	double acc = 1;
	if (std::regex_match(nums[0], is_number)) {
		acc = std::stof(nums[0]);
	}
	std::vector<std::string> numsbf(nums.begin()+1, nums.end());
	for (std::string i : numsbf) {
		if (std::regex_match(i, is_number)) {
			if (std::stof(i) != 0){
				acc /= std::stof(i);
			}
			else {
				return "can't divide by 0";
			}
		}
	}
	// solution
	// [/ 6 3 1]
	// (6 / 3) / 1
	return std::to_string(acc);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rsi, -0xb8(%rbp)
movq %rdi, %rax
movq -0xb8(%rbp), %rdi
movq %rax, -0xb0(%rbp)
movq %rax, %rcx
movq %rcx, -0xa8(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movsd 0xe38ab(%rip), %xmm0    # 0xfd008
movsd %xmm0, -0x18(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x1c520
movq %rax, %rdi
leaq 0x13c223(%rip), %rsi    # 0x155998
xorl %edx, %edx
callq 0x1c350
testb $0x1, %al
jne 0x19782
jmp 0x197a7
movq -0xb8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1c520
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1c7b0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x1c290
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
movl $0x1, %esi
callq 0x1c540
movq -0xb8(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x1c2c0
movq %rax, -0x48(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x1c580
movq -0xc0(%rbp), %rcx
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x1c5a0
jmp 0x19803
leaq -0x49(%rbp), %rdi
callq 0x1c620
leaq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0x1c290
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rdi
callq 0x1c2c0
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1c2f0
testb $0x1, %al
jne 0x19844
jmp 0x199d0
leaq -0x70(%rbp), %rdi
callq 0x1c330
movq %rax, %rsi
leaq -0x98(%rbp), %rdi
callq 0xcd060
jmp 0x1985e
leaq 0x13c133(%rip), %rsi    # 0x155998
leaq -0x98(%rbp), %rdi
xorl %edx, %edx
callq 0x1c350
movb %al, -0xc1(%rbp)
jmp 0x1987b
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x1988a
jmp 0x19990
xorl %eax, %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x1c7b0
movss %xmm0, -0xc8(%rbp)
jmp 0x198a4
movss -0xc8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x198b8
jp 0x198b8
jmp 0x1992d
xorl %eax, %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x1c7b0
movss %xmm0, -0xcc(%rbp)
jmp 0x198d2
movss -0xcc(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd -0x18(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
jmp 0x1998e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x49(%rbp), %rdi
callq 0x1c620
jmp 0x19a0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x19a06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x199c2
leaq -0x99(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x505b0
movq -0xb0(%rbp), %rdi
movq -0xd8(%rbp), %rdx
leaq 0xe38f5(%rip), %rsi     # 0xfd24a
callq 0x1b480
jmp 0x1995c
leaq -0x99(%rbp), %rdi
callq 0x505d0
movl $0x1, -0xa0(%rbp)
jmp 0x1999a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x99(%rbp), %rdi
callq 0x505d0
jmp 0x199c2
jmp 0x19990
movl $0x0, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0xcabd0
movl -0xa0(%rbp), %eax
testl %eax, %eax
jne 0x199ed
jmp 0x199b2
jmp 0x199b4
leaq -0x70(%rbp), %rdi
callq 0x1c3e0
jmp 0x1982e
leaq -0x98(%rbp), %rdi
callq 0xcabd0
jmp 0x19a06
movq -0xb0(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
callq 0x1c7f0
jmp 0x199e3
movl $0x1, -0xa0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1b610
movq -0xa8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x1b610
movq -0x58(%rbp), %rdi
callq 0xfa2a0
nopl (%rax,%rax)