{"type": "func", "start": 7856944, "end": 7857264, "name": "EnhancedGameObject::updateUserCoin", "pseudocode": "// \n// EnhancedGameObject::updateUserCoin from 0x77e330 to 0x77e470 (320 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x6fdc98\n// > GameObject::objectFromVector @ 0x781a68\n// > <???> @ 0xe3320\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 12:53:19 +0000\n// \n\n__int64 __fastcall EnhancedGameObject::updateUserCoin(EnhancedGameObject *this)\n{\n  GameManager *v2; // x0\n  __int64 v4; // x0\n  char hasUniqueCoin; // w0\n  GameManager *v6; // x0\n  GameManager *v7; // x21\n  void (__fastcall *v8)(GameManager *, float *); // x23\n  int v9; // w2\n  void (__fastcall *v10)(GameManager *, float *); // x23\n  int v11; // w2\n  float v12; // [xsp+48h] [xbp+48h] BYREF\n  float v13; // [xsp+4Ch] [xbp+4Ch]\n  float v14; // [xsp+50h] [xbp+50h]\n  int v15; // [xsp+54h] [xbp+54h]\n\n  v2 = (GameManager *)*((unsigned __int8 *)this + 649);\n  if ( !(_DWORD)v2 )\n  {\n    v4 = GameManager::sharedState(v2);\n    hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(*(GJBaseGameLayer **)(v4 + 544), this);\n    *((_BYTE *)this + 1446) = hasUniqueCoin;\n    if ( !hasUniqueCoin )\n    {\n      v6 = GameObject::createAndAddParticle((__int64)this, *((_DWORD *)this + 230), (__int64)\"coinEffect.plist\", 0, 2u);\n      v7 = v6;\n      if ( v6 && *((_DWORD *)this + 257) != 142 )\n      {\n        v8 = *(void (__fastcall **)(GameManager *, float *))(*(_QWORD *)v6 + 1360LL);\n        v9 = *(_DWORD *)((*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v6 + 1352LL))(v6) + 12);\n        v12 = 1.0;\n        v13 = 1.0;\n        v14 = 1.0;\n        v15 = v9;\n        v8(v7, &v12);\n        v10 = *(void (__fastcall **)(GameManager *, float *))(*(_QWORD *)v7 + 1392LL);\n        v11 = *(_DWORD *)((*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v7 + 1384LL))(v7) + 12);\n        v12 = 0.5;\n        v13 = 0.5;\n        v14 = 0.5;\n        v15 = v11;\n        v10(v7, &v12);\n      }\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, -19.0);\n      cocos2d::CCPoint::operator=((char *)this + 812, &v12);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EnhancedGameObject::updateUserCoin from 0x77e330 to 0x77e470 (320 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x6fdc98\n; > GameObject::objectFromVector @ 0x781a68\n; > <???> @ 0xe3320\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 12:53:19 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x77e330\nMOV             X29, SP                                                ; +0x4, 0x77e334\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x77e338\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x77e33c\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x77e340\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x77e344\nMOV             X20, X0                                                ; +0x18, 0x77e348\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x77e34c\nLDRB            W0, [X0,#0x289]; this                                  ; +0x20, 0x77e350\nLDR             X1, [X1]                                               ; +0x24, 0x77e354\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x28, 0x77e358\nCBZ             W0, loc_77E388                                         ; +0x2c, 0x77e35c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0x77e360\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x34, 0x77e364\nLDR             X0, [X19]                                              ; +0x38, 0x77e368\nCMP             X1, X0                                                 ; +0x3c, 0x77e36c\nB.NE            loc_77E46C                                             ; +0x40, 0x77e370\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x44, 0x77e374\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x48, 0x77e378\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x4c, 0x77e37c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x50, 0x77e380\nRET                                                                    ; +0x54, 0x77e384\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0x77e388\nLDR             X0, [X0,#0x220]; this                                  ; +0x5c, 0x77e38c\nMOV             X1, X20; EffectGameObject *                            ; +0x60, 0x77e390\nBL              _ZN15GJBaseGameLayer13hasUniqueCoinEP16EffectGameObject; GJBaseGameLayer::hasUniqueCoin(EffectGameObject *) ; +0x64, 0x77e394\nSTRB            W0, [X20,#0x5A6]                                       ; +0x68, 0x77e398\nUXTB            W0, W0                                                 ; +0x6c, 0x77e39c\nCBNZ            W0, loc_77E360                                         ; +0x70, 0x77e3a0\nLDR             W1, [X20,#0x398]                                       ; +0x74, 0x77e3a4\nADRP            X2, #aCoineffectPlis@PAGE; \"coinEffect.plist\"          ; +0x78, 0x77e3a8\nMOV             X0, X20                                                ; +0x7c, 0x77e3ac\nADD             X2, X2, #aCoineffectPlis@PAGEOFF; \"coinEffect.plist\"   ; +0x80, 0x77e3b0\nMOV             W3, #0                                                 ; +0x84, 0x77e3b4\nMOV             W4, #2                                                 ; +0x88, 0x77e3b8\nBL              _ZN10GameObject20createAndAddParticleEiPKciN7cocos2d15tCCPositionTypeE; GameObject::createAndAddParticle(int,char const*,int,cocos2d::tCCPositionType) ; +0x8c, 0x77e3bc\nMOV             X21, X0                                                ; +0x90, 0x77e3c0\nCBZ             X0, loc_77E464                                         ; +0x94, 0x77e3c4\nLDR             W1, [X20,#0x404]                                       ; +0x98, 0x77e3c8\nCMP             W1, #0x8E                                              ; +0x9c, 0x77e3cc\nB.EQ            loc_77E464                                             ; +0xa0, 0x77e3d0\nLDR             X1, [X0]                                               ; +0xa4, 0x77e3d4\nADD             X22, X29, #0x60+var_18                                 ; +0xa8, 0x77e3d8\nLDR             X2, [X1,#0x548]                                        ; +0xac, 0x77e3dc\nLDR             X23, [X1,#0x550]                                       ; +0xb0, 0x77e3e0\nBLR             X2                                                     ; +0xb4, 0x77e3e4\nLDR             W2, [X0,#0xC]                                          ; +0xb8, 0x77e3e8\nMOV             X1, X22                                                ; +0xbc, 0x77e3ec\nFMOV            S0, #1.0                                               ; +0xc0, 0x77e3f0\nMOV             X0, X21                                                ; +0xc4, 0x77e3f4\nSTR             S0, [X29,#0x60+var_18]                                 ; +0xc8, 0x77e3f8\nSTR             S0, [X29,#0x60+var_14]                                 ; +0xcc, 0x77e3fc\nSTR             S0, [X29,#0x60+var_10]                                 ; +0xd0, 0x77e400\nSTR             W2, [X29,#0x60+var_C]                                  ; +0xd4, 0x77e404\nBLR             X23                                                    ; +0xd8, 0x77e408\nLDR             X1, [X21]                                              ; +0xdc, 0x77e40c\nMOV             X0, X21                                                ; +0xe0, 0x77e410\nLDR             X2, [X1,#0x568]                                        ; +0xe4, 0x77e414\nLDR             X23, [X1,#0x570]                                       ; +0xe8, 0x77e418\nBLR             X2                                                     ; +0xec, 0x77e41c\nLDR             W2, [X0,#0xC]                                          ; +0xf0, 0x77e420\nMOV             X1, X22                                                ; +0xf4, 0x77e424\nFMOV            S0, #0.5                                               ; +0xf8, 0x77e428\nMOV             X0, X21                                                ; +0xfc, 0x77e42c\nSTR             S0, [X29,#0x60+var_18]                                 ; +0x100, 0x77e430\nSTR             S0, [X29,#0x60+var_14]                                 ; +0x104, 0x77e434\nSTR             S0, [X29,#0x60+var_10]                                 ; +0x108, 0x77e438\nSTR             W2, [X29,#0x60+var_C]                                  ; +0x10c, 0x77e43c\nBLR             X23                                                    ; +0x110, 0x77e440\nFMOV            S0, WZR; float                                         ; +0x114, 0x77e444\nMOV             X0, X22; this                                          ; +0x118, 0x77e448\nFMOV            S1, #-19.0; float                                      ; +0x11c, 0x77e44c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x120, 0x77e450\nADD             X0, X20, #0x32C                                        ; +0x124, 0x77e454\nMOV             X1, X22                                                ; +0x128, 0x77e458\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x12c, 0x77e45c\nB               loc_77E360                                             ; +0x130, 0x77e460\nADD             X22, X29, #0x60+var_18                                 ; +0x134, 0x77e464\nB               loc_77E444                                             ; +0x138, 0x77e468\nBL              .__stack_chk_fail                                      ; +0x13c, 0x77e46c", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x6fdc98", "GameObject::objectFromVector @ 0x781a68", "<???> @ 0xe3320"], "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"}