{"type": "func", "start": 5374496784, "end": 5374496910, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x140585010 to 0x14058508e (126 bytes)\n// \n// 3 xrefs:\n// > SecretLayer3::init @ 0x1405802ec\n// > <???> @ 0x1407df5e0\n// > <???> @ 0x14092ca14\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 11:34:27 +0000\n// \n\nbool __fastcall DungeonBarsSprite::init(cocos2d::CCNode *a1)\n{\n  bool result; // al\n  struct cocos2d::CCSprite *v3; // rax\n  __int64 v4; // rcx\n  __int64 *v5; // rdi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  char v8; // [rsp+38h] [rbp+10h] BYREF\n\n  result = cocos2d::CCNode::init(a1);\n  if ( result )\n  {\n    v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"dungeon_bars_001.png\");\n    v4 = *(_QWORD *)a1;\n    *((_QWORD *)a1 + 40) = v3;\n    (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *))(v4 + 464))(a1, v3);\n    v5 = *((__int64 **)a1 + 40);\n    v6 = *v5;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, 0.0, -2.0);\n    (*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v5, v7);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0x140585010 to 0x14058508e (126 bytes)\n; \n; 3 xrefs:\n; > SecretLayer3::init @ 0x1405802ec\n; > <???> @ 0x1407df5e0\n; > <???> @ 0x14092ca14\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 11:34:27 +0000\n; \npush    rdi                                                            ; +0x0, 0x140585010\nsub     rsp, 20h                                                       ; +0x2, 0x140585012\nmov     rdi, rcx                                                       ; +0x6, 0x140585016\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x9, 0x140585019\ntest    al, al                                                         ; +0xf, 0x14058501f\njnz     short loc_140585029                                            ; +0x11, 0x140585021\nadd     rsp, 20h                                                       ; +0x13, 0x140585023\npop     rdi                                                            ; +0x17, 0x140585027\nretn                                                                   ; +0x18, 0x140585028\nlea     rcx, aDungeonBars001; \"dungeon_bars_001.png\"                   ; +0x19, 0x140585029\nmov     [rsp+28h+arg_0], rbx                                           ; +0x20, 0x140585030\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x25, 0x140585035\nmov     rcx, [rdi]                                                     ; +0x2b, 0x14058503b\nmov     rdx, rax                                                       ; +0x2e, 0x14058503e\nmov     [rdi+140h], rax                                                ; +0x31, 0x140585041\nmov     r8, [rcx+1D0h]                                                 ; +0x38, 0x140585048\nmov     rcx, rdi                                                       ; +0x3f, 0x14058504f\ncall    r8                                                             ; +0x42, 0x140585052\nmov     rdi, [rdi+140h]                                                ; +0x45, 0x140585055\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x4c, 0x14058505c\nmovss   xmm2, cs:dword_140835CD0                                       ; +0x51, 0x140585061\nxorps   xmm1, xmm1                                                     ; +0x59, 0x140585069\nmov     rbx, [rdi]                                                     ; +0x5c, 0x14058506c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5f, 0x14058506f\nmov     rdx, rax                                                       ; +0x65, 0x140585075\nmov     rcx, rdi                                                       ; +0x68, 0x140585078\ncall    qword ptr [rbx+0B8h]                                           ; +0x6b, 0x14058507b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x140585081\nmov     al, 1                                                          ; +0x76, 0x140585086\nadd     rsp, 20h                                                       ; +0x78, 0x140585088\npop     rdi                                                            ; +0x7c, 0x14058508c\nretn                                                                   ; +0x7d, 0x14058508d", "xrefs": ["SecretLayer3::init @ 0x1405802ec", "<???> @ 0x1407df5e0", "<???> @ 0x14092ca14"], "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"}