{"type": "func", "start": 4296099504, "end": 4296099593, "name": "GJBaseGameLayer::controlGradientTrigger", "pseudocode": "// \n// GJBaseGameLayer::controlGradientTrigger from 0x1001146b0 to 0x100114709 (89 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 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:24:33 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::controlGradientTrigger(__int64 a1, __int64 a2, int a3)\n{\n  __int64 result; // rax\n  __int64 v4; // rbx\n\n  if ( a3 == 2 )\n    return GJBaseGameLayer::triggerGradientCommand(a1, a2);\n  result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 12400));\n  if ( result )\n  {\n    v4 = result;\n    result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 528LL))(result, 0);\n    *(_QWORD *)(v4 + 584) = 0;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::controlGradientTrigger from 0x1001146b0 to 0x100114709 (89 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 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:24:33 +0000\n; \ncmp     edx, 2                                                         ; +0x0, 0x1001146b0\njz      GJBaseGameLayer__triggerGradientCommand                        ; +0x3, 0x1001146b3\npush    rbp                                                            ; +0x9, 0x1001146b9\nmov     rbp, rsp                                                       ; +0xa, 0x1001146ba\npush    rbx                                                            ; +0xd, 0x1001146bd\npush    rax                                                            ; +0xe, 0x1001146be\nmov     eax, [rsi+738h]                                                ; +0xf, 0x1001146bf\ncmp     eax, 3E7h                                                      ; +0x15, 0x1001146c5\nmov     ecx, 3E7h                                                      ; +0x1a, 0x1001146ca\ncmovl   ecx, eax                                                       ; +0x1f, 0x1001146cf\nmov     rdi, [rdi+3070h]                                               ; +0x22, 0x1001146d2\nmovsxd  rsi, ecx                                                       ; +0x29, 0x1001146d9\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x2c, 0x1001146dc\ntest    rax, rax                                                       ; +0x31, 0x1001146e1\njz      short loc_100114702                                            ; +0x34, 0x1001146e4\nmov     rcx, [rax]                                                     ; +0x36, 0x1001146e6\nmov     rdi, rax                                                       ; +0x39, 0x1001146e9\nxor     esi, esi                                                       ; +0x3c, 0x1001146ec\nmov     rbx, rax                                                       ; +0x3e, 0x1001146ee\ncall    qword ptr [rcx+210h]                                           ; +0x41, 0x1001146f1\nmov     qword ptr [rbx+248h], 0                                        ; +0x47, 0x1001146f7\nadd     rsp, 8                                                         ; +0x52, 0x100114702\npop     rbx                                                            ; +0x56, 0x100114706\npop     rbp                                                            ; +0x57, 0x100114707\nretn                                                                   ; +0x58, 0x100114708", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}