// File: bsegovia[P]boodew/boodew.cpp
// Function: boodew::loop_builtin(std::vector<boodew::value, std::allocator<boodew::value>> const&)
static value loop_builtin(args arg) {
  value last;
  auto const n = int(vtod(get(arg,2)));
  for (int i = 0; i < n; ++i) {
    try {
      new_local(vtos(get(arg,1)), stov(to_string(i)));
      last = ex(vtos(get(arg,3)));
    } catch (bool b) { if (b) break; else continue; }
  }
  return last;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x138(%rbp)
movq %rdi, %rax
movq %rax, -0x130(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0xd000
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x4d70
movq %rax, -0x128(%rbp)
jmp 0x5db4
movq -0x128(%rbp), %rdi
callq 0x4c70
movsd %xmm0, -0x140(%rbp)
jmp 0x5dca
movsd -0x140(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x5fd8
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x4d70
movq %rax, -0x148(%rbp)
jmp 0x5e03
movq -0x148(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x4ba0
jmp 0x5e15
movl -0x28(%rbp), %esi
leaq -0xc8(%rbp), %rdi
callq 0xd130
jmp 0x5e26
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xd0e0
jmp 0x5e3b
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x6c70
jmp 0x5e51
leaq -0x58(%rbp), %rdi
callq 0xc5d0
leaq -0xa8(%rbp), %rdi
callq 0xc5d0
leaq -0xc8(%rbp), %rdi
callq 0x3180
leaq -0x78(%rbp), %rdi
callq 0x3180
movq -0x10(%rbp), %rdi
movl $0x3, %esi
callq 0x4d70
movq %rax, -0x150(%rbp)
jmp 0x5e92
movq -0x150(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0x4ba0
jmp 0x5ea7
xorl %eax, %eax
movl %eax, %edx
leaq -0xf8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x65e0
jmp 0x5ec0
movq -0x138(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xd020
leaq -0xf8(%rbp), %rdi
callq 0xc5d0
leaq -0x118(%rbp), %rdi
callq 0x3180
jmp 0x5fc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x6008
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x5f72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x5f4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x5f43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0xc5d0
leaq -0xc8(%rbp), %rdi
callq 0x3180
leaq -0x78(%rbp), %rdi
callq 0x3180
jmp 0x5f72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x3180
movl -0x24(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x6008
movq -0x20(%rbp), %rdi
callq 0x30d0
movb (%rax), %al
andb $0x1, %al
movb %al, -0x119(%rbp)
testb $0x1, -0x119(%rbp)
je 0x5faa
movl $0x2, -0x120(%rbp)
jmp 0x5fb4
movl $0x4, -0x120(%rbp)
callq 0x33e0
movl -0x120(%rbp), %eax
subl $0x2, %eax
je 0x5fd8
jmp 0x5fc6
jmp 0x5fca
jmp 0x5fca
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5de0
movb $0x1, -0x11(%rbp)
movl $0x1, -0x120(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x5ff8
movq -0x138(%rbp), %rdi
callq 0xc5d0
movq -0x130(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x138(%rbp), %rdi
callq 0xc5d0
movq -0x20(%rbp), %rdi
callq 0x3400
nopl (%rax)