// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rcx
leaq 0x10(%rdi), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, 0x10(%rsp)
movb $0x0, 0x10(%rdi)
movl $0x2, %esi
movq %rcx, 0x28(%rsp)
movq %rcx, %rdi
callq 0x48d3
movq %rax, %rdi
callq 0x4805
cvttsd2si %xmm0, %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
jle 0x507c
leaq 0x88(%rsp), %rbx
leaq 0x60(%rsp), %r12
movq 0x10(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x70(%rsp)
xorl %ebp, %ebp
leaq 0x50(%rsp), %r15
leaq 0x78(%rsp), %r13
movq %r12, %r14
movl $0x1, %esi
movq 0x28(%rsp), %rdi
callq 0x48d3
movq %r15, %rdi
movq %rax, %rsi
callq 0x477f
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0x4e46
movl $0x4, %r12d
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x4e3d
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4e43
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4e46
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4e08
addl $-0x3, %r12d
jmp 0x4e46
addl $-0x2, %r12d
jmp 0x4e46
decl %r12d
movl %r12d, %esi
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
movl $0x2d, %edx
callq 0x3250
movq 0x30(%rsp), %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x7a67
movq %rbx, 0x78(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x7070
movq $0x0, 0x98(%rsp)
movb $0x0, 0xa0(%rsp)
movl $0x0, 0xa4(%rsp)
leaq 0xa8(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %r12
callq 0x5b33
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x4ee5
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x78(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4eff
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4f1b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f32
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3200
movl $0x3, %esi
movq 0x28(%rsp), %rdi
callq 0x48d3
movq %r15, %rdi
movq %rax, %rsi
callq 0x477f
movq %r13, %rdi
movq %r15, %rsi
callq 0x542c
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x3260
movupd 0x10(%rbx), %xmm0
movq 0x70(%rsp), %rax
movupd %xmm0, (%rax)
movq 0x78(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4f8c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x4fa3
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3200
incl %ebp
cmpl 0xc(%rsp), %ebp
jne 0x4dd8
jmp 0x507c
movq %rdx, (%rsp)
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x504e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x504e
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x78(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5004
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x5004
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5029
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x5029
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x5040
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3200
movq %r12, %rdi
jmp 0x505c
movq %rdx, (%rsp)
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
jmp 0x505c
movq %rdx, (%rsp)
movq %rax, %rdi
cmpl $0x1, (%rsp)
jne 0x5093
callq 0x30d0
movb (%rax), %r12b
callq 0x32e0
testb %r12b, %r12b
jne 0x507c
movq %r14, %r12
jmp 0x4fa3
movq 0x10(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
jmp 0x509b
movq %rax, %rbx
movq 0x10(%rsp), %rax
movq (%rax), %rdi
cmpq 0x20(%rsp), %rdi
je 0x50ba
movq 0x20(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3300