{"type": "func", "start": 8803208, "end": 8803392, "name": "GJBaseGameLayer::testInstantCountTrigger", "pseudocode": "// \n// GJBaseGameLayer::testInstantCountTrigger from 0x865388 to 0x865440 (184 bytes)\n// \n// 2 xrefs:\n// > CountTriggerGameObject::triggerObject @ 0x7708c0\n// > <???> @ 0xb4648\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 GJBaseGameLayer::testInstantCountTrigger(\n        GJBaseGameLayer *a1,\n        int a2,\n        int a3,\n        int a4,\n        bool a5,\n        int a6,\n        std::vector<int> *const a7,\n        int a8,\n        int a9)\n{\n  _BOOL4 v10; // w20\n  int v11; // w0\n  _BOOL4 v12; // w0\n  const std::vector<int> *vars0; // [xsp+40h] [xbp+40h]\n  int vars8; // [xsp+48h] [xbp+48h]\n\n  v10 = a5;\n  v11 = GJEffectManager::countForItem(a1->m_effectManager, a2);\n  if ( a6 == 1 )\n  {\n    v12 = v11 > a3;\n  }\n  else if ( a6 == 2 )\n  {\n    v12 = v11 < a3;\n  }\n  else\n  {\n    if ( a6 )\n      return;\n    v12 = v11 == a3;\n  }\n  if ( v12 )\n    a1->toggleGroupTriggered(a1, a4, v10, vars0, vars8, a9);\n}", "assembly": "; \n; GJBaseGameLayer::testInstantCountTrigger from 0x865388 to 0x865440 (184 bytes)\n; \n; 2 xrefs:\n; > CountTriggerGameObject::triggerObject @ 0x7708c0\n; > <???> @ 0xb4648\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\nSTP             X29, X30, [SP,#-0x10+var_40]!                          ; +0x0, 0x865388\nMOV             X29, SP                                                ; +0x4, 0x86538c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x865390\nMOV             X19, X0                                                ; +0xc, 0x865394\nLDR             X0, [X0,#0x9A8]; this                                  ; +0x10, 0x865398\nSTR             X5, [X29,#0x40+var_18]                                 ; +0x14, 0x86539c\nUXTB            W20, W4                                                ; +0x18, 0x8653a0\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x1c, 0x8653a4\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x20, 0x8653a8\nSTR             X6, [X29,#0x40+var_s0]                                 ; +0x24, 0x8653ac\nSTR             X7, [X29,#0x40+var_s8]                                 ; +0x28, 0x8653b0\nBL              _ZN15GJEffectManager12countForItemEi; GJEffectManager::countForItem(int) ; +0x2c, 0x8653b4\nLDR             X5, [X29,#0x40+var_18]                                 ; +0x30, 0x8653b8\nLDR             X7, [X29,#0x40+var_s8]                                 ; +0x34, 0x8653bc\nCMP             W5, #1                                                 ; +0x38, 0x8653c0\nLDR             X6, [X29,#0x40+var_s0]                                 ; +0x3c, 0x8653c4\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x40, 0x8653c8\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x44, 0x8653cc\nB.EQ            loc_865434                                             ; +0x48, 0x8653d0\nCMP             W5, #2                                                 ; +0x4c, 0x8653d4\nB.EQ            loc_865428                                             ; +0x50, 0x8653d8\nCBZ             W5, loc_8653EC                                         ; +0x54, 0x8653dc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x58, 0x8653e0\nLDP             X29, X30, [SP+0x40+var_40],#0x50                       ; +0x5c, 0x8653e4\nRET                                                                    ; +0x60, 0x8653e8\nCMP             W0, W2                                                 ; +0x64, 0x8653ec\nCSET            W0, EQ                                                 ; +0x68, 0x8653f0\nCBZ             W0, loc_8653E0                                         ; +0x6c, 0x8653f4\nLDR             X5, [X19]                                              ; +0x70, 0x8653f8\nMOV             W1, W3                                                 ; +0x74, 0x8653fc\nMOV             X3, X6                                                 ; +0x78, 0x865400\nMOV             X0, X19                                                ; +0x7c, 0x865404\nMOV             W2, W20                                                ; +0x80, 0x865408\nMOV             W4, W7                                                 ; +0x84, 0x86540c\nLDR             X6, [X5,#0x4C8]                                        ; +0x88, 0x865410\nLDR             W5, [X29,#0x40+arg_0]                                  ; +0x8c, 0x865414\nBLR             X6                                                     ; +0x90, 0x865418\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x86541c\nLDP             X29, X30, [SP+0x40+var_40],#0x50                       ; +0x98, 0x865420\nRET                                                                    ; +0x9c, 0x865424\nCMP             W0, W2                                                 ; +0xa0, 0x865428\nCSET            W0, LT                                                 ; +0xa4, 0x86542c\nB               loc_8653F4                                             ; +0xa8, 0x865430\nCMP             W0, W2                                                 ; +0xac, 0x865434\nCSET            W0, GT                                                 ; +0xb0, 0x865438\nB               loc_8653F4                                             ; +0xb4, 0x86543c", "xrefs": ["CountTriggerGameObject::triggerObject @ 0x7708c0", "<???> @ 0xb4648"], "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"}