Skip to content

Instantly share code, notes, and snippets.

@slowriot
Created November 19, 2014 22:50
Show Gist options
  • Save slowriot/cc349793478380ace839 to your computer and use it in GitHub Desktop.
Save slowriot/cc349793478380ace839 to your computer and use it in GitHub Desktop.
O2 result
LHOTB8:
.align 2
.p2align 4,,-1
.globl __ZN4SHA115buffer_to_blockERKSsPm
.def __ZN4SHA115buffer_to_blockERKSsPm; .scl 2; .type 32; .endef
__ZN4SHA115buffer_to_blockERKSsPm:
LFB1210:
.cfi_startproc
pushl %ebp #
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
pushl %edi #
.cfi_def_cfa_offset 12
.cfi_offset 7, -12
pushl %esi #
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
pushl %ebx #
.cfi_def_cfa_offset 20
.cfi_offset 3, -20
xorl %ebx, %ebx # ivtmp.238
subl $44, %esp #,
.cfi_def_cfa_offset 64
movl 64(%esp), %esi # buffer, buffer
.p2align 4,,10
L29:
leal 3(%ebx), %eax #, D.29272
movl %esi, %ecx # buffer,
movl %eax, (%esp) # D.29272,
call __ZNKSsixEj #
.cfi_def_cfa_offset 60
subl $4, %esp #,
.cfi_def_cfa_offset 64
movl %esi, %ecx # buffer,
movl %eax, 28(%esp) # D.29273, %sfp
leal 2(%ebx), %eax #, D.29272
movl %eax, (%esp) # D.29272,
call __ZNKSsixEj #
.cfi_def_cfa_offset 60
movl %eax, %ebp #, D.29273
leal 1(%ebx), %eax #, D.29272
subl $4, %esp #,
.cfi_def_cfa_offset 64
movl %esi, %ecx # buffer,
movl %eax, (%esp) # D.29272,
call __ZNKSsixEj #
.cfi_def_cfa_offset 60
subl $4, %esp #,
.cfi_def_cfa_offset 64
movl %esi, %ecx # buffer,
movl %eax, %edi #, D.29273
movl %ebx, (%esp) # ivtmp.238,
call __ZNKSsixEj #
.cfi_def_cfa_offset 60
subl $4, %esp #,
.cfi_def_cfa_offset 64
movsbl (%eax), %eax # *_27, D.29271
movl 28(%esp), %edx # %sfp, D.29273
movzbl (%edx), %edx # *_9, D.29271
sall $24, %eax #, D.29271
orl %edx, %eax # D.29271, D.29271
movsbl 0(%ebp), %edx # *_14, D.29271
sall $8, %edx #, D.29271
movzwl %dx, %edx # D.29271, D.29271
orl %edx, %eax # D.29271, D.29271
movzbl (%edi), %edx # *_21, D.29271
movl 68(%esp), %edi # block, tmp127
sall $16, %edx #, D.29271
orl %edx, %eax # D.29271, tmp126
movl %eax, (%edi,%ebx) # tmp126, MEM[base: block_5(D), index: ivtmp.238_79, offset: 0B]
addl $4, %ebx #, ivtmp.238
cmpl $64, %ebx #, ivtmp.238
jne L29 #,
addl $44, %esp #,
.cfi_def_cfa_offset 20
popl %ebx #
.cfi_restore 3
.cfi_def_cfa_offset 16
popl %esi #
.cfi_restore 6
.cfi_def_cfa_offset 12
popl %edi #
.cfi_restore 7
.cfi_def_cfa_offset 8
popl %ebp #
.cfi_restore 5
.cfi_def_cfa_offset 4
ret
.cfi_endproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment