// File: /workspace/github_cpp_makefile_star2_O3/pc260533[P]ITC313-TP2/magasin.cpp
// Function: Magasin::initialiserClientEtListeProduitsCommandesCommande(Commande*)
void Magasin::initialiserClientEtListeProduitsCommandesCommande(Commande *commande) {
    Client *clientCommande = this->getClientAvecNomPrenomClient(commande->getNomClient(), commande->getPrenomClient());
    std::vector<Produit*> listeProduitsCommandesParLeClient;
    if (clientCommande) {
        commande->initialiserClient(clientCommande);
    }
    for (int i = 0; i < commande->getListeNomProduitsCommandes().size(); i++) {
        Produit *produit = this->getProduitAvecNomProduit(commande->getListeNomProduitsCommandes().at(i));
        if (produit) {
            listeProduitsCommandesParLeClient.push_back(produit);
        }
        commande->initialiserListeProduitsCommandes(listeProduitsCommandesParLeClient);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x98(%rsp), %rdi
callq 0xa384
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0xa3ae
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
movq %r14, %rdi
callq 0xd89e
movq %rax, %r15
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf0a8
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf0c9
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3230
movq %r14, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %r15, %r15
je 0xf0ee
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa6d4
movl $0x8, %r13d
xorl %r15d, %r15d
leaq 0x60(%rsp), %r12
leaq 0x18(%rsp), %rbp
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa3d8
movq 0x68(%rsp), %r14
subq 0x60(%rsp), %r14
sarq $0x5, %r14
movq %r12, %rdi
callq 0x97ee
cmpq %r15, %r14
jbe 0xf210
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa3d8
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0xf238
movq %rbp, %r14
leaq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x6c32
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0xd7f0
movq %rax, %r14
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0xf19d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3230
movq %r12, %rdi
callq 0x97ee
movq %r14, 0x58(%rsp)
testq %r14, %r14
je 0xf1d3
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xf1c6
movq %r14, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xf1d3
movq %rsp, %rdi
leaq 0x58(%rsp), %rdx
callq 0x9d6e
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x9664
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
callq 0xa6da
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf204
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
incq %r15
addq $0x20, %r13
jmp 0xf101
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf226
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35af(%rip), %rdi      # 0x127ee
movq %r15, %rsi
xorl %eax, %eax
callq 0x3320
jmp 0xf2e7
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf277
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xf277
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf300
movq 0xa8(%rsp), %rsi
incq %rsi
jmp 0xf2fb
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0xf2d9
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xf2d9
jmp 0xf2e7
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf2ea
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
jmp 0xf2ea
jmp 0xf2d6
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x97ee
jmp 0xf2ea
jmp 0xf2e7
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf300
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x33e0