{"type": "func", "start": 4298123616, "end": 4298123847, "name": "GJPathSprite::addShardSprite", "pseudocode": "// \n// GJPathSprite::addShardSprite from 0x100302960 to 0x100302a47 (231 bytes)\n// \n// 2 xrefs:\n// > GJPathSprite::updateState @ 0x1002fea16\n// > GJPathPage::unlockAnimationStep3 @ 0x10030213d\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJPathSprite::addShardSprite(GJPathSprite *a1)\n{\n  unsigned int v2; // eax\n  const char *data; // rdi\n  cocos2d::CCSprite *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  double v9; // 0:xmm0_8.8\n\n  memset(&v8, 0, sizeof(v8));\n  sub_10028CBE0((float *)&v5, 0.0, 1.0);\n  v2 = a1->m_pathNumber - 1;\n  if ( v2 < 0xA )\n  {\n    std::string::assign(&v8, (const std::string::value_type *)&unk_100819678 + *((int *)&unk_100819678 + 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(data);\n    ((void (__fastcall *)(GJPathSprite *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 1);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))v4->setScale)(v4, 0.55000001);\n    *(cocos2d::CCPoint *)&v9 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v7, (const cocos2d::CCPoint *)a1);\n    sub_10028CCE0(&v6, &v7, &v5);\n    ((void (__fastcall *)(cocos2d::CCSprite *, double *, double))v4->setPosition)(v4, &v6, v9);\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 0x100302960 to 0x100302a47 (231 bytes)\n; \n; 2 xrefs:\n; > GJPathSprite::updateState @ 0x1002fea16\n; > GJPathPage::unlockAnimationStep3 @ 0x10030213d\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100302960\nmov     rbp, rsp                                                       ; +0x1, 0x100302961\npush    r14                                                            ; +0x4, 0x100302964\npush    rbx                                                            ; +0x6, 0x100302966\nsub     rsp, 40h                                                       ; +0x7, 0x100302967\nmov     rbx, rdi                                                       ; +0xb, 0x10030296b\nxorps   xmm0, xmm0                                                     ; +0xe, 0x10030296e\nmovaps  xmmword ptr [rbp+var_30.__r_.__value_], xmm0                   ; +0x11, 0x100302971\nmov     qword ptr [rbp+var_30.__r_.__value_+10h], 0                    ; +0x15, 0x100302975\nlea     rdi, [rbp+var_48]                                              ; +0x1d, 0x10030297d\nmovss   xmm1, cs:alpha                                                 ; +0x21, 0x100302981\nxorps   xmm0, xmm0                                                     ; +0x29, 0x100302989\ncall    sub_10028CBE0                                                  ; +0x2c, 0x10030298c\nmov     eax, [rbx+254h]                                                ; +0x31, 0x100302991\ndec     eax                                                            ; +0x37, 0x100302997\ncmp     eax, 0Ah                                                       ; +0x39, 0x100302999\njnb     loc_100302A3E                                                  ; +0x3c, 0x10030299c\nmov     eax, eax                                                       ; +0x42, 0x1003029a2\nlea     rcx, unk_100819678                                             ; +0x44, 0x1003029a4\nmovsxd  rsi, dword ptr [rcx+rax*4]                                     ; +0x4b, 0x1003029ab\nadd     rsi, rcx; __s                                                  ; +0x4f, 0x1003029af\nlea     rdi, [rbp+var_30]; this                                        ; +0x52, 0x1003029b2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x56, 0x1003029b6\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x5b, 0x1003029bb\njz      short loc_1003029C7                                            ; +0x5f, 0x1003029bf\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0x61, 0x1003029c1\njmp     short loc_1003029CB                                            ; +0x65, 0x1003029c5\nlea     rdi, [rbp+var_30.__r_.__value_+1]                              ; +0x67, 0x1003029c7\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x6b, 0x1003029cb\nmov     r14, rax                                                       ; +0x70, 0x1003029d0\nmov     rax, [rbx]                                                     ; +0x73, 0x1003029d3\nmov     rdi, rbx                                                       ; +0x76, 0x1003029d6\nmov     rsi, r14                                                       ; +0x79, 0x1003029d9\nmov     edx, 1                                                         ; +0x7c, 0x1003029dc\ncall    qword ptr [rax+1C0h]                                           ; +0x81, 0x1003029e1\nmov     rax, [r14]                                                     ; +0x87, 0x1003029e7\nmovss   xmm0, cs:dword_100815D54                                       ; +0x8a, 0x1003029ea\nmov     rdi, r14                                                       ; +0x92, 0x1003029f2\ncall    qword ptr [rax+0A0h]                                           ; +0x95, 0x1003029f5\nlea     rdx, unk_1009A04C0                                             ; +0x9b, 0x1003029fb\nlea     rdi, [rbp+var_38]                                              ; +0xa2, 0x100302a02\nmov     rsi, rbx                                                       ; +0xa6, 0x100302a06\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0xa9, 0x100302a09\nlea     rdi, [rbp+var_40]                                              ; +0xae, 0x100302a0e\nlea     rsi, [rbp+var_38]                                              ; +0xb2, 0x100302a12\nlea     rdx, [rbp+var_48]                                              ; +0xb6, 0x100302a16\ncall    sub_10028CCE0                                                  ; +0xba, 0x100302a1a\nmov     rax, [r14]                                                     ; +0xbf, 0x100302a1f\nlea     rsi, [rbp+var_40]                                              ; +0xc2, 0x100302a22\nmov     rdi, r14                                                       ; +0xc6, 0x100302a26\ncall    qword ptr [rax+0B8h]                                           ; +0xc9, 0x100302a29\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0xcf, 0x100302a2f\njz      short loc_100302A3E                                            ; +0xd3, 0x100302a33\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0xd5, 0x100302a35\ncall    __ZdlPv; operator delete(void *)                               ; +0xd9, 0x100302a39\nadd     rsp, 40h                                                       ; +0xde, 0x100302a3e\npop     rbx                                                            ; +0xe2, 0x100302a42\npop     r14                                                            ; +0xe3, 0x100302a43\npop     rbp                                                            ; +0xe5, 0x100302a45\nretn                                                                   ; +0xe6, 0x100302a46", "xrefs": ["GJPathSprite::updateState @ 0x1002fea16", "GJPathPage::unlockAnimationStep3 @ 0x10030213d"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}