{"type": "func", "start": 5372835808, "end": 5372835935, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x1403ef7e0 to 0x1403ef85f (127 bytes)\n// \n// 3 xrefs:\n// > SecretLayer3::init @ 0x1403ea6dd\n// > <???> @ 0x1405d3470\n// > <???> @ 0x1406d8114\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\nbool DungeonBarsSprite::init(DungeonBarsSprite *a1)\n{\n  bool result; // al\n  cocos2d::CCSprite *v3; // rax\n  DungeonBarsSprite_vtbl *v4; // r8\n  float v5; // xmm0_4\n  cocos2d::CCSprite_vtbl *v6; // rbx\n  const cocos2d::CCPoint *v7; // rax\n\n  result = cocos2d::CCNode::init(a1);\n  if ( result )\n  {\n    v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"dungeon_bars_001.png\");\n    v4 = a1->__vftable;\n    a1->m_barsSprite = v3;\n    v5 = ((float (__fastcall *)(DungeonBarsSprite *, cocos2d::CCSprite *))v4->addChild_1)(a1, v3);\n    v6 = a1->m_barsSprite->__vftable;\n    cocos2d::CCPoint::CCPoint(v5, 0.0);\n    v6->setPosition_0(a1->m_barsSprite, v7);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0x1403ef7e0 to 0x1403ef85f (127 bytes)\n; \n; 3 xrefs:\n; > SecretLayer3::init @ 0x1403ea6dd\n; > <???> @ 0x1405d3470\n; > <???> @ 0x1406d8114\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    rdi                                                            ; +0x0, 0x1403ef7e0\nsub     rsp, 20h                                                       ; +0x2, 0x1403ef7e2\nmov     rdi, rcx                                                       ; +0x6, 0x1403ef7e6\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x9, 0x1403ef7e9\ntest    al, al                                                         ; +0xf, 0x1403ef7ef\njnz     short loc_1403EF7F9                                            ; +0x11, 0x1403ef7f1\nadd     rsp, 20h                                                       ; +0x13, 0x1403ef7f3\npop     rdi                                                            ; +0x17, 0x1403ef7f7\nretn                                                                   ; +0x18, 0x1403ef7f8\nlea     rcx, aDungeonBars001; \"dungeon_bars_001.png\"                   ; +0x19, 0x1403ef7f9\nmov     [rsp+28h+arg_0], rbx                                           ; +0x20, 0x1403ef800\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x25, 0x1403ef805\nmov     r8, [rdi]                                                      ; +0x2b, 0x1403ef80b\nmov     rcx, rdi                                                       ; +0x2e, 0x1403ef80e\nmov     rdx, rax                                                       ; +0x31, 0x1403ef811\nmov     [rdi+140h], rax                                                ; +0x34, 0x1403ef814\ncall    qword ptr [r8+1C0h]                                            ; +0x3b, 0x1403ef81b\nmov     rax, [rdi+140h]                                                ; +0x42, 0x1403ef822\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x49, 0x1403ef829\nmovss   xmm2, cs:dword_140623730                                       ; +0x4e, 0x1403ef82e\nxorps   xmm1, xmm1                                                     ; +0x56, 0x1403ef836\nmov     rbx, [rax]                                                     ; +0x59, 0x1403ef839\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5c, 0x1403ef83c\nmov     rcx, [rdi+140h]                                                ; +0x62, 0x1403ef842\nmov     rdx, rax                                                       ; +0x69, 0x1403ef849\ncall    qword ptr [rbx+0B8h]                                           ; +0x6c, 0x1403ef84c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x1403ef852\nmov     al, 1                                                          ; +0x77, 0x1403ef857\nadd     rsp, 20h                                                       ; +0x79, 0x1403ef859\npop     rdi                                                            ; +0x7d, 0x1403ef85d\nretn                                                                   ; +0x7e, 0x1403ef85e", "xrefs": ["SecretLayer3::init @ 0x1403ea6dd", "<???> @ 0x1405d3470", "<???> @ 0x1406d8114"], "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"}