{"type": "func", "start": 4565732, "end": 4565920, "name": "EnhancedGameObject::updateUserCoin", "pseudocode": "// \n// EnhancedGameObject::updateUserCoin from 0x45aae4 to 0x45aba0 (188 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x404af8\n// > GameObject::objectFromVector @ 0x45c7a8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:48 +0000\n// \n\nGameManager *__fastcall EnhancedGameObject::updateUserCoin(GameManager *this)\n{\n  int v1; // r4\n  int v2; // r0\n  GameManager *v3; // r0\n  GameManager *v4; // r5\n  void (__fastcall *v5)(GameManager *, int *); // r8\n  int v6; // r2\n  void (__fastcall *v7)(GameManager *, int *); // r8\n  int v8; // r2\n  int v9; // [sp+Ch] [bp-14h] BYREF\n  int v10; // [sp+10h] [bp-10h]\n  int v11; // [sp+14h] [bp-Ch]\n  int v12; // [sp+18h] [bp-8h]\n\n  v1 = (int)this;\n  if ( !*((_BYTE *)this + 549) )\n  {\n    v2 = GameManager::sharedState(this);\n    this = (GameManager *)GJBaseGameLayer::hasUniqueCoin(*(GJBaseGameLayer **)(v2 + 404), (EffectGameObject *)v1);\n    *(_BYTE *)(v1 + 1266) = (_BYTE)this;\n    if ( !this )\n    {\n      v3 = GameObject::createAndAddParticle(v1, *(_DWORD *)(v1 + 784), (int)\"coinEffect.plist\", 0, 2);\n      v4 = v3;\n      if ( v3 )\n      {\n        if ( *(_DWORD *)(v1 + 892) != 142 )\n        {\n          v5 = *(void (__fastcall **)(GameManager *, int *))(*(_DWORD *)v3 + 680);\n          v6 = *(_DWORD *)((*(int (__fastcall **)(GameManager *))(*(_DWORD *)v3 + 676))(v3) + 12);\n          v9 = 1065353216;\n          v10 = 1065353216;\n          v12 = v6;\n          v11 = 1065353216;\n          v5(v4, &v9);\n          v7 = *(void (__fastcall **)(GameManager *, int *))(*(_DWORD *)v4 + 696);\n          v8 = *(_DWORD *)((*(int (__fastcall **)(GameManager *))(*(_DWORD *)v4 + 692))(v4) + 12);\n          v9 = 1056964608;\n          v10 = 1056964608;\n          v11 = 1056964608;\n          v12 = v8;\n          v7(v4, &v9);\n        }\n      }\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, 0.0, -19.0);\n      return (GameManager *)cocos2d::CCPoint::operator=(v1 + 680, &v9);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EnhancedGameObject::updateUserCoin from 0x45aae4 to 0x45aba0 (188 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x404af8\n; > GameObject::objectFromVector @ 0x45c7a8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:48 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x45AAEE)                ; +0x0, 0x45aae4\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x45aae6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x45aaea\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x45aaec\nSUB             SP, SP, #0x20                                          ; +0xa, 0x45aaee\nMOV             R4, R0                                                 ; +0xc, 0x45aaf0\nLDR             R2, [R3]                                               ; +0xe, 0x45aaf2\nMOV             R7, R3                                                 ; +0x10, 0x45aaf4\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x12, 0x45aaf6\nLDRB.W          R2, [R0,#0x225]                                        ; +0x14, 0x45aaf8\nCMP             R2, #0                                                 ; +0x18, 0x45aafc\nBNE             loc_45AB8E                                             ; +0x1a, 0x45aafe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x45ab00\nMOV             R1, R4; EffectGameObject *                             ; +0x20, 0x45ab04\nLDR.W           R0, [R0,#0x194]; this                                  ; +0x22, 0x45ab06\nBL              _ZN15GJBaseGameLayer13hasUniqueCoinEP16EffectGameObject; GJBaseGameLayer::hasUniqueCoin(EffectGameObject *) ; +0x26, 0x45ab0a\nMOV             R3, R0                                                 ; +0x2a, 0x45ab0e\nSTRB.W          R0, [R4,#0x4F2]                                        ; +0x2c, 0x45ab10\nCMP             R0, #0                                                 ; +0x30, 0x45ab14\nBNE             loc_45AB8E                                             ; +0x32, 0x45ab16\nMOVS            R2, #2                                                 ; +0x34, 0x45ab18\nSTR             R2, [SP,#0x20+var_20]                                  ; +0x36, 0x45ab1a\nLDR             R2, =(aCoineffectPlis - 0x45AB2A); \"coinEffect.plist\"  ; +0x38, 0x45ab1c\nMOV             R0, R4                                                 ; +0x3a, 0x45ab1e\nLDR.W           R1, [R4,#0x310]                                        ; +0x3c, 0x45ab20\nADD             R6, SP, #0x20+var_14                                   ; +0x40, 0x45ab24\nADD             R2, PC; \"coinEffect.plist\"                             ; +0x42, 0x45ab26\nBL              _ZN10GameObject20createAndAddParticleEiPKciN7cocos2d15tCCPositionTypeE; GameObject::createAndAddParticle(int,char const*,int,cocos2d::tCCPositionType) ; +0x44, 0x45ab28\nMOV             R5, R0                                                 ; +0x48, 0x45ab2c\nCBZ             R0, loc_45AB7A                                         ; +0x4a, 0x45ab2e\nLDR.W           R3, [R4,#0x37C]                                        ; +0x4c, 0x45ab30\nCMP             R3, #0x8E                                              ; +0x50, 0x45ab34\nBEQ             loc_45AB7A                                             ; +0x52, 0x45ab36\nLDR             R3, [R0]                                               ; +0x54, 0x45ab38\nLDR.W           R8, [R3,#0x2A8]                                        ; +0x56, 0x45ab3a\nLDR.W           R3, [R3,#0x2A4]                                        ; +0x5a, 0x45ab3e\nBLX             R3                                                     ; +0x5e, 0x45ab42\nMOV.W           R3, #0x3F800000                                        ; +0x60, 0x45ab44\nMOV             R1, R6                                                 ; +0x64, 0x45ab48\nLDR             R2, [R0,#0xC]                                          ; +0x66, 0x45ab4a\nMOV             R0, R5                                                 ; +0x68, 0x45ab4c\nSTR             R3, [SP,#0x20+var_14]                                  ; +0x6a, 0x45ab4e\nSTR             R3, [SP,#0x20+var_10]                                  ; +0x6c, 0x45ab50\nSTR             R2, [SP,#0x20+var_8]                                   ; +0x6e, 0x45ab52\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x70, 0x45ab54\nBLX             R8                                                     ; +0x72, 0x45ab56\nLDR             R3, [R5]                                               ; +0x74, 0x45ab58\nMOV             R0, R5                                                 ; +0x76, 0x45ab5a\nLDR.W           R8, [R3,#0x2B8]                                        ; +0x78, 0x45ab5c\nLDR.W           R3, [R3,#0x2B4]                                        ; +0x7c, 0x45ab60\nBLX             R3                                                     ; +0x80, 0x45ab64\nMOV.W           R3, #0x3F000000                                        ; +0x82, 0x45ab66\nMOV             R1, R6                                                 ; +0x86, 0x45ab6a\nLDR             R2, [R0,#0xC]                                          ; +0x88, 0x45ab6c\nMOV             R0, R5                                                 ; +0x8a, 0x45ab6e\nSTR             R3, [SP,#0x20+var_14]                                  ; +0x8c, 0x45ab70\nSTR             R3, [SP,#0x20+var_10]                                  ; +0x8e, 0x45ab72\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x90, 0x45ab74\nSTR             R2, [SP,#0x20+var_8]                                   ; +0x92, 0x45ab76\nBLX             R8                                                     ; +0x94, 0x45ab78\nMOVS            R1, #0; float                                          ; +0x96, 0x45ab7a\nMOV             R0, R6; this                                           ; +0x98, 0x45ab7c\nLDR             R2, flt_45ABA0; float                                  ; +0x9a, 0x45ab7e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x9c, 0x45ab80\nADD.W           R0, R4, #0x2A8                                         ; +0xa0, 0x45ab84\nMOV             R1, R6                                                 ; +0xa4, 0x45ab88\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa6, 0x45ab8a\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xaa, 0x45ab8e\nLDR             R3, [R7]                                               ; +0xac, 0x45ab90\nCMP             R2, R3                                                 ; +0xae, 0x45ab92\nBEQ             loc_45AB9A                                             ; +0xb0, 0x45ab94\nBLX             __stack_chk_fail                                       ; +0xb2, 0x45ab96\nADD             SP, SP, #0x20 ; ' '                                    ; +0xb6, 0x45ab9a\nPOP.W           {R4-R8,PC}                                             ; +0xb8, 0x45ab9c", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x404af8", "GameObject::objectFromVector @ 0x45c7a8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}