github.com/notti/go-dynamic@v0.0.0-20190619201224-fc443047424c/steps/4_func/main_386.s (about)

     1  #include "textflag.h"
     2  #include "funcdata.h"
     3  #include "go_asm.h"
     4  
     5  TEXT ·callWrapper(SB),NOSPLIT|WRAPPER,$16
     6      NO_LOCAL_POINTERS
     7      MOVL DX, 0(SP)
     8      LEAL argframe+0(FP), CX
     9      MOVL CX, 4(SP)
    10      CALL ·fake(SB)
    11      
    12      MOVL SP, AX
    13      ADDL $16+4, AX
    14      MOVL 0(SP), CX
    15      MOVL funcStorage_argsize(CX), DX
    16      ADDL DX, AX
    17      MOVL funcStorage_retsize(CX), DX
    18      MOVL SP, CX
    19      ADDL $8, CX
    20  
    21  next:
    22      MOVL (CX), BX
    23      MOVL BX, (AX)
    24  
    25      ADDL $4, CX
    26      ADDL $4, AX
    27      SUBL $4, DX
    28  
    29      TESTL DX, DX
    30      JNE next
    31  
    32      RET