// File: /workspace/github_cpp_makefile_star2_O1/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 0x10049(%rip), %rsi     # 0x487a9
leaq 0x10045(%rip), %rdx     # 0x487ac
leaq -0xe0(%rbp), %rdi
callq 0xf65c
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0xf5c2
leaq -0xe0(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
movq %rbx, %rdi
callq 0x3b202
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x387bd
callq 0x42b0
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x387ce
callq 0x42b0
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xffcd(%rip), %rsi      # 0x487ad
leaq 0xffc9(%rip), %rdx      # 0x487b0
leaq -0xa0(%rbp), %rdi
callq 0xf65c
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0xf5c2
leaq -0xa0(%rbp), %rsi
leaq -0x80(%rbp), %rdx
movq %rbx, %rdi
callq 0x3b202
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x38831
callq 0x42b0
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x38842
callq 0x42b0
leaq -0xf0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xff58(%rip), %rsi      # 0x487ad
leaq 0xff54(%rip), %rdx      # 0x487b0
leaq -0x100(%rbp), %r15
movq %r15, %rdi
callq 0xf65c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3b6a0
movq -0x100(%rbp), %rdi
cmpq %r12, %rdi
je 0x38887
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 0xf5c2
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xff04(%rip), %rsi      # 0x487b5
leaq 0xff00(%rip), %rdx      # 0x487b8
leaq -0x40(%rbp), %rdi
callq 0xf65c
leaq -0x60(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x3b202
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x388df
callq 0x42b0
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x388ed
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 0x38913
callq 0x42b0
jmp 0x38913
movq %rax, %rbx
movq -0x60(%rbp), %rdi
jmp 0x38969
movq %rax, %rbx
movq -0x100(%rbp), %rdi
cmpq %r12, %rdi
jne 0x3896e
jmp 0x38973
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x38940
callq 0x42b0
jmp 0x38940
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
jmp 0x38969
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x38962
callq 0x42b0
jmp 0x38962
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x38973
callq 0x42b0
movq %rbx, %rdi
callq 0x4560
nop