// File: pc260533[P]ITC313-TP2/objetserialized.cpp
// Function: ObjetSerialized::remplirMapNomAttributValeurAttribut()
void ObjetSerialized::remplirMapNomAttributValeurAttribut() {
    std::vector<std::string> listeAttributsValeurs;
    std::stringstream objetStringStream(objetString);
    std::string attributValeur = "";
    while (std::getline(objetStringStream, attributValeur, '\n')) {
        listeAttributsValeurs.push_back(attributValeur);
    }
    for (int i = 0; i < listeAttributsValeurs.size(); i++) {
        int positionCaractereDeuxPoints = listeAttributsValeurs.at(i).find_first_of(":");
        std::string nomAttribut = listeAttributsValeurs.at(i).substr(0, positionCaractereDeuxPoints);
        std::string valeurAttribut = listeAttributsValeurs.at(i).substr(positionCaractereDeuxPoints + 1);
        this->mapNomAttributValeurAttribut.insert(std::pair<std::string, std::string>(nomAttribut, valeurAttribut));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x290(%rbp)
movq %rax, -0x288(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xb070
movl $0x10, %edi
movl $0x8, %esi
callq 0xbcc0
movl %eax, -0x27c(%rbp)
jmp 0x19a21
movl -0x27c(%rbp), %edx
movq -0x290(%rbp), %rsi
leaq -0x1a8(%rbp), %rdi
callq 0x4470
jmp 0x19a3c
leaq -0x1d9(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0x4510
movq -0x298(%rbp), %rdx
leaq 0x30d9(%rip), %rsi      # 0x1cb36
leaq -0x1d8(%rbp), %rdi
callq 0x7da0
jmp 0x19a6b
leaq -0x1d9(%rbp), %rdi
callq 0x4330
leaq -0x1a8(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
movl $0xa, %edx
callq 0x4550
movq %rax, -0x2a0(%rbp)
jmp 0x19a98
movq -0x2a0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x43a0
movb %al, -0x2a1(%rbp)
jmp 0x19ab6
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0x19ac2
jmp 0x19b27
leaq -0x20(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0xbce0
jmp 0x19ad4
jmp 0x19a77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
jmp 0x19d4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
leaq -0x1d9(%rbp), %rdi
callq 0x4330
jmp 0x19d42
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
jmp 0x19d36
movl $0x0, -0x1e0(%rbp)
movslq -0x1e0(%rbp), %rax
movq %rax, -0x2b0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xd560
movq %rax, %rcx
movq -0x2b0(%rbp), %rax
cmpq %rcx, %rax
jae 0x19d0c
movslq -0x1e0(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x17b70
movq %rax, -0x2b8(%rbp)
jmp 0x19b74
movq -0x2b8(%rbp), %rdi
leaq 0x26ee(%rip), %rsi      # 0x1c270
xorl %eax, %eax
movl %eax, %edx
callq 0x41a0
movl %eax, -0x1e4(%rbp)
movslq -0x1e0(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x17b70
movq %rax, -0x2c0(%rbp)
jmp 0x19baa
movq -0x2c0(%rbp), %rsi
movslq -0x1e4(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x208(%rbp), %rdi
callq 0x42f0
jmp 0x19bca
movslq -0x1e0(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x17b70
movq %rax, -0x2c8(%rbp)
jmp 0x19be3
movq -0x2c8(%rbp), %rsi
movl -0x1e4(%rbp), %eax
incl %eax
movslq %eax, %rdx
leaq -0x228(%rbp), %rdi
movq $-0x1, %rcx
callq 0x42f0
jmp 0x19c0a
movq -0x288(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x2d0(%rbp)
leaq -0x268(%rbp), %rdi
leaq -0x208(%rbp), %rsi
leaq -0x228(%rbp), %rdx
callq 0x1a3e0
jmp 0x19c38
movq -0x2d0(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x1a3a0
movb %dl, -0x2d9(%rbp)
movq %rax, -0x2d8(%rbp)
jmp 0x19c5a
movb -0x2d9(%rbp), %al
movq -0x2d8(%rbp), %rcx
movq %rcx, -0x278(%rbp)
movb %al, -0x270(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x1a440
leaq -0x228(%rbp), %rdi
callq 0x4200
leaq -0x208(%rbp), %rdi
callq 0x4200
movl -0x1e0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1e0(%rbp)
jmp 0x19b31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
jmp 0x19cfe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
jmp 0x19cf2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x1a440
leaq -0x228(%rbp), %rdi
callq 0x4200
leaq -0x208(%rbp), %rdi
callq 0x4200
jmp 0x19d36
leaq -0x1d8(%rbp), %rdi
callq 0x4200
leaq -0x1a8(%rbp), %rdi
callq 0x4260
leaq -0x20(%rbp), %rdi
callq 0xb090
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
leaq -0x1d8(%rbp), %rdi
callq 0x4200
leaq -0x1a8(%rbp), %rdi
callq 0x4260
leaq -0x20(%rbp), %rdi
callq 0xb090
movq -0x1b0(%rbp), %rdi
callq 0x4500
nopw %cs:(%rax,%rax)