Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Created January 21, 2015 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwarren/c96896dc5e0e16aa5912 to your computer and use it in GitHub Desktop.
Save mattwarren/c96896dc5e0e16aa5912 to your computer and use it in GitHub Desktop.
Marker("foreach over a List");
00000597 mov ecx,12853400h
0000059c mov rcx,qword ptr [rcx]
0000059f call FFFFFFFFFFFFF668
125: foreach (var num in numsList)
000005a4 mov ecx,dword ptr [rdi]
000005a6 mov ecx,dword ptr [rdi+1Ch]
000005a9 xor eax,eax
000005ab mov qword ptr [rbp-38h],rdi
000005af mov dword ptr [rbp-30h],eax
000005b2 mov dword ptr [rbp-2Ch],ecx
000005b5 mov dword ptr [rbp-28h],eax
000005b8 lea rcx,[rbp-38h]
000005bc call 000000005E5F6E60
000005c1 test al,al
000005c3 je 0000000000000607
000005c5 mov esi,dword ptr [rbp-28h]
126: {
127: Console.Write("{0}, ", num);
000005c8 mov rcx,7FEF70A03F8h
000005d2 call 000000005F672470
000005d7 mov dword ptr [rax+8],esi
000005da mov rsi,rax
000005dd call 000000005E5526B0
000005e2 mov rcx,rax
000005e5 mov edx,128533F0h
000005ea mov rdx,qword ptr [rdx]
000005ed mov r8,rsi
000005f0 mov rax,qword ptr [rax]
000005f3 mov rax,qword ptr [rax+58h]
000005f7 call qword ptr [rax+20h]
125: foreach (var num in numsList)
000005fa lea rcx,[rbp-38h]
000005fe call 000000005E5F6E60
00000603 test al,al
00000605 jne 00000000000005C5
00000607 mov rcx,qword ptr [rsp+20h]
0000060c call 0000000000000735
00000611 nop
128: }
129: Console.WriteLine("");
00000612 call 000000005E5526B0
00000617 mov rcx,rax
0000061a mov edx,12853340h
0000061f mov rdx,qword ptr [rdx]
00000622 mov rax,qword ptr [rax]
00000625 mov rax,qword ptr [rax+68h]
00000629 call qword ptr [rax+20h]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment