{"type": "func", "start": 4298036800, "end": 4298037031, "name": "GJPathSprite::addShardSprite", "pseudocode": "// \n// GJPathSprite::addShardSprite from 0x1002ed640 to 0x1002ed727 (231 bytes)\n// \n// 2 xrefs:\n// > GJPathSprite::updateState @ 0x1002e9586\n// > GJPathPage::unlockAnimationStep3 @ 0x1002ece1d\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:28:24 +0000\n// \n\nvoid __fastcall GJPathSprite::addShardSprite(_DWORD *a1)\n{\n  unsigned int v2; // eax\n  std::string::pointer data; // rdi\n  char *v4; // r14\n  unsigned __int64 v5; // [rsp+8h] [rbp-48h] BYREF\n  double v6; // [rsp+10h] [rbp-40h] BYREF\n  unsigned __int64 v7; // [rsp+18h] [rbp-38h] BYREF\n  std::string v8; // [rsp+20h] [rbp-30h] BYREF\n\n  memset(&v8, 0, sizeof(v8));\n  sub_100278250((float *)&v5, 0.0, 1.0);\n  v2 = a1[149] - 1;\n  if ( v2 < 0xA )\n  {\n    std::string::assign(&v8, (const std::string::value_type *)&unk_100A07BA8 + *((int *)&unk_100A07BA8 + v2));\n    if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )\n      data = v8.__r_.__value_.__l.__data_;\n    else\n      data = v8.__r_.__value_.__s.__data_;\n    v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)data, 0.0);\n    (*(void (__fastcall **)(_DWORD *, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 1);\n    (*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.55000001);\n    cocos2d::CCNode::convertToNodeSpace((double *)&v7, (__int64)a1, (unsigned int *)&unk_100BE2740);\n    sub_100278350(&v6, &v7, &v5);\n    (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v4 + 184LL))(v4, &v6);\n    if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v8.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; GJPathSprite::addShardSprite from 0x1002ed640 to 0x1002ed727 (231 bytes)\n; \n; 2 xrefs:\n; > GJPathSprite::updateState @ 0x1002e9586\n; > GJPathPage::unlockAnimationStep3 @ 0x1002ece1d\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:28:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002ed640\nmov     rbp, rsp                                                       ; +0x1, 0x1002ed641\npush    r14                                                            ; +0x4, 0x1002ed644\npush    rbx                                                            ; +0x6, 0x1002ed646\nsub     rsp, 40h                                                       ; +0x7, 0x1002ed647\nmov     rbx, rdi                                                       ; +0xb, 0x1002ed64b\nxorps   xmm0, xmm0                                                     ; +0xe, 0x1002ed64e\nmovaps  xmmword ptr [rbp+var_30.__r_.__value_], xmm0                   ; +0x11, 0x1002ed651\nmov     qword ptr [rbp+var_30.__r_.__value_+10h], 0                    ; +0x15, 0x1002ed655\nlea     rdi, [rbp+var_48]                                              ; +0x1d, 0x1002ed65d\nmovss   xmm1, cs:alpha                                                 ; +0x21, 0x1002ed661\nxorps   xmm0, xmm0                                                     ; +0x29, 0x1002ed669\ncall    sub_100278250                                                  ; +0x2c, 0x1002ed66c\nmov     eax, [rbx+254h]                                                ; +0x31, 0x1002ed671\ndec     eax                                                            ; +0x37, 0x1002ed677\ncmp     eax, 0Ah                                                       ; +0x39, 0x1002ed679\njnb     loc_1002ED71E                                                  ; +0x3c, 0x1002ed67c\nmov     eax, eax                                                       ; +0x42, 0x1002ed682\nlea     rcx, unk_100A07BA8                                             ; +0x44, 0x1002ed684\nmovsxd  rsi, dword ptr [rcx+rax*4]                                     ; +0x4b, 0x1002ed68b\nadd     rsi, rcx; __s                                                  ; +0x4f, 0x1002ed68f\nlea     rdi, [rbp+var_30]; this                                        ; +0x52, 0x1002ed692\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x56, 0x1002ed696\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x5b, 0x1002ed69b\njz      short loc_1002ED6A7                                            ; +0x5f, 0x1002ed69f\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0x61, 0x1002ed6a1\njmp     short loc_1002ED6AB                                            ; +0x65, 0x1002ed6a5\nlea     rdi, [rbp+var_30.__r_.__value_+1]                              ; +0x67, 0x1002ed6a7\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x6b, 0x1002ed6ab\nmov     r14, rax                                                       ; +0x70, 0x1002ed6b0\nmov     rax, [rbx]                                                     ; +0x73, 0x1002ed6b3\nmov     rdi, rbx                                                       ; +0x76, 0x1002ed6b6\nmov     rsi, r14                                                       ; +0x79, 0x1002ed6b9\nmov     edx, 1                                                         ; +0x7c, 0x1002ed6bc\ncall    qword ptr [rax+1D0h]                                           ; +0x81, 0x1002ed6c1\nmov     rax, [r14]                                                     ; +0x87, 0x1002ed6c7\nmovss   xmm0, cs:dword_100A0416C                                       ; +0x8a, 0x1002ed6ca\nmov     rdi, r14                                                       ; +0x92, 0x1002ed6d2\ncall    qword ptr [rax+0A0h]                                           ; +0x95, 0x1002ed6d5\nlea     rdx, unk_100BE2740                                             ; +0x9b, 0x1002ed6db\nlea     rdi, [rbp+var_38]                                              ; +0xa2, 0x1002ed6e2\nmov     rsi, rbx                                                       ; +0xa6, 0x1002ed6e6\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0xa9, 0x1002ed6e9\nlea     rdi, [rbp+var_40]                                              ; +0xae, 0x1002ed6ee\nlea     rsi, [rbp+var_38]                                              ; +0xb2, 0x1002ed6f2\nlea     rdx, [rbp+var_48]                                              ; +0xb6, 0x1002ed6f6\ncall    sub_100278350                                                  ; +0xba, 0x1002ed6fa\nmov     rax, [r14]                                                     ; +0xbf, 0x1002ed6ff\nlea     rsi, [rbp+var_40]                                              ; +0xc2, 0x1002ed702\nmov     rdi, r14                                                       ; +0xc6, 0x1002ed706\ncall    qword ptr [rax+0B8h]                                           ; +0xc9, 0x1002ed709\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0xcf, 0x1002ed70f\njz      short loc_1002ED71E                                            ; +0xd3, 0x1002ed713\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0xd5, 0x1002ed715\ncall    __ZdlPv; operator delete(void *)                               ; +0xd9, 0x1002ed719\nadd     rsp, 40h                                                       ; +0xde, 0x1002ed71e\npop     rbx                                                            ; +0xe2, 0x1002ed722\npop     r14                                                            ; +0xe3, 0x1002ed723\npop     rbp                                                            ; +0xe5, 0x1002ed725\nretn                                                                   ; +0xe6, 0x1002ed726", "xrefs": ["GJPathSprite::updateState @ 0x1002e9586", "GJPathPage::unlockAnimationStep3 @ 0x1002ece1d"], "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"}