{"type": "func", "start": 4301043664, "end": 4301043876, "name": "GameObject::addNewSlope01", "pseudocode": "// \n// GameObject::addNewSlope01 from 0x1005cb7d0 to 0x1005cb8a4 (212 bytes)\n// \n// 2 xrefs:\n// > GameObject::setupCustomSprites @ 0x100446bda\n// > GameObject::setupCustomSprites @ 0x100453b01\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 GameObject::addNewSlope01(GameObject *a1, bool a2)\n{\n  char *v2; // rbx\n  cocos2d::CCSprite *v3; // r15\n  unsigned __int64 v4; // [rsp+0h] [rbp-30h] BYREF\n  double v5; // [rsp+8h] [rbp-28h] BYREF\n  unsigned __int64 v6[4]; // [rsp+10h] [rbp-20h] BYREF\n  double v7; // 0:xmm0_8.8\n\n  if ( a2 )\n    a1->m_bDontDraw = 1;\n  v2 = (char *)operator new(0x20u);\n  strcpy(v2, \"blockOutline_14new_001.png\");\n  sub_10028CC60(v6, &dbl_1009A2C70);\n  a1->m_hasCustomChild = 1;\n  *(cocos2d::CCPoint *)&v7 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v4, (const cocos2d::CCPoint *)a1);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(v2);\n  sub_10028CCE0(&v5, &v4, v6);\n  ((void (__fastcall *)(cocos2d::CCSprite *, double *, double))v3->setPosition)(v3, &v5, v7);\n  ((void (__fastcall *)(GameObject *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v3, 2);\n  operator delete(v2);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setRotation)(v3, -45.0);\n}", "assembly": "; \n; GameObject::addNewSlope01 from 0x1005cb7d0 to 0x1005cb8a4 (212 bytes)\n; \n; 2 xrefs:\n; > GameObject::setupCustomSprites @ 0x100446bda\n; > GameObject::setupCustomSprites @ 0x100453b01\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, 0x1005cb7d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005cb7d1\npush    r15                                                            ; +0x4, 0x1005cb7d4\npush    r14                                                            ; +0x6, 0x1005cb7d6\npush    rbx                                                            ; +0x8, 0x1005cb7d8\nsub     rsp, 18h                                                       ; +0x9, 0x1005cb7d9\nmov     r14, rdi                                                       ; +0xd, 0x1005cb7dd\ntest    esi, esi                                                       ; +0x10, 0x1005cb7e0\njz      short loc_1005CB7EC                                            ; +0x12, 0x1005cb7e2\nmov     byte ptr [r14+22Fh], 1                                         ; +0x14, 0x1005cb7e4\nmov     edi, 20h ; ' '; __sz                                           ; +0x1c, 0x1005cb7ec\ncall    __Znwm; operator new(ulong)                                    ; +0x21, 0x1005cb7f1\nmov     rbx, rax                                                       ; +0x26, 0x1005cb7f6\nmovups  xmm0, xmmword ptr cs:aBlockoutline14; \"blockOutline_14new_001.png\" ; +0x29, 0x1005cb7f9\nmovups  xmmword ptr [rax], xmm0                                        ; +0x30, 0x1005cb800\nmovups  xmm0, xmmword ptr cs:aBlockoutline14+0Ah; \"ne_14new_001.png\"   ; +0x33, 0x1005cb803\nmovups  xmmword ptr [rax+0Ah], xmm0                                    ; +0x3a, 0x1005cb80a\nmov     byte ptr [rax+1Ah], 0                                          ; +0x3e, 0x1005cb80e\nlea     rsi, dbl_1009A2C70                                             ; +0x42, 0x1005cb812\nlea     rdi, [rbp+var_20]                                              ; +0x49, 0x1005cb819\ncall    sub_10028CC60                                                  ; +0x4d, 0x1005cb81d\nmov     byte ptr [r14+376h], 1                                         ; +0x52, 0x1005cb822\nlea     rdx, dbl_1009A2C70                                             ; +0x5a, 0x1005cb82a\nlea     rdi, [rbp+var_30]                                              ; +0x61, 0x1005cb831\nmov     rsi, r14                                                       ; +0x65, 0x1005cb835\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x68, 0x1005cb838\nmov     rdi, rbx                                                       ; +0x6d, 0x1005cb83d\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x70, 0x1005cb840\nmov     r15, rax                                                       ; +0x75, 0x1005cb845\nlea     rdi, [rbp+var_28]                                              ; +0x78, 0x1005cb848\nlea     rsi, [rbp+var_30]                                              ; +0x7c, 0x1005cb84c\nlea     rdx, [rbp+var_20]                                              ; +0x80, 0x1005cb850\ncall    sub_10028CCE0                                                  ; +0x84, 0x1005cb854\nmov     rax, [r15]                                                     ; +0x89, 0x1005cb859\nlea     rsi, [rbp+var_28]                                              ; +0x8c, 0x1005cb85c\nmov     rdi, r15                                                       ; +0x90, 0x1005cb860\ncall    qword ptr [rax+0B8h]                                           ; +0x93, 0x1005cb863\nmov     rax, [r14]                                                     ; +0x99, 0x1005cb869\nmov     rdi, r14                                                       ; +0x9c, 0x1005cb86c\nmov     rsi, r15                                                       ; +0x9f, 0x1005cb86f\nmov     edx, 2                                                         ; +0xa2, 0x1005cb872\ncall    qword ptr [rax+1C0h]                                           ; +0xa7, 0x1005cb877\nmov     rdi, rbx; __p                                                  ; +0xad, 0x1005cb87d\ncall    __ZdlPv; operator delete(void *)                               ; +0xb0, 0x1005cb880\nmov     rax, [r15]                                                     ; +0xb5, 0x1005cb885\nmovss   xmm0, cs:dword_10081523C                                       ; +0xb8, 0x1005cb888\nmov     rdi, r15                                                       ; +0xc0, 0x1005cb890\ncall    qword ptr [rax+158h]                                           ; +0xc3, 0x1005cb893\nadd     rsp, 18h                                                       ; +0xc9, 0x1005cb899\npop     rbx                                                            ; +0xcd, 0x1005cb89d\npop     r14                                                            ; +0xce, 0x1005cb89e\npop     r15                                                            ; +0xd0, 0x1005cb8a0\npop     rbp                                                            ; +0xd2, 0x1005cb8a2\nretn                                                                   ; +0xd3, 0x1005cb8a3", "xrefs": ["GameObject::setupCustomSprites @ 0x100446bda", "GameObject::setupCustomSprites @ 0x100453b01"], "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"}