{"type": "func", "start": 4299807648, "end": 4299807826, "name": "DungeonBarsSprite::create", "pseudocode": "// \n// DungeonBarsSprite::create from 0x10049dba0 to 0x10049dc52 (178 bytes)\n// \n// 1 xrefs:\n// > SecretLayer3::init @ 0x10049d0ad\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:30:51 +0000\n// \n\n_QWORD *__fastcall DungeonBarsSprite::create(double a1)\n{\n  __int64 v1; // rax\n  _QWORD *v2; // rbx\n  char *v3; // rax\n  __int64 v4; // r14\n  float v6[8]; // [rsp+0h] [rbp-20h] BYREF\n\n  *(_QWORD *)v6 = v1;\n  v2 = operator new(0x148u);\n  cocos2d::CCNode::CCNode((__int64)v2);\n  *v2 = off_100B51590;\n  v2[40] = 0;\n  if ( cocos2d::CCNode::init() )\n  {\n    v3 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)\"dungeon_bars_001.png\", a1);\n    v2[40] = v3;\n    (*(void (__fastcall **)(_QWORD *, char *))(*v2 + 456LL))(v2, v3);\n    v4 = v2[40];\n    sub_100278250(v6, 0.0, -2.0);\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, v6);\n    cocos2d::CCObject::autorelease((__int64)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; DungeonBarsSprite::create from 0x10049dba0 to 0x10049dc52 (178 bytes)\n; \n; 1 xrefs:\n; > SecretLayer3::init @ 0x10049d0ad\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:30:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x10049dba0\nmov     rbp, rsp                                                       ; +0x1, 0x10049dba1\npush    r15                                                            ; +0x4, 0x10049dba4\npush    r14                                                            ; +0x6, 0x10049dba6\npush    rbx                                                            ; +0x8, 0x10049dba8\npush    rax                                                            ; +0x9, 0x10049dba9\nmov     edi, 148h; __sz                                                ; +0xa, 0x10049dbaa\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x10049dbaf\nmov     rbx, rax                                                       ; +0x14, 0x10049dbb4\nmov     rdi, rax                                                       ; +0x17, 0x10049dbb7\ncall    cocos2d__CCNode__CCNode                                        ; +0x1a, 0x10049dbba\nlea     rax, off_100B51590                                             ; +0x1f, 0x10049dbbf\nmov     [rbx], rax                                                     ; +0x26, 0x10049dbc6\nmov     qword ptr [rbx+140h], 0                                        ; +0x29, 0x10049dbc9\nmov     rdi, rbx                                                       ; +0x34, 0x10049dbd4\ncall    cocos2d__CCNode__init                                          ; +0x37, 0x10049dbd7\ntest    al, al                                                         ; +0x3c, 0x10049dbdc\njz      short loc_10049DC39                                            ; +0x3e, 0x10049dbde\nlea     rdi, aDungeonBars001; \"dungeon_bars_001.png\"                   ; +0x40, 0x10049dbe0\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x47, 0x10049dbe7\nmov     [rbx+140h], rax                                                ; +0x4c, 0x10049dbec\nmov     rcx, [rbx]                                                     ; +0x53, 0x10049dbf3\nmov     rdi, rbx                                                       ; +0x56, 0x10049dbf6\nmov     rsi, rax                                                       ; +0x59, 0x10049dbf9\ncall    qword ptr [rcx+1C8h]                                           ; +0x5c, 0x10049dbfc\nmov     r14, [rbx+140h]                                                ; +0x62, 0x10049dc02\nlea     r15, [rbp+var_20]                                              ; +0x69, 0x10049dc09\nmovss   xmm1, cs:dword_100A039C0                                       ; +0x6d, 0x10049dc0d\nxorps   xmm0, xmm0                                                     ; +0x75, 0x10049dc15\nmov     rdi, r15                                                       ; +0x78, 0x10049dc18\ncall    sub_100278250                                                  ; +0x7b, 0x10049dc1b\nmov     rax, [r14]                                                     ; +0x80, 0x10049dc20\nmov     rdi, r14                                                       ; +0x83, 0x10049dc23\nmov     rsi, r15                                                       ; +0x86, 0x10049dc26\ncall    qword ptr [rax+0B8h]                                           ; +0x89, 0x10049dc29\nmov     rdi, rbx                                                       ; +0x8f, 0x10049dc2f\ncall    cocos2d__CCObject__autorelease                                 ; +0x92, 0x10049dc32\njmp     short loc_10049DC44                                            ; +0x97, 0x10049dc37\nmov     rax, [rbx]                                                     ; +0x99, 0x10049dc39\nmov     rdi, rbx                                                       ; +0x9c, 0x10049dc3c\ncall    qword ptr [rax+10h]                                            ; +0x9f, 0x10049dc3f\nxor     ebx, ebx                                                       ; +0xa2, 0x10049dc42\nmov     rax, rbx                                                       ; +0xa4, 0x10049dc44\nadd     rsp, 8                                                         ; +0xa7, 0x10049dc47\npop     rbx                                                            ; +0xab, 0x10049dc4b\npop     r14                                                            ; +0xac, 0x10049dc4c\npop     r15                                                            ; +0xae, 0x10049dc4e\npop     rbp                                                            ; +0xb0, 0x10049dc50\nretn                                                                   ; +0xb1, 0x10049dc51", "xrefs": ["SecretLayer3::init @ 0x10049d0ad"], "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"}