{"type": "func", "start": 5370439920, "end": 5370440299, "name": "EnhancedGameObject::updateUserCoin", "pseudocode": "// \n// EnhancedGameObject::updateUserCoin from 0x1401a68f0 to 0x1401a6a6b (379 bytes)\n// \n// 3 xrefs:\n// > GameObject::objectFromVector @ 0x14019e4a1\n// > PlayLayer::createObjectsFromSetupFinished @ 0x1403ad967\n// > <???> @ 0x1406cc0b4\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\n// Hidden C++ exception states: #wind=1\nvoid EnhancedGameObject::updateUserCoin(EnhancedGameObject *a1)\n{\n  float v1; // xmm0_4\n  __int64 v3; // rcx\n  bool hasUniqueCoin; // al\n  cocos2d::CCParticleSystemQuad *v5; // rax\n  cocos2d::CCParticleSystemQuad *v6; // rdi\n  GLfloat a; // xmm1_4\n  GLfloat v8; // xmm1_4\n  __int64 v9; // rax\n  __int64 v10; // [rsp+30h] [rbp-28h] BYREF\n  int v11; // [rsp+38h] [rbp-20h]\n  GLfloat v12; // [rsp+3Ch] [rbp-1Ch]\n\n  if ( !a1->m_editorEnabled )\n  {\n    v3 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v10 = (__int64)operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = qword_1406C2ED8;\n    }\n    hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(*(GJBaseGameLayer **)(v3 + 520), (EffectGameObject *)a1);\n    a1->m_hasUniqueCoin = hasUniqueCoin;\n    if ( !hasUniqueCoin )\n    {\n      v5 = GameObject::createAndAddParticle(a1, a1->m_objectType, \"coinEffect.plist\", 0, kCCPositionTypeGrouped);\n      v6 = v5;\n      if ( v5 )\n      {\n        if ( a1->m_objectID != 142 )\n        {\n          a = v5->getStartColor(v5)->a;\n          v10 = 0x3F8000003F800000LL;\n          v11 = 1065353216;\n          v12 = a;\n          v6->setStartColor(v6, (const cocos2d::ccColor4F *)&v10);\n          v8 = v6->getEndColor(v6)->a;\n          v10 = 0x3F0000003F000000LL;\n          v11 = 1056964608;\n          v12 = v8;\n          v1 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *))v6->setEndColor)(v6, &v10);\n        }\n      }\n      cocos2d::CCPoint::CCPoint(v1, 0.0);\n      cocos2d::CCPoint::operator=(&a1->m_particleOffset, v9);\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateUserCoin from 0x1401a68f0 to 0x1401a6a6b (379 bytes)\n; \n; 3 xrefs:\n; > GameObject::objectFromVector @ 0x14019e4a1\n; > PlayLayer::createObjectsFromSetupFinished @ 0x1403ad967\n; > <???> @ 0x1406cc0b4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401a68f0\npush    rdi                                                            ; +0x5, 0x1401a68f5\nsub     rsp, 50h                                                       ; +0x6, 0x1401a68f6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1401a68fa\nxor     rax, rsp                                                       ; +0x11, 0x1401a6901\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1401a6904\nmov     rbx, rcx                                                       ; +0x19, 0x1401a6909\ncmp     byte ptr [rcx+28Dh], 0                                         ; +0x1c, 0x1401a690c\njnz     loc_1401A6A53                                                  ; +0x23, 0x1401a6913\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x29, 0x1401a6919\ntest    rcx, rcx                                                       ; +0x30, 0x1401a6920\njnz     short loc_1401A6954                                            ; +0x33, 0x1401a6923\nmov     ecx, 668h; Size                                                ; +0x35, 0x1401a6925\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x1401a692a\nmov     [rsp+58h+var_28], rax                                          ; +0x3f, 0x1401a692f\nmov     rcx, rax                                                       ; +0x44, 0x1401a6934\ncall    sub_14017AB00                                                  ; +0x47, 0x1401a6937\nnop                                                                    ; +0x4c, 0x1401a693c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4d, 0x1401a693d\nmov     rdx, [rax]                                                     ; +0x54, 0x1401a6944\nmov     rcx, rax                                                       ; +0x57, 0x1401a6947\ncall    qword ptr [rdx+48h]                                            ; +0x5a, 0x1401a694a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5d, 0x1401a694d\nmov     rdx, rbx                                                       ; +0x64, 0x1401a6954\nmov     rcx, [rcx+208h]                                                ; +0x67, 0x1401a6957\ncall    GJBaseGameLayer__hasUniqueCoin                                 ; +0x6e, 0x1401a695e\nmov     [rbx+5B6h], al                                                 ; +0x73, 0x1401a6963\ntest    al, al                                                         ; +0x79, 0x1401a6969\njnz     loc_1401A6A53                                                  ; +0x7b, 0x1401a696b\nmov     [rsp+58h+var_38], 2                                            ; +0x81, 0x1401a6971\nxor     r9d, r9d                                                       ; +0x89, 0x1401a6979\nlea     r8, aCoineffectPlis; \"coinEffect.plist\"                        ; +0x8c, 0x1401a697c\nmov     edx, [rbx+3A0h]                                                ; +0x93, 0x1401a6983\nmov     rcx, rbx                                                       ; +0x99, 0x1401a6989\ncall    GameObject__createAndAddParticle                               ; +0x9c, 0x1401a698c\nmov     rdi, rax                                                       ; +0xa1, 0x1401a6991\ntest    rax, rax                                                       ; +0xa4, 0x1401a6994\njz      loc_1401A6A2D                                                  ; +0xa7, 0x1401a6997\ncmp     dword ptr [rbx+40Ch], 8Eh                                      ; +0xad, 0x1401a699d\njz      loc_1401A6A2D                                                  ; +0xb7, 0x1401a69a7\nmov     rdx, [rax]                                                     ; +0xbd, 0x1401a69ad\nmov     rcx, rax                                                       ; +0xc0, 0x1401a69b0\ncall    qword ptr [rdx+530h]                                           ; +0xc3, 0x1401a69b3\nmovss   xmm1, dword ptr [rax+0Ch]                                      ; +0xc9, 0x1401a69b9\nmov     dword ptr [rsp+58h+var_28], 3F800000h                          ; +0xce, 0x1401a69be\nmov     dword ptr [rsp+58h+var_28+4], 3F800000h                        ; +0xd6, 0x1401a69c6\nmov     [rsp+58h+var_20], 3F800000h                                    ; +0xde, 0x1401a69ce\nmovss   [rsp+58h+var_1C], xmm1                                         ; +0xe6, 0x1401a69d6\nmov     rax, [rdi]                                                     ; +0xec, 0x1401a69dc\nlea     rdx, [rsp+58h+var_28]                                          ; +0xef, 0x1401a69df\nmov     rcx, rdi                                                       ; +0xf4, 0x1401a69e4\ncall    qword ptr [rax+538h]                                           ; +0xf7, 0x1401a69e7\nmov     rax, [rdi]                                                     ; +0xfd, 0x1401a69ed\nmov     rcx, rdi                                                       ; +0x100, 0x1401a69f0\ncall    qword ptr [rax+550h]                                           ; +0x103, 0x1401a69f3\nmovss   xmm1, dword ptr [rax+0Ch]                                      ; +0x109, 0x1401a69f9\nmov     dword ptr [rsp+58h+var_28], 3F000000h                          ; +0x10e, 0x1401a69fe\nmov     dword ptr [rsp+58h+var_28+4], 3F000000h                        ; +0x116, 0x1401a6a06\nmov     [rsp+58h+var_20], 3F000000h                                    ; +0x11e, 0x1401a6a0e\nmovss   [rsp+58h+var_1C], xmm1                                         ; +0x126, 0x1401a6a16\nmov     rax, [rdi]                                                     ; +0x12c, 0x1401a6a1c\nlea     rdx, [rsp+58h+var_28]                                          ; +0x12f, 0x1401a6a1f\nmov     rcx, rdi                                                       ; +0x134, 0x1401a6a24\ncall    qword ptr [rax+558h]                                           ; +0x137, 0x1401a6a27\nmovss   xmm2, cs:dword_140623894                                       ; +0x13d, 0x1401a6a2d\nxorps   xmm1, xmm1                                                     ; +0x145, 0x1401a6a35\nlea     rcx, [rsp+58h+var_28]                                          ; +0x148, 0x1401a6a38\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14d, 0x1401a6a3d\nmov     rdx, rax                                                       ; +0x153, 0x1401a6a43\nlea     rcx, [rbx+334h]                                                ; +0x156, 0x1401a6a46\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x15d, 0x1401a6a4d\nmov     rcx, [rsp+58h+var_18]                                          ; +0x163, 0x1401a6a53\nxor     rcx, rsp; StackCookie                                          ; +0x168, 0x1401a6a58\ncall    __security_check_cookie                                        ; +0x16b, 0x1401a6a5b\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x170, 0x1401a6a60\nadd     rsp, 50h                                                       ; +0x175, 0x1401a6a65\npop     rdi                                                            ; +0x179, 0x1401a6a69\nretn                                                                   ; +0x17a, 0x1401a6a6a", "xrefs": ["GameObject::objectFromVector @ 0x14019e4a1", "PlayLayer::createObjectsFromSetupFinished @ 0x1403ad967", "<???> @ 0x1406cc0b4"], "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"}