// File: /workspace/github_cpp_makefile_star2_O1/pc260533[P]ITC313-TP2/magasin.cpp
// Function: Magasin::deserialiserObjet(ObjetSerialized)
void Magasin::deserialiserObjet(ObjetSerialized objetSerialized) {
    std::vector<std::string> listeProduitsSerialisesString = objetSerialized.getObjetStringEncapsule("produit");
    for (int i = 0; i < listeProduitsSerialisesString.size(); i++) {
        Produit *produit = new Produit();
        produit->deserialiserObjet(ObjetSerialized(listeProduitsSerialisesString.at(i)));
        this->listeProduits.push_back(produit);
    }
    std::vector<std::string> listeClientsSerialisesString = objetSerialized.getObjetStringEncapsule("client");
    for (int i = 0; i < listeClientsSerialisesString.size(); i++) {
        Client *client = new Client();
        client->deserialiserObjet(ObjetSerialized(listeClientsSerialisesString.at(i)));
        this->listeClients.push_back(client);
        this->initialiserPanierClient(client);
    }
    this->initialiserCompteurClient();
    std::vector<std::string> listeCommandesSerialisesString = objetSerialized.getObjetStringEncapsule("commande");
    for (int i = 0; i < listeCommandesSerialisesString.size(); i++) {
        Commande *commande = new Commande();
        commande->deserialiserObjet(ObjetSerialized(listeCommandesSerialisesString.at(i)));
        this->listeCommandes.push_back(commande);
        this->initialiserClientEtListeProduitsCommandesCommande(commande);
    }
    this->initialiserCompteurCommande();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x33b1(%rip), %rsi      # 0x12b37
leaq 0x33b1(%rip), %rdx      # 0x12b3e
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x6c2c
leaq 0x50(%rsp), %rdi
movq %r12, 0x48(%rsp)
movq %r12, %rsi
movq %r14, %rdx
callq 0x111a8
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0xf7cf
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0xf8e4
leaq 0x38(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x8, %r14d
xorl %r15d, %r15d
leaq 0xa8(%rsp), %r12
leaq 0x1c8(%rsp), %r13
movl $0x88, %edi
callq 0x3220
movq %rax, %rbp
movq %rax, %rdi
callq 0xc508
movq %rbp, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0xfc0b
leaq 0xb8(%rsp), %rcx
movq %rcx, 0xa8(%rsp)
movq -0x8(%rax,%r14), %rsi
movq (%rax,%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6b9c
movq %r13, %rdi
movq %r12, %rsi
callq 0x10b7a
movq (%rbp), %rax
movq %rbp, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movq %r13, %rdi
callq 0x10bbc
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf89e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0xf8b7
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x40(%rbx)
jmp 0xf8c6
movq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x9c64
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
incq %r15
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r15, %rax
ja 0xf801
leaq 0xf8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3248(%rip), %rsi      # 0x12b3f
leaq 0x3247(%rip), %rdx      # 0x12b45
leaq 0xe8(%rsp), %rdi
callq 0x6c2c
leaq 0x30(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
movq 0x48(%rsp), %rsi
callq 0x111a8
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0xf93f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
je 0xfa60
leaq 0x50(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x8, %r12d
xorl %r15d, %r15d
leaq 0x88(%rsp), %r13
leaq 0x178(%rsp), %rbp
movl $0xc8, %edi
callq 0x3220
movq %rax, %r14
movq %rax, %rdi
callq 0x6d5e
movq %r14, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0xfc1c
leaq 0x98(%rsp), %rcx
movq %rcx, 0x88(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x6b9c
movq %rbp, %rdi
movq %r13, %rsi
callq 0x10b7a
movq (%r14), %rax
movq %r14, %rdi
movq %rbp, %rsi
callq *0x20(%rax)
movq %rbp, %rdi
callq 0x10bbc
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xfa0d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
je 0xfa26
movq 0x10(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x58(%rbx)
jmp 0xfa35
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x10928
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xed26
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r15
sarq $0x5, %rax
addq $0x20, %r12
cmpq %r15, %rax
ja 0xf971
movq %rbx, %rdi
callq 0xf1e2
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x30cb(%rip), %rsi      # 0x12b46
leaq 0x30cc(%rip), %rdx      # 0x12b4e
leaq 0xc8(%rsp), %rdi
callq 0x6c2c
leaq 0x10(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
movq 0x48(%rsp), %rsi
callq 0x111a8
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfac3
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0xfbd3
leaq 0x68(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x8, %r15d
xorl %r14d, %r14d
leaq 0x68(%rsp), %r12
leaq 0x128(%rsp), %r13
movl $0xd8, %edi
callq 0x3220
movq %rax, %rbp
movq %rax, %rdi
callq 0xa31e
movq %rbp, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r14, %rdx
jbe 0xfc2d
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6b9c
movq %r13, %rdi
movq %r12, %rsi
callq 0x10b7a
movq (%rbp), %rax
movq %rbp, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movq %r13, %rdi
callq 0x10bbc
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xfb80
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x70(%rbx), %rsi
cmpq 0x78(%rbx), %rsi
je 0xfb99
movq 0x28(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x70(%rbx)
jmp 0xfba8
movq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x10a04
movq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xef18
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %r15
cmpq %r14, %rax
ja 0xfaf2
movq %rbx, %rdi
callq 0xf236
leaq 0x10(%rsp), %rdi
callq 0x9710
leaq 0x30(%rsp), %rdi
callq 0x9710
leaq 0x50(%rsp), %rdi
callq 0x9710
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2bdc(%rip), %rdi      # 0x127ee
movq %r15, %rsi
xorl %eax, %eax
callq 0x3320
leaq 0x2bcb(%rip), %rdi      # 0x127ee
movq %r15, %rsi
xorl %eax, %eax
callq 0x3320
leaq 0x2bba(%rip), %rdi      # 0x127ee
movq %r14, %rsi
xorl %eax, %eax
callq 0x3320
jmp 0xfda7
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfdb9
movq 0xd8(%rsp), %rsi
jmp 0xfd4d
jmp 0xfdb6
jmp 0xfdb6
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfdc3
movq 0xf8(%rsp), %rsi
jmp 0xfd98
jmp 0xfda2
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0xfdcd
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfdcd
movq %rax, %rbx
movl $0xd8, %esi
movq %rbp, %rdi
jmp 0xfcff
jmp 0xfda7
movq %rax, %rbx
jmp 0xfce4
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x10bbc
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xfdaa
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfdaa
movq %rax, %rbx
movl $0xc8, %esi
movq %r14, %rdi
jmp 0xfd50
jmp 0xfdb6
movq %rax, %rbx
jmp 0xfd30
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x10bbc
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xfdb9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfdb9
movq %rax, %rbx
movl $0x88, %esi
movq %rbp, %rdi
jmp 0xfd9b
jmp 0xfda2
movq %rax, %rbx
jmp 0xfd7b
movq %rax, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x10bbc
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xfdc3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfdc3
movq %rax, %rbx
jmp 0xfdc3
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9710
jmp 0xfdb9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9710
leaq 0x50(%rsp), %rdi
callq 0x9710
movq %rbx, %rdi
callq 0x33e0