{"type": "func", "start": 4295321120, "end": 4295321419, "name": "GJStoreItem::init", "pseudocode": "// \n// GJStoreItem::init from 0x100056620 to 0x10005674b (299 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::addStoreItem @ 0x10002be62\n// > GJStoreItem::create @ 0x10002bf86\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:19:37 +0000\n// \n\n__int64 __fastcall GJStoreItem::init(_DWORD *a1, int a2, int a3, int a4, int a5, int a6)\n{\n  __int64 result; // rax\n  float v10; // xmm0_4\n  float v11; // xmm0_4\n  float v12; // xmm0_4\n  int v13; // ecx\n  float v14; // xmm0_4\n  unsigned __int8 v16; // [rsp+7h] [rbp-29h]\n\n  result = cocos2d::CCNode::init();\n  if ( (_BYTE)result )\n  {\n    a1[81] = a2;\n    v16 = result;\n    v10 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n    a1[80] = (int)v10;\n    a1[79] = a2 + (int)v10;\n    a1[84] = a3;\n    v11 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n    a1[83] = (int)v11;\n    a1[82] = a3 + (int)v11;\n    a1[87] = a4;\n    v12 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n    a1[86] = (int)v12;\n    a1[85] = a4 + (int)v12;\n    a1[90] = a5;\n    v13 = rand();\n    v14 = (float)((float)v13 * 4.6566129e-10) * 1000.0;\n    a1[89] = (int)v14;\n    a1[88] = a5 + (int)v14;\n    a1[91] = a6;\n    return v16;\n  }\n  return result;\n}", "assembly": "; \n; GJStoreItem::init from 0x100056620 to 0x10005674b (299 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::addStoreItem @ 0x10002be62\n; > GJStoreItem::create @ 0x10002bf86\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:19:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x100056620\nmov     rbp, rsp                                                       ; +0x1, 0x100056621\npush    r15                                                            ; +0x4, 0x100056624\npush    r14                                                            ; +0x6, 0x100056626\npush    r13                                                            ; +0x8, 0x100056628\npush    r12                                                            ; +0xa, 0x10005662a\npush    rbx                                                            ; +0xc, 0x10005662c\npush    rax                                                            ; +0xd, 0x10005662d\nmov     [rbp+var_30], r9d                                              ; +0xe, 0x10005662e\nmov     r14d, r8d                                                      ; +0x12, 0x100056632\nmov     r12d, ecx                                                      ; +0x15, 0x100056635\nmov     r13d, edx                                                      ; +0x18, 0x100056638\nmov     ebx, esi                                                       ; +0x1b, 0x10005663b\nmov     r15, rdi                                                       ; +0x1d, 0x10005663d\ncall    cocos2d__CCNode__init                                          ; +0x20, 0x100056640\ntest    al, al                                                         ; +0x25, 0x100056645\njz      loc_10005673C                                                  ; +0x27, 0x100056647\nmov     [r15+144h], ebx                                                ; +0x2d, 0x10005664d\nmov     [rbp+var_29], al                                               ; +0x34, 0x100056654\ncall    _rand                                                          ; +0x37, 0x100056657\ncvtsi2ss xmm0, eax                                                     ; +0x3c, 0x10005665c\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x40, 0x100056660\nmulss   xmm0, cs:dword_100A03738                                       ; +0x48, 0x100056668\ncvttss2si eax, xmm0                                                    ; +0x50, 0x100056670\nmov     [r15+140h], eax                                                ; +0x54, 0x100056674\nadd     eax, ebx                                                       ; +0x5b, 0x10005667b\nmov     [r15+13Ch], eax                                                ; +0x5d, 0x10005667d\nmov     [r15+150h], r13d                                               ; +0x64, 0x100056684\ncall    _rand                                                          ; +0x6b, 0x10005668b\nxorps   xmm0, xmm0                                                     ; +0x70, 0x100056690\ncvtsi2ss xmm0, eax                                                     ; +0x73, 0x100056693\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x77, 0x100056697\nmulss   xmm0, cs:dword_100A03738                                       ; +0x7f, 0x10005669f\ncvttss2si eax, xmm0                                                    ; +0x87, 0x1000566a7\nmov     [r15+14Ch], eax                                                ; +0x8b, 0x1000566ab\nadd     eax, r13d                                                      ; +0x92, 0x1000566b2\nmov     [r15+148h], eax                                                ; +0x95, 0x1000566b5\nmov     [r15+15Ch], r12d                                               ; +0x9c, 0x1000566bc\ncall    _rand                                                          ; +0xa3, 0x1000566c3\nxorps   xmm0, xmm0                                                     ; +0xa8, 0x1000566c8\ncvtsi2ss xmm0, eax                                                     ; +0xab, 0x1000566cb\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xaf, 0x1000566cf\nmulss   xmm0, cs:dword_100A03738                                       ; +0xb7, 0x1000566d7\ncvttss2si eax, xmm0                                                    ; +0xbf, 0x1000566df\nmov     [r15+158h], eax                                                ; +0xc3, 0x1000566e3\nadd     eax, r12d                                                      ; +0xca, 0x1000566ea\nmov     [r15+154h], eax                                                ; +0xcd, 0x1000566ed\nmov     [r15+168h], r14d                                               ; +0xd4, 0x1000566f4\ncall    _rand                                                          ; +0xdb, 0x1000566fb\nmov     ecx, eax                                                       ; +0xe0, 0x100056700\nmovzx   eax, [rbp+var_29]                                              ; +0xe2, 0x100056702\nxorps   xmm0, xmm0                                                     ; +0xe6, 0x100056706\ncvtsi2ss xmm0, ecx                                                     ; +0xe9, 0x100056709\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xed, 0x10005670d\nmulss   xmm0, cs:dword_100A03738                                       ; +0xf5, 0x100056715\ncvttss2si ecx, xmm0                                                    ; +0xfd, 0x10005671d\nmov     [r15+164h], ecx                                                ; +0x101, 0x100056721\nadd     ecx, r14d                                                      ; +0x108, 0x100056728\nmov     [r15+160h], ecx                                                ; +0x10b, 0x10005672b\nmov     ecx, [rbp+var_30]                                              ; +0x112, 0x100056732\nmov     [r15+16Ch], ecx                                                ; +0x115, 0x100056735\nadd     rsp, 8                                                         ; +0x11c, 0x10005673c\npop     rbx                                                            ; +0x120, 0x100056740\npop     r12                                                            ; +0x121, 0x100056741\npop     r13                                                            ; +0x123, 0x100056743\npop     r14                                                            ; +0x125, 0x100056745\npop     r15                                                            ; +0x127, 0x100056747\npop     rbp                                                            ; +0x129, 0x100056749\nretn                                                                   ; +0x12a, 0x10005674a", "xrefs": ["GameStatsManager::addStoreItem @ 0x10002be62", "GJStoreItem::create @ 0x10002bf86"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}