{"type": "func", "start": 4296240352, "end": 4296240441, "name": "GJBaseGameLayer::controlGradientTrigger", "pseudocode": "// \n// GJBaseGameLayer::controlGradientTrigger from 0x100136ce0 to 0x100136d39 (89 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall GJBaseGameLayer::controlGradientTrigger(\n        GJBaseGameLayer *a1,\n        GradientTriggerObject *a2,\n        GJActionCommand a3)\n{\n  int m_gradientID; // ecx\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  if ( a3 == Resume )\n  {\n    GJBaseGameLayer::triggerGradientCommand(a1, a2);\n  }\n  else\n  {\n    m_gradientID = 999;\n    if ( a2->m_gradientID < 999 )\n      m_gradientID = a2->m_gradientID;\n    v4 = cocos2d::CCDictionary::objectForKey(a1->m_gradientLayers, m_gradientID);\n    if ( v4 )\n    {\n      v5 = v4;\n      ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v4->__vftable[6].acceptVisitor)(v4, 0);\n      *(_QWORD *)&v5[10].m_uAutoReleaseCount = 0;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlGradientTrigger from 0x100136ce0 to 0x100136d39 (89 bytes)\n; \n; 0 xrefs:\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\ncmp     edx, 2                                                         ; +0x0, 0x100136ce0\njz      GJBaseGameLayer__triggerGradientCommand                        ; +0x3, 0x100136ce3\npush    rbp                                                            ; +0x9, 0x100136ce9\nmov     rbp, rsp                                                       ; +0xa, 0x100136cea\npush    rbx                                                            ; +0xd, 0x100136ced\npush    rax                                                            ; +0xe, 0x100136cee\nmov     eax, [rsi+734h]                                                ; +0xf, 0x100136cef\ncmp     eax, 3E7h                                                      ; +0x15, 0x100136cf5\nmov     ecx, 3E7h                                                      ; +0x1a, 0x100136cfa\ncmovl   ecx, eax                                                       ; +0x1f, 0x100136cff\nmov     rdi, [rdi+2FD0h]                                               ; +0x22, 0x100136d02\nmovsxd  rsi, ecx                                                       ; +0x29, 0x100136d09\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x2c, 0x100136d0c\ntest    rax, rax                                                       ; +0x31, 0x100136d11\njz      short loc_100136D32                                            ; +0x34, 0x100136d14\nmov     rcx, [rax]                                                     ; +0x36, 0x100136d16\nmov     rdi, rax                                                       ; +0x39, 0x100136d19\nxor     esi, esi                                                       ; +0x3c, 0x100136d1c\nmov     rbx, rax                                                       ; +0x3e, 0x100136d1e\ncall    qword ptr [rcx+200h]                                           ; +0x41, 0x100136d21\nmov     qword ptr [rbx+248h], 0                                        ; +0x47, 0x100136d27\nadd     rsp, 8                                                         ; +0x52, 0x100136d32\npop     rbx                                                            ; +0x56, 0x100136d36\npop     rbp                                                            ; +0x57, 0x100136d37\nretn                                                                   ; +0x58, 0x100136d38", "xrefs": [], "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"}