{"type": "func", "start": 4297045464, "end": 4297045656, "name": "GJBaseGameLayer::testInstantCountTrigger", "pseudocode": "// \n// GJBaseGameLayer::testInstantCountTrigger from 0x1001fb5d8 to 0x1001fb698 (192 bytes)\n// \n// 1 xrefs:\n// > CountTriggerGameObject::triggerObject @ 0x10039098c\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// local variable allocation has failed, the output may be wrong!\nvoid __fastcall 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  __int64 v9; // x19\n  _BOOL8 v12; // x21\n  __int64 v13; // x22\n  int v16; // w0\n\n  v9 = *(_QWORD *)&a8;\n  v12 = a5;\n  v13 = *(_QWORD *)&a4;\n  v16 = GJEffectManager::countForItem(a1->m_effectManager, a2);\n  if ( !a6 )\n  {\n    if ( v16 != a3 )\n      return;\n    goto LABEL_7;\n  }\n  if ( a6 == 2 )\n  {\n    if ( v16 >= a3 )\n      return;\n    goto LABEL_7;\n  }\n  if ( a6 == 1 && v16 > a3 )\nLABEL_7:\n    ((void (__fastcall *)(GJBaseGameLayer *, __int64, _BOOL8, std::vector<int> *const, __int64, _QWORD))a1->toggleGroupTriggered)(\n      a1,\n      v13,\n      v12,\n      a7,\n      v9,\n      (unsigned int)a9);\n}", "assembly": "; \n; GJBaseGameLayer::testInstantCountTrigger from 0x1001fb5d8 to 0x1001fb698 (192 bytes)\n; \n; 1 xrefs:\n; > CountTriggerGameObject::triggerObject @ 0x10039098c\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001fb5d8\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001fb5dc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001fb5e0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001fb5e4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001fb5e8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001fb5ec\nMOV             X19, X7                                                ; +0x18, 0x1001fb5f0\nMOV             X20, X6                                                ; +0x1c, 0x1001fb5f4\nMOV             X26, X5                                                ; +0x20, 0x1001fb5f8\nMOV             X21, X4                                                ; +0x24, 0x1001fb5fc\nMOV             X22, X3                                                ; +0x28, 0x1001fb600\nMOV             X25, X2                                                ; +0x2c, 0x1001fb604\nMOV             X24, X0                                                ; +0x30, 0x1001fb608\nLDR             W23, [X29,#arg_0]                                      ; +0x34, 0x1001fb60c\nLDR             X0, [X0,#0x878]                                        ; +0x38, 0x1001fb610\nBL              GJEffectManager__countForItem                          ; +0x3c, 0x1001fb614\nCBZ             W26, loc_1001FB678                                     ; +0x40, 0x1001fb618\nCMP             W26, #2                                                ; +0x44, 0x1001fb61c\nB.EQ            loc_1001FB638                                          ; +0x48, 0x1001fb620\nCMP             W26, #1                                                ; +0x4c, 0x1001fb624\nB.NE            loc_1001FB680                                          ; +0x50, 0x1001fb628\nCMP             W0, W25                                                ; +0x54, 0x1001fb62c\nB.GT            loc_1001FB640                                          ; +0x58, 0x1001fb630\nB               loc_1001FB680                                          ; +0x5c, 0x1001fb634\nCMP             W0, W25                                                ; +0x60, 0x1001fb638\nB.GE            loc_1001FB680                                          ; +0x64, 0x1001fb63c\nLDR             X8, [X24]                                              ; +0x68, 0x1001fb640\nLDR             X6, [X8,#0x4C8]                                        ; +0x6c, 0x1001fb644\nMOV             X0, X24                                                ; +0x70, 0x1001fb648\nMOV             X1, X22                                                ; +0x74, 0x1001fb64c\nMOV             X2, X21                                                ; +0x78, 0x1001fb650\nMOV             X3, X20                                                ; +0x7c, 0x1001fb654\nMOV             X4, X19                                                ; +0x80, 0x1001fb658\nMOV             X5, X23                                                ; +0x84, 0x1001fb65c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x88, 0x1001fb660\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x8c, 0x1001fb664\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x90, 0x1001fb668\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x94, 0x1001fb66c\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x98, 0x1001fb670\nBR              X6                                                     ; +0x9c, 0x1001fb674\nCMP             W0, W25                                                ; +0xa0, 0x1001fb678\nB.EQ            loc_1001FB640                                          ; +0xa4, 0x1001fb67c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa8, 0x1001fb680\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xac, 0x1001fb684\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb0, 0x1001fb688\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xb4, 0x1001fb68c\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xb8, 0x1001fb690\nRET                                                                    ; +0xbc, 0x1001fb694", "xrefs": ["CountTriggerGameObject::triggerObject @ 0x10039098c"], "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"}