// File: /workspace/github_cpp_makefile_star2_O3/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 0x328b(%rip), %rsi      # 0x12b37
leaq 0x328b(%rip), %rdx      # 0x12b3e
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x6cc8
leaq 0x50(%rsp), %rdi
movq %r12, 0x48(%rsp)
movq %r12, %rsi
movq %r14, %rdx
callq 0x112e0
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0xf8f5
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0xfa0a
leaq 0x38(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x8, %r15d
xorl %r14d, %r14d
leaq 0xa8(%rsp), %r12
leaq 0x1c8(%rsp), %r13
movl $0x88, %edi
callq 0x3220
movq %rax, %rbp
movq %rax, %rdi
callq 0xc5d8
movq %rbp, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r14, %rdx
jbe 0xfd37
leaq 0xb8(%rsp), %rcx
movq %rcx, 0xa8(%rsp)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6c32
movq %r13, %rdi
movq %r12, %rsi
callq 0x10cb8
movq (%rbp), %rax
movq %rbp, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movq %r13, %rdi
callq 0x10cf4
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf9c4
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0xf9dd
movq 0x30(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x40(%rbx)
jmp 0xf9ec
movq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x9d6e
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %r15
cmpq %r14, %rax
ja 0xf927
leaq 0xf8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3122(%rip), %rsi      # 0x12b3f
leaq 0x3121(%rip), %rdx      # 0x12b45
leaq 0xe8(%rsp), %rdi
callq 0x6cc8
leaq 0x30(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
movq 0x48(%rsp), %rsi
callq 0x112e0
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfa65
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
je 0xfb89
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 0x6e02
movq %r14, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0xfd48
leaq 0x98(%rsp), %rcx
movq %rcx, 0x88(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x6c32
movq %rbp, %rdi
movq %r13, %rsi
callq 0x10cb8
movq (%r14), %rax
movq %r14, %rdi
movq %rbp, %rsi
callq *0x20(%rax)
movq %rbp, %rdi
callq 0x10cf4
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xfb33
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x58(%rbx), %rax
cmpq 0x60(%rbx), %rax
je 0xfb4c
movq 0x10(%rsp), %rsi
movq %rsi, (%rax)
addq $0x8, 0x58(%rbx)
jmp 0xfb63
movq 0x8(%rsp), %rdi
movq %rax, %rsi
leaq 0x10(%rsp), %rdx
callq 0x10a6c
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xee4c
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r15
sarq $0x5, %rax
addq $0x20, %r12
cmpq %r15, %rax
ja 0xfa97
movq %rbx, %rdi
callq 0xf308
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2fa2(%rip), %rsi      # 0x12b46
leaq 0x2fa3(%rip), %rdx      # 0x12b4e
leaq 0xc8(%rsp), %rdi
callq 0x6cc8
leaq 0x10(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
movq 0x48(%rsp), %rsi
callq 0x112e0
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfbec
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0xfcff
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 0xa3ee
movq %rbp, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r14, %rdx
jbe 0xfd59
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6c32
movq %r13, %rdi
movq %r12, %rsi
callq 0x10cb8
movq (%rbp), %rax
movq %rbp, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movq %r13, %rdi
callq 0x10cf4
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xfca9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x70(%rbx), %rax
cmpq 0x78(%rbx), %rax
je 0xfcc2
movq 0x28(%rsp), %rsi
movq %rsi, (%rax)
addq $0x8, 0x70(%rbx)
jmp 0xfcd9
movq 0x8(%rsp), %rdi
movq %rax, %rsi
leaq 0x28(%rsp), %rdx
callq 0x10b48
movq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xf03e
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %r15
cmpq %r14, %rax
ja 0xfc1b
movq %rbx, %rdi
callq 0xf35c
leaq 0x10(%rsp), %rdi
callq 0x97ee
leaq 0x30(%rsp), %rdi
callq 0x97ee
leaq 0x50(%rsp), %rdi
callq 0x97ee
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ab0(%rip), %rdi      # 0x127ee
movq %r14, %rsi
xorl %eax, %eax
callq 0x3320
leaq 0x2a9f(%rip), %rdi      # 0x127ee
movq %r15, %rsi
xorl %eax, %eax
callq 0x3320
leaq 0x2a8e(%rip), %rdi      # 0x127ee
movq %r14, %rsi
xorl %eax, %eax
callq 0x3320
jmp 0xfed3
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfee5
movq 0xd8(%rsp), %rsi
jmp 0xfe79
jmp 0xfee2
jmp 0xfee2
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0xfeef
movq 0xf8(%rsp), %rsi
jmp 0xfec4
jmp 0xfece
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0xfef9
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfef9
movq %rax, %rbx
movl $0xd8, %esi
movq %rbp, %rdi
jmp 0xfe2b
jmp 0xfed3
movq %rax, %rbx
jmp 0xfe10
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x10cf4
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xfed6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfed6
movq %rax, %rbx
movl $0xc8, %esi
movq %r14, %rdi
jmp 0xfe7c
jmp 0xfee2
movq %rax, %rbx
jmp 0xfe5c
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x10cf4
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xfee5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfee5
movq %rax, %rbx
movl $0x88, %esi
movq %rbp, %rdi
jmp 0xfec7
jmp 0xfece
movq %rax, %rbx
jmp 0xfea7
movq %rax, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x10cf4
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xfeef
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xfeef
movq %rax, %rbx
jmp 0xfeef
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x97ee
jmp 0xfee5
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x97ee
leaq 0x50(%rsp), %rdi
callq 0x97ee
movq %rbx, %rdi
callq 0x33e0