// File: /workspace/github_cpp_makefile_star2_O2/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 $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2b3b(%rip), %rsi      # 0xdb37
leaq 0x98(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x52be
leaq 0x40(%rsp), %rdi
leaq 0x98(%rsp), %rdx
movq %r14, 0x20(%rsp)
movq %r14, %rsi
callq 0xc27c
leaq 0x98(%rsp), %rdi
callq 0x3110
leaq 0x38(%rbx), %r14
xorl %r15d, %r15d
leaq 0xf8(%rsp), %r13
leaq 0x1b8(%rsp), %rbp
movq 0x48(%rsp), %rax
subq 0x40(%rsp), %rax
sarq $0x5, %rax
cmpq %r15, %rax
jbe 0xb0cb
movl $0x88, %edi
callq 0x3210
movq %rax, %r12
movq %rax, %rdi
callq 0x9194
movq %r12, 0x28(%rsp)
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0xb7ca
movq %r13, %rdi
movq %rax, %rsi
callq 0x32a0
movq %rbp, %rdi
movq %r13, %rsi
callq 0xbef2
movq (%r12), %rax
movq %r12, %rdi
movq %rbp, %rsi
callq *0x20(%rax)
movq %rbp, %rdi
callq 0xbf1a
movq %r13, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x6e1a
incq %r15
jmp 0xb04c
leaq 0x2a6d(%rip), %rsi      # 0xdb3f
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x52be
leaq 0x28(%rsp), %rdi
leaq 0x78(%rsp), %rdx
movq 0x20(%rsp), %rsi
callq 0xc27c
leaq 0x78(%rsp), %rdi
callq 0x3110
leaq 0x50(%rbx), %r15
xorl %r12d, %r12d
leaq 0xd8(%rsp), %rbp
leaq 0x168(%rsp), %r14
movq 0x30(%rsp), %rax
subq 0x28(%rsp), %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0xb1a5
movl $0xc8, %edi
callq 0x3210
movq %rax, %r13
movq %rax, %rdi
callq 0x560a
movq %r13, 0x8(%rsp)
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0xb7ca
movq %rbp, %rdi
movq %rax, %rsi
callq 0x32a0
movq %r14, %rdi
movq %rbp, %rsi
callq 0xbef2
movq (%r13), %rax
movq %r13, %rdi
movq %r14, %rsi
callq *0x20(%rax)
movq %r14, %rdi
callq 0xbf1a
movq %rbp, %rdi
callq 0x3110
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0xb7ec
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xaa5a
incq %r12
jmp 0xb116
movq %rbx, %rdi
callq 0xad56
leaq 0x2992(%rip), %rsi      # 0xdb46
leaq 0x58(%rsp), %rdi
movq %rsp, %rdx
callq 0x52be
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rdx
movq 0x20(%rsp), %rsi
callq 0xc27c
leaq 0x58(%rsp), %rdi
callq 0x3110
leaq 0x68(%rbx), %r14
xorl %r15d, %r15d
leaq 0xb8(%rsp), %r13
leaq 0x118(%rsp), %rbp
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
sarq $0x5, %rax
cmpq %r15, %rax
jbe 0xb281
movl $0xd8, %edi
callq 0x3210
movq %rax, %r12
movq %rax, %rdi
callq 0x7c96
movq %r12, (%rsp)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0xb7ca
movq %r13, %rdi
movq %rax, %rsi
callq 0x32a0
movq %rbp, %rdi
movq %r13, %rsi
callq 0xbef2
movq (%r12), %rax
movq %r12, %rdi
movq %rbp, %rsi
callq *0x20(%rax)
movq %rbp, %rdi
callq 0xbf1a
movq %r13, %rdi
callq 0x3110
movq %r14, %rdi
movq %rsp, %rsi
callq 0xb80a
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0xab9c
incq %r15
jmp 0xb1f6
movq %rbx, %rdi
callq 0xada0
leaq 0x8(%rsp), %rdi
callq 0x6df8
leaq 0x28(%rsp), %rdi
callq 0x6df8
leaq 0x40(%rsp), %rdi
callq 0x6df8
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb3ae
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
jmp 0xb36c
jmp 0xb3bd
jmp 0xb3bd
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0xb3a2
jmp 0xb3a9
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x3110
jmp 0xb3d4
movq %rax, %rbx
jmp 0xb3d4
movq %rax, %rbx
movl $0xd8, %esi
movq %r12, %rdi
callq 0x3220
jmp 0xb3b1
movq %rax, %rbx
jmp 0xb32e
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0xbf1a
leaq 0xb8(%rsp), %rdi
callq 0x3110
jmp 0xb3b1
movq %rax, %rbx
movl $0xc8, %esi
movq %r13, %rdi
callq 0x3220
jmp 0xb3c0
movq %rax, %rbx
jmp 0xb364
movq %rax, %rbx
leaq 0x168(%rsp), %rdi
callq 0xbf1a
leaq 0xd8(%rsp), %rdi
callq 0x3110
jmp 0xb3c0
movq %rax, %rbx
movl $0x88, %esi
movq %r12, %rdi
callq 0x3220
jmp 0xb3ca
movq %rax, %rbx
jmp 0xb39a
movq %rax, %rbx
leaq 0x1b8(%rsp), %rdi
callq 0xbf1a
leaq 0xf8(%rsp), %rdi
callq 0x3110
jmp 0xb3ca
movq %rax, %rbx
jmp 0xb3ca
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6df8
jmp 0xb3c0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6df8
leaq 0x40(%rsp), %rdi
callq 0x6df8
movq %rbx, %rdi
callq 0x33a0