{"type": "func", "start": 4297629408, "end": 4297629500, "name": "GJBaseGameLayer::controlGradientTrigger", "pseudocode": "// \n// GJBaseGameLayer::controlGradientTrigger from 0x100289ee0 to 0x100289f3c (92 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x1002898ec\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x10028a078\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 11:01:59 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::controlGradientTrigger(__int64 a1, __int64 a2, int a3)\n{\n  int v3; // w8\n  __int64 v4; // x0\n  __n128 v5; // q0\n  __int64 v6; // x19\n\n  if ( a3 == 2 )\n  {\n    GJBaseGameLayer::triggerGradientCommand(a1, a2);\n  }\n  else\n  {\n    v3 = *(_DWORD *)(a2 + 1848);\n    if ( v3 >= 999 )\n      v3 = 999;\n    v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 12400), v3);\n    if ( v4 )\n    {\n      v6 = v4;\n      (*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v4 + 528LL))(v4, 0, v5);\n      *(_QWORD *)(v6 + 584) = 0;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlGradientTrigger from 0x100289ee0 to 0x100289f3c (92 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x1002898ec\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x10028a078\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 11:01:59 +0000\n; \nCMP             W2, #2                                                 ; +0x0, 0x100289ee0\nB.NE            loc_100289EEC                                          ; +0x4, 0x100289ee4\nB               GJBaseGameLayer__triggerGradientCommand                ; +0x8, 0x100289ee8\nSTP             X20, X19, [SP,#var_20]!                                ; +0xc, 0x100289eec\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x10, 0x100289ef0\nADD             X29, SP, #0x20+var_10                                  ; +0x14, 0x100289ef4\nLDR             W8, [X1,#0x738]                                        ; +0x18, 0x100289ef8\nCMP             W8, #0x3E7                                             ; +0x1c, 0x100289efc\nMOV             W9, #0x3E7                                             ; +0x20, 0x100289f00\nCSEL            W8, W8, W9, LT                                         ; +0x24, 0x100289f04\nLDR             X0, [X0,#0x3070]                                       ; +0x28, 0x100289f08\nSXTW            X1, W8                                                 ; +0x2c, 0x100289f0c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x30, 0x100289f10\nCBZ             X0, loc_100289F30                                      ; +0x34, 0x100289f14\nMOV             X19, X0                                                ; +0x38, 0x100289f18\nLDR             X8, [X0]                                               ; +0x3c, 0x100289f1c\nLDR             X8, [X8,#0x210]                                        ; +0x40, 0x100289f20\nMOV             W1, #0                                                 ; +0x44, 0x100289f24\nBLR             X8                                                     ; +0x48, 0x100289f28\nSTR             XZR, [X19,#0x248]                                      ; +0x4c, 0x100289f2c\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x50, 0x100289f30\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x54, 0x100289f34\nRET                                                                    ; +0x58, 0x100289f38", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x1002898ec", "GJBaseGameLayer::controlTriggersWithControlID @ 0x10028a078"], "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"}