// File: /workspace/github_cpp_makefile_star2_O3/kdungs[P]cpp-prelude/test_prelude.cc
// Function: test_unzip3()
auto test_unzip3() -> void {
  using Prelude::unzip3;
  auto expectL = std::vector<int>{1, 2, 3};
  auto expectM = std::vector<char>{'a', 'b', 'c'};
  auto expectR = std::vector<bool>{true, false, true};
  std::vector<int> resultL;
  std::vector<char> resultM;
  std::vector<bool> resultR;
  std::tie(resultL, resultM, resultR) =
      unzip3(std::vector<std::tuple<int, char, bool>>{
          std::make_tuple(1, 'a', true), std::make_tuple(2, 'b', false),
          std::make_tuple(3, 'c', true)});
  assert(resultL == expectL);
  assert(resultM == expectM);
  assert(resultR == expectR);
}

// Assembly:
pushq %rbx
subq $0x170, %rsp            # imm = 0x170
movabsq $0x200000001, %rax      # imm = 0x200000001
leaq 0xe8(%rsp), %rbx
movq %rax, (%rbx)
movl $0x3, 0x8(%rbx)
leaq 0xb8(%rsp), %rdi
leaq 0x50(%rsp), %rcx
movl $0x3, %edx
movq %rbx, %rsi
callq 0x6c08
movw $0x6261, (%rbx)         # imm = 0x6261
movb $0x63, 0x2(%rbx)
leaq 0xa0(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x50(%rsp), %rcx
movl $0x3, %edx
callq 0x7142
leaq 0xe8(%rsp), %rsi
movw $0x1, (%rsi)
movb $0x1, 0x2(%rsi)
leaq 0x50(%rsp), %rdi
leaq 0x78(%rsp), %rbx
movl $0x3, %edx
movq %rbx, %rcx
callq 0x6baa
xorl %eax, %eax
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x78(%rsp)
movl %eax, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movl %eax, 0x90(%rsp)
movq %rax, 0x98(%rsp)
leaq 0x158(%rsp), %rsi
movw $0x6101, (%rsi)         # imm = 0x6101
movl $0x1, 0x4(%rsi)
movw $0x6200, 0x8(%rsi)      # imm = 0x6200
movl $0x2, 0xc(%rsi)
movw $0x6301, 0x10(%rsi)     # imm = 0x6301
movl $0x3, 0x14(%rsi)
leaq 0xd0(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x3, %edx
callq 0x74f8
leaq 0xe8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x738b
leaq 0x140(%rsp), %rdi
movq %rbx, (%rdi)
leaq 0x10(%rsp), %rax
movq %rax, 0x8(%rdi)
leaq 0x30(%rsp), %rax
movq %rax, 0x10(%rdi)
leaq 0xe8(%rsp), %rsi
callq 0x96f8
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0x676a
movq 0x138(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x6787
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x67cc
movq 0x108(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
xorl %eax, %eax
movq %rax, 0xe8(%rsp)
movl %eax, 0xf0(%rsp)
movq %rax, 0xf8(%rsp)
movl %eax, 0x100(%rsp)
movq %rax, 0x108(%rsp)
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x67e9
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rcx
subq %rsi, %rcx
cmpq %rcx, %rdx
jne 0x6986
cmpq %rdi, %rax
je 0x6827
callq 0x2100
testl %eax, %eax
jne 0x6986
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rcx
subq %rsi, %rcx
cmpq %rcx, %rdx
jne 0x69a5
cmpq %rdi, %rax
je 0x6865
callq 0x2100
testl %eax, %eax
jne 0x69a5
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rdx
movl 0x90(%rsp), %ecx
movq %rdx, %rax
subq %rdi, %rax
leaq (%rcx,%rax,8), %rax
movq 0x50(%rsp), %r8
movq 0x60(%rsp), %rsi
movl 0x68(%rsp), %r9d
subq %r8, %rsi
leaq (%r9,%rsi,8), %rsi
cmpq %rsi, %rax
jne 0x6967
xorl %esi, %esi
xorl %r9d, %r9d
callq 0x7b3c
testb %al, %al
je 0x6967
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x68ce
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x68e5
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x68fc
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6924
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq $0x0, 0x50(%rsp)
movl $0x0, 0x58(%rsp)
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x6941
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x695e
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
addq $0x170, %rsp            # imm = 0x170
popq %rbx
retq
leaq 0x3bf3(%rip), %rdi      # 0xa561
leaq 0x36fa(%rip), %rsi      # 0xa06f
leaq 0x3cae(%rip), %rcx      # 0xa62a
movl $0x15b, %edx            # imm = 0x15B
callq 0x2090
leaq 0x3bad(%rip), %rdi      # 0xa53a
leaq 0x36db(%rip), %rsi      # 0xa06f
leaq 0x3c8f(%rip), %rcx      # 0xa62a
movl $0x159, %edx            # imm = 0x159
callq 0x2090
leaq 0x3c91(%rip), %rdi      # 0xa63d
leaq 0x36bc(%rip), %rsi      # 0xa06f
leaq 0x3c70(%rip), %rcx      # 0xa62a
movl $0x15a, %edx            # imm = 0x15A
callq 0x2090
jmp 0x69f0
movq %rax, %rdi
callq 0x753d
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x69f3
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
jmp 0x69f3
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x6a0d
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6a24
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6a3b
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6a68
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq $0x0, 0x50(%rsp)
movl $0x0, 0x58(%rsp)
jmp 0x6a68
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x6a8a
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
jmp 0x6a8a
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x6aa7
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x20f0
movq %rbx, %rdi
callq 0x2170