// File: /workspace/github_cpp_makefile_star2_O1/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 0xa2b4
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0xa2de
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
movq %r14, %rdi
callq 0xd7c2
movq %rax, %r15
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xef82
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xefa3
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 0xefc8
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa604
movl $0x8, %r13d
xorl %r15d, %r15d
leaq 0x60(%rsp), %r12
leaq 0x18(%rsp), %rbp
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa308
movq 0x68(%rsp), %r14
subq 0x60(%rsp), %r14
sarq $0x5, %r14
movq %r12, %rdi
callq 0x9710
cmpq %r15, %r14
jbe 0xf0ea
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa308
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0xf112
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 0x6b9c
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0xd720
movq %rax, %r14
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0xf077
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3230
movq %r12, %rdi
callq 0x9710
movq %r14, 0x58(%rsp)
testq %r14, %r14
je 0xf0ad
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xf0a0
movq %r14, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xf0ad
movq %rsp, %rdi
leaq 0x58(%rsp), %rdx
callq 0x9c64
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x9586
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
callq 0xa60a
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf0de
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
incq %r15
addq $0x20, %r13
jmp 0xefdb
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf100
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 0x36d5(%rip), %rdi      # 0x127ee
movq %r15, %rsi
xorl %eax, %eax
callq 0x3320
jmp 0xf1c1
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf151
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xf151
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf1da
movq 0xa8(%rsp), %rsi
incq %rsi
jmp 0xf1d5
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0xf1b3
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0xf1b3
jmp 0xf1c1
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf1c4
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
jmp 0xf1c4
jmp 0xf1b0
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x9710
jmp 0xf1c4
jmp 0xf1c1
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xf1da
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x33e0