// File: /workspace/github_cpp_makefile_star2_O3/acliusBackHome[P]kamaya/dist/x86.cpp
// Function: x86::Assembler::quaMOD(std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
void Assembler::quaMOD(const Qua &qua) {
  const string &x = get<1>(qua);
  const string &y = get<2>(qua);
  const string &z = get<3>(qua);
  mov("eax", x);
  mov("ebx", y);
  div("ebx");
  mov(z, "edx"); // eax存商 edx存余数
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0xd0(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xf9af(%rip), %rsi      # 0x477a9
leaq 0xf9ab(%rip), %rdx      # 0x477ac
leaq -0xe0(%rbp), %rdi
callq 0xf868
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0xf7ca
leaq -0xe0(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
movq %rbx, %rdi
callq 0x3a7d0
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x37e57
callq 0x42b0
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x37e68
callq 0x42b0
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xf933(%rip), %rsi      # 0x477ad
leaq 0xf92f(%rip), %rdx      # 0x477b0
leaq -0xa0(%rbp), %rdi
callq 0xf868
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0xf7ca
leaq -0xa0(%rbp), %rsi
leaq -0x80(%rbp), %rdx
movq %rbx, %rdi
callq 0x3a7d0
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x37ecb
callq 0x42b0
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x37edc
callq 0x42b0
leaq -0xf0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xf8be(%rip), %rsi      # 0x477ad
leaq 0xf8ba(%rip), %rdx      # 0x477b0
leaq -0x100(%rbp), %r15
movq %r15, %rdi
callq 0xf868
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ac6e
movq -0x100(%rbp), %rdi
cmpq %r12, %rdi
je 0x37f21
callq 0x42b0
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0xf7ca
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xf86a(%rip), %rsi      # 0x477b5
leaq 0xf866(%rip), %rdx      # 0x477b8
leaq -0x40(%rbp), %rdi
callq 0xf868
leaq -0x60(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x3a7d0
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x37f79
callq 0x42b0
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x37f87
callq 0x42b0
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x37fad
callq 0x42b0
jmp 0x37fad
movq %rax, %rbx
movq -0x60(%rbp), %rdi
jmp 0x38003
movq %rax, %rbx
movq -0x100(%rbp), %rdi
cmpq %r12, %rdi
jne 0x38008
jmp 0x3800d
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x37fda
callq 0x42b0
jmp 0x37fda
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
jmp 0x38003
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x37ffc
callq 0x42b0
jmp 0x37ffc
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x3800d
callq 0x42b0
movq %rbx, %rdi
callq 0x4560
nop