// File: /workspace/github_cpp_makefile_star2_O1/Silica[P]PSL/./PSL/PSLlib.h
// Function: PSL::variable::PSLlib::Foreach(PSL::variable&)
static variable Foreach(variable &v)
	{
		variable l = v[0];
		variable f = v[1];
		size_t size = l.length();
		if (size)
		{
			for (size_t i = 0; i < size; ++i)
				f(l[i]);
			return size;
		}
		else
		{
			variable k = l.keys();
			size = k.length();
			for (size_t i = 0; i < size; ++i)
				f(k[i], l[k[i]]);
			return k;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq (%rsi), %rbx
movq (%rbx), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *0x120(%rax)
testq %rax, %rax
cmoveq %rbx, %rax
incl 0x8(%rax)
movq %rax, 0x18(%rsp)
movq (%r14), %rbx
movq (%rbx), %rdi
movq (%rdi), %rax
movl $0x1, %esi
callq *0x120(%rax)
testq %rax, %rax
cmovneq %rax, %rbx
incl 0x8(%rbx)
movq %rbx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x108(%rax)
movq %rax, %r14
testq %rax, %rax
je 0x1690e
xorl %r15d, %r15d
leaq 0x40(%rsp), %r12
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x120(%rax)
testq %rax, %rax
je 0x168ca
movq %rax, %rbx
incl 0x8(%rbx)
movq %rbx, 0x8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x1844a
movq 0x40(%rsp), %rdi
callq 0xfc04
movq 0x8(%rsp), %rdi
callq 0xfc04
incq %r15
cmpq %r15, %r14
jne 0x168ae
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x15d32
jmp 0x169ff
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x138(%rax)
movl $0x1, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x108(%rax)
movq %rax, %r14
testq %rax, %rax
je 0x169ff
xorl %r15d, %r15d
leaq 0x30(%rsp), %r12
leaq 0x20(%rsp), %rbp
leaq 0x8(%rsp), %r13
movq 0x10(%rsp), %rax
movq (%rax), %rbx
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x120(%rax)
testq %rax, %rax
je 0x16977
movq %rax, %rbx
incl 0x8(%rbx)
movq %rbx, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rbx
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x120(%rax)
testq %rax, %rax
je 0x1699e
movq %rax, %rbx
incl 0x8(%rbx)
movq %rbx, 0x28(%rsp)
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x185b6
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x184e6
movq 0x38(%rsp), %rdi
callq 0xfc04
movq 0x30(%rsp), %rdi
callq 0xfc04
movq 0x28(%rsp), %rdi
callq 0xfc04
movq 0x8(%rsp), %rdi
callq 0xfc04
incq %r15
cmpq %r15, %r14
jne 0x16958
movq 0x20(%rsp), %rdi
callq 0xfc04
movq 0x18(%rsp), %rdi
callq 0xfc04
movq 0x10(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x16a3a
jmp 0x16aba
jmp 0x16aba
movq %rax, %r14
jmp 0x16aa0
jmp 0x16a84
movq %rax, %r14
jmp 0x16a6a
movq %rax, %r14
jmp 0x16a60
movq %rax, %r14
jmp 0x16a56
movq %rax, %r14
movq 0x30(%rsp), %rdi
callq 0xfc04
movq 0x28(%rsp), %rdi
callq 0xfc04
movq 0x8(%rsp), %rdi
callq 0xfc04
movq 0x10(%rsp), %rdi
callq 0xca7e
jmp 0x16a96
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
movq %rax, %r14
jmp 0x16a96
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0xfc04
movq 0x20(%rsp), %rdi
callq 0xfc04
movq 0x18(%rsp), %rdi
callq 0xfc04
movq %r14, %rdi
callq 0xc290
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
jmp 0x16aba
movq %rax, %rdi
callq 0xde83