{"type": "func", "start": 4297684932, "end": 4297685124, "name": "GJBaseGameLayer::testInstantCountTrigger", "pseudocode": "// \n// GJBaseGameLayer::testInstantCountTrigger from 0x1002977c4 to 0x100297884 (192 bytes)\n// \n// 1 xrefs:\n// > CountTriggerGameObject::triggerObject @ 0x100437314\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:02:06 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::testInstantCountTrigger(\n        __int64 *a1,\n        int a2,\n        int a3,\n        __int64 a4,\n        __int64 a5,\n        int a6,\n        __int64 a7,\n        __int64 a8,\n        unsigned int a9)\n{\n  __int64 result; // x0\n\n  result = sub_100015640(a1[269], a2);\n  if ( !a6 )\n  {\n    if ( (_DWORD)result != a3 )\n      return result;\n    return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64, __int64, __int64, _QWORD))(*a1 + 1240))(\n             a1,\n             a4,\n             a5,\n             a7,\n             a8,\n             a9);\n  }\n  if ( a6 == 2 )\n  {\n    if ( (int)result >= a3 )\n      return result;\n    return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64, __int64, __int64, _QWORD))(*a1 + 1240))(\n             a1,\n             a4,\n             a5,\n             a7,\n             a8,\n             a9);\n  }\n  if ( a6 == 1 && (int)result > a3 )\n    return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64, __int64, __int64, _QWORD))(*a1 + 1240))(\n             a1,\n             a4,\n             a5,\n             a7,\n             a8,\n             a9);\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::testInstantCountTrigger from 0x1002977c4 to 0x100297884 (192 bytes)\n; \n; 1 xrefs:\n; > CountTriggerGameObject::triggerObject @ 0x100437314\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:02:06 +0000\n; \nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1002977c4\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1002977c8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1002977cc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1002977d0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1002977d4\nADD             X29, SP, #0x40                                         ; +0x14, 0x1002977d8\nMOV             X19, X7                                                ; +0x18, 0x1002977dc\nMOV             X20, X6                                                ; +0x1c, 0x1002977e0\nMOV             X26, X5                                                ; +0x20, 0x1002977e4\nMOV             X21, X4                                                ; +0x24, 0x1002977e8\nMOV             X22, X3                                                ; +0x28, 0x1002977ec\nMOV             X25, X2                                                ; +0x2c, 0x1002977f0\nMOV             X24, X0                                                ; +0x30, 0x1002977f4\nLDR             W23, [X29,#arg_0]                                      ; +0x34, 0x1002977f8\nLDR             X0, [X0,#0x868]                                        ; +0x38, 0x1002977fc\nBL              sub_100015640                                          ; +0x3c, 0x100297800\nCBZ             W26, loc_100297864                                     ; +0x40, 0x100297804\nCMP             W26, #2                                                ; +0x44, 0x100297808\nB.EQ            loc_100297824                                          ; +0x48, 0x10029780c\nCMP             W26, #1                                                ; +0x4c, 0x100297810\nB.NE            loc_10029786C                                          ; +0x50, 0x100297814\nCMP             W0, W25                                                ; +0x54, 0x100297818\nB.GT            loc_10029782C                                          ; +0x58, 0x10029781c\nB               loc_10029786C                                          ; +0x5c, 0x100297820\nCMP             W0, W25                                                ; +0x60, 0x100297824\nB.GE            loc_10029786C                                          ; +0x64, 0x100297828\nLDR             X8, [X24]                                              ; +0x68, 0x10029782c\nLDR             X6, [X8,#0x4D8]                                        ; +0x6c, 0x100297830\nMOV             X0, X24                                                ; +0x70, 0x100297834\nMOV             X1, X22                                                ; +0x74, 0x100297838\nMOV             X2, X21                                                ; +0x78, 0x10029783c\nMOV             X3, X20                                                ; +0x7c, 0x100297840\nMOV             X4, X19                                                ; +0x80, 0x100297844\nMOV             X5, X23                                                ; +0x84, 0x100297848\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x88, 0x10029784c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x8c, 0x100297850\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x90, 0x100297854\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x94, 0x100297858\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x98, 0x10029785c\nBR              X6                                                     ; +0x9c, 0x100297860\nCMP             W0, W25                                                ; +0xa0, 0x100297864\nB.EQ            loc_10029782C                                          ; +0xa4, 0x100297868\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa8, 0x10029786c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xac, 0x100297870\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb0, 0x100297874\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xb4, 0x100297878\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xb8, 0x10029787c\nRET                                                                    ; +0xbc, 0x100297880", "xrefs": ["CountTriggerGameObject::triggerObject @ 0x100437314"], "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"}