{"type": "func", "start": 4298719288, "end": 4298719672, "name": "EndLevelLayer::showLayer", "pseudocode": "// \n// EndLevelLayer::showLayer from 0x100394038 to 0x1003941b8 (384 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009415f0\n// \n// This function is hookable on this platform (idp: arm, 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:03:39 +0000\n// \n\n__int64 __fastcall EndLevelLayer::showLayer(__int64 *a1, int a2)\n{\n  __int64 v4; // x0\n  char v5; // w0\n  char v6; // w21\n  _OWORD *v7; // x0\n  _OWORD *v8; // x20\n  char v9; // w0\n  __int64 v10; // x1\n  __int64 v11; // x2\n  __int64 v12; // x3\n  __int64 v13; // x4\n  __int64 v14; // x5\n  __int64 v15; // x6\n  __int64 v16; // x7\n  __int64 v17; // x0\n  float *v18; // x0\n  float v19; // s8\n  __int64 v20; // x0\n\n  v4 = GameManager::sharedState(a1);\n  GameManager::getGameVariable(v4, \"0168\");\n  v6 = v5;\n  cocos2d::CCNode::stopAllActions(a1[72]);\n  (*(void (__fastcall **)(__int64 *))(*a1 + 1344))(a1);\n  if ( (v6 & 1) != 0 || a2 )\n  {\n    (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1[72] + 184LL))(a1[72], a1 + 68);\n    (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1168))(a1, 100);\n    (*(void (__fastcall **)(__int64 *))(*a1 + 1360))(a1);\n    v19 = 0.0;\n    sub_1003941B8(a1, 0.0);\n    EndLevelLayer::playCoinEffect(a1, 0.0);\n  }\n  else\n  {\n    v7 = cocos2d::CCMoveTo::create((double *)a1 + 68, 1.0);\n    v8 = cocos2d::CCEaseBounceOut::create((__int64)v7);\n    v9 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)a1, 1360, 1);\n    v17 = sub_10021D420((__int64)v8, v10, v11, v12, v13, v14, v15, v16, v9);\n    cocos2d::CCNode::runAction(a1[72], v17);\n    (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1168))(a1, 0);\n    v18 = cocos2d::CCFadeTo::create(100, 1.0);\n    cocos2d::CCNode::runAction((__int64)a1, (__int64)v18);\n    v19 = 0.7;\n    EndLevelLayer::playCoinEffect(a1, 0.7);\n    v20 = a1[79];\n    if ( v20 )\n      v19 = (float)((float)(unsigned int)sub_1002E757C(v20) * 0.35) + 0.7;\n    sub_1003941B8(a1, v19);\n  }\n  sub_100394684(a1, v19);\n  return sub_1003949B0(a1, v19);\n}", "assembly": "; \n; EndLevelLayer::showLayer from 0x100394038 to 0x1003941b8 (384 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009415f0\n; \n; This function is hookable on this platform (idp: arm, 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:03:39 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100394038\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x10039403c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100394040\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100394044\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100394048\nADD             X29, SP, #0x40                                         ; +0x14, 0x10039404c\nMOV             X20, X1                                                ; +0x18, 0x100394050\nMOV             X19, X0                                                ; +0x1c, 0x100394054\nBL              GameManager__sharedState                               ; +0x20, 0x100394058\nADRL            X1, a0168; \"0168\"                                      ; +0x24, 0x10039405c\nBL              GameManager__getGameVariable                           ; +0x2c, 0x100394064\nMOV             X21, X0                                                ; +0x30, 0x100394068\nLDR             X0, [X19,#0x240]                                       ; +0x34, 0x10039406c\nBL              cocos2d__CCNode__stopAllActions                        ; +0x38, 0x100394070\nLDR             X8, [X19]                                              ; +0x3c, 0x100394074\nLDR             X8, [X8,#0x540]                                        ; +0x40, 0x100394078\nMOV             X0, X19                                                ; +0x44, 0x10039407c\nBLR             X8                                                     ; +0x48, 0x100394080\nTBNZ            W21, #0, loc_100394138                                 ; +0x4c, 0x100394084\nCBNZ            W20, loc_100394138                                     ; +0x50, 0x100394088\nFMOV            S0, #1.0                                               ; +0x54, 0x10039408c\nADD             X0, X19, #0x220                                        ; +0x58, 0x100394090\nBL              cocos2d__CCMoveTo__create                              ; +0x5c, 0x100394094\nBL              cocos2d__CCEaseBounceOut__create                       ; +0x60, 0x100394098\nMOV             X20, X0                                                ; +0x64, 0x10039409c\nMOV             X0, X19                                                ; +0x68, 0x1003940a0\nMOV             W1, #0x550                                             ; +0x6c, 0x1003940a4\nMOV             W2, #1                                                 ; +0x70, 0x1003940a8\nBL              cocos2d__CCCallFunc__create                            ; +0x74, 0x1003940ac\nSTP             X0, XZR, [SP,#0x40+var_40]                             ; +0x78, 0x1003940b0\nMOV             X0, X20                                                ; +0x7c, 0x1003940b4\nBL              sub_10021D420                                          ; +0x80, 0x1003940b8\nMOV             X1, X0                                                 ; +0x84, 0x1003940bc\nLDR             X0, [X19,#0x240]                                       ; +0x88, 0x1003940c0\nBL              cocos2d__CCNode__runAction                             ; +0x8c, 0x1003940c4\nLDR             X8, [X19]                                              ; +0x90, 0x1003940c8\nLDR             X8, [X8,#0x490]                                        ; +0x94, 0x1003940cc\nMOV             X0, X19                                                ; +0x98, 0x1003940d0\nMOV             W1, #0                                                 ; +0x9c, 0x1003940d4\nBLR             X8                                                     ; +0xa0, 0x1003940d8\nFMOV            S0, #1.0                                               ; +0xa4, 0x1003940dc\nMOV             W0, #0x64 ; 'd'                                        ; +0xa8, 0x1003940e0\nBL              cocos2d__CCFadeTo__create                              ; +0xac, 0x1003940e4\nMOV             X1, X0                                                 ; +0xb0, 0x1003940e8\nMOV             X0, X19                                                ; +0xb4, 0x1003940ec\nBL              cocos2d__CCNode__runAction                             ; +0xb8, 0x1003940f0\nADRP            X20, #dword_10075BD20@PAGE                             ; +0xbc, 0x1003940f4\nLDR             S8, [X20,#dword_10075BD20@PAGEOFF]                     ; +0xc0, 0x1003940f8\nMOV             X0, X19                                                ; +0xc4, 0x1003940fc\nFMOV            S0, S8                                                 ; +0xc8, 0x100394100\nBL              EndLevelLayer__playCoinEffect                          ; +0xcc, 0x100394104\nLDR             X0, [X19,#0x278]                                       ; +0xd0, 0x100394108\nCBZ             X0, loc_100394128                                      ; +0xd4, 0x10039410c\nBL              sub_1002E757C                                          ; +0xd8, 0x100394110\nUCVTF           S0, W0                                                 ; +0xdc, 0x100394114\nLDR             S1, [X20,#dword_10075BD20@PAGEOFF]                     ; +0xe0, 0x100394118\nADRP            X8, #dword_10075BD44@PAGE                              ; +0xe4, 0x10039411c\nLDR             S2, [X8,#dword_10075BD44@PAGEOFF]                      ; +0xe8, 0x100394120\nFMADD           S8, S0, S2, S1                                         ; +0xec, 0x100394124\nMOV             X0, X19                                                ; +0xf0, 0x100394128\nFMOV            S0, S8                                                 ; +0xf4, 0x10039412c\nBL              sub_1003941B8                                          ; +0xf8, 0x100394130\nB               loc_10039418C                                          ; +0xfc, 0x100394134\nLDR             X0, [X19,#0x240]                                       ; +0x100, 0x100394138\nLDR             X8, [X0]                                               ; +0x104, 0x10039413c\nLDR             X8, [X8,#0xB8]                                         ; +0x108, 0x100394140\nADD             X1, X19, #0x220                                        ; +0x10c, 0x100394144\nBLR             X8                                                     ; +0x110, 0x100394148\nLDR             X8, [X19]                                              ; +0x114, 0x10039414c\nLDR             X8, [X8,#0x490]                                        ; +0x118, 0x100394150\nMOV             X0, X19                                                ; +0x11c, 0x100394154\nMOV             W1, #0x64 ; 'd'                                        ; +0x120, 0x100394158\nBLR             X8                                                     ; +0x124, 0x10039415c\nLDR             X8, [X19]                                              ; +0x128, 0x100394160\nLDR             X8, [X8,#0x550]                                        ; +0x12c, 0x100394164\nMOV             X0, X19                                                ; +0x130, 0x100394168\nBLR             X8                                                     ; +0x134, 0x10039416c\nFMOV            S8, WZR                                                ; +0x138, 0x100394170\nFMOV            S0, WZR                                                ; +0x13c, 0x100394174\nMOV             X0, X19                                                ; +0x140, 0x100394178\nBL              sub_1003941B8                                          ; +0x144, 0x10039417c\nFMOV            S0, WZR                                                ; +0x148, 0x100394180\nMOV             X0, X19                                                ; +0x14c, 0x100394184\nBL              EndLevelLayer__playCoinEffect                          ; +0x150, 0x100394188\nMOV             X0, X19                                                ; +0x154, 0x10039418c\nFMOV            S0, S8                                                 ; +0x158, 0x100394190\nBL              sub_100394684                                          ; +0x15c, 0x100394194\nMOV             X0, X19                                                ; +0x160, 0x100394198\nFMOV            S0, S8                                                 ; +0x164, 0x10039419c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x168, 0x1003941a0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x16c, 0x1003941a4\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x170, 0x1003941a8\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x174, 0x1003941ac\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x178, 0x1003941b0\nB               sub_1003949B0                                          ; +0x17c, 0x1003941b4", "xrefs": ["<???> @ 0x1009415f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}