{"type": "func", "start": 4297612920, "end": 4297613132, "name": "GJBaseGameLayer::activateProgressTrigger", "pseudocode": "// \n// GJBaseGameLayer::activateProgressTrigger from 0x100285e78 to 0x100285f4c (212 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x10042bfd4\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:57 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::activateProgressTrigger(__int64 result, __int64 a2)\n{\n  __int64 v3; // x19\n  __int64 v4; // x0\n  int v5; // w21\n  int v6; // w8\n  int v7; // w8\n  int v8; // w10\n  int v9; // w1\n  __int64 v10; // x20\n  __int64 v11; // x2\n\n  if ( *(_BYTE *)(result + 12238) == 1 )\n  {\n    v3 = result;\n    v4 = *(_QWORD *)(result + 2152);\n    v5 = *(_DWORD *)(v4 + 832);\n    if ( *(_BYTE *)(a2 + 1845) == 1 )\n    {\n      v6 = sub_100015640(v4, *(_DWORD *)(a2 + 1668));\n      v4 = *(_QWORD *)(v3 + 2152);\n    }\n    else\n    {\n      v6 = *(_DWORD *)(a2 + 1840);\n    }\n    v7 = v6 & ~(v6 >> 31);\n    if ( v7 >= 99 )\n      v7 = 99;\n    v8 = v7 + v5;\n    if ( v5 > v7 )\n      v7 = v5;\n    if ( *(_BYTE *)(a2 + 1844) )\n      v9 = v8;\n    else\n      v9 = v7;\n    result = sub_1000159D4(v4, v9);\n    v10 = *(unsigned int *)(a2 + 1680);\n    if ( (int)v10 >= 1 )\n    {\n      sub_1000156F4(*(_QWORD *)(v3 + 2152), v10, *(_DWORD *)(*(_QWORD *)(v3 + 2152) + 832LL));\n      v11 = sub_100015640(*(_QWORD *)(v3 + 2152), v10);\n      return GJBaseGameLayer::updateCounters(v3, v10, v11);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::activateProgressTrigger from 0x100285e78 to 0x100285f4c (212 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x10042bfd4\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:57 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100285e78\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100285e7c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100285e80\nADD             X29, SP, #0x20                                         ; +0xc, 0x100285e84\nMOV             W8, #0x2FCE                                            ; +0x10, 0x100285e88\nLDRB            W8, [X0,X8]                                            ; +0x14, 0x100285e8c\nCMP             W8, #1                                                 ; +0x18, 0x100285e90\nB.NE            loc_100285F3C                                          ; +0x1c, 0x100285e94\nMOV             X20, X1                                                ; +0x20, 0x100285e98\nMOV             X19, X0                                                ; +0x24, 0x100285e9c\nLDR             X0, [X0,#0x868]                                        ; +0x28, 0x100285ea0\nLDR             W21, [X0,#0x340]                                       ; +0x2c, 0x100285ea4\nLDRB            W8, [X1,#0x735]                                        ; +0x30, 0x100285ea8\nCMP             W8, #1                                                 ; +0x34, 0x100285eac\nB.NE            loc_100285EC8                                          ; +0x38, 0x100285eb0\nLDR             W1, [X20,#0x684]                                       ; +0x3c, 0x100285eb4\nBL              sub_100015640                                          ; +0x40, 0x100285eb8\nMOV             X8, X0                                                 ; +0x44, 0x100285ebc\nLDR             X0, [X19,#0x868]                                       ; +0x48, 0x100285ec0\nB               loc_100285ECC                                          ; +0x4c, 0x100285ec4\nLDR             W8, [X20,#0x730]                                       ; +0x50, 0x100285ec8\nBIC             W8, W8, W8,ASR#31                                      ; +0x54, 0x100285ecc\nCMP             W8, #0x63 ; 'c'                                        ; +0x58, 0x100285ed0\nMOV             W9, #0x63 ; 'c'                                        ; +0x5c, 0x100285ed4\nCSEL            W8, W8, W9, LT                                         ; +0x60, 0x100285ed8\nLDRB            W9, [X20,#0x734]                                       ; +0x64, 0x100285edc\nADD             W10, W8, W21                                           ; +0x68, 0x100285ee0\nCMP             W21, W8                                                ; +0x6c, 0x100285ee4\nCSEL            W8, W21, W8, GT                                        ; +0x70, 0x100285ee8\nCMP             W9, #0                                                 ; +0x74, 0x100285eec\nCSEL            W1, W10, W8, NE                                        ; +0x78, 0x100285ef0\nBL              sub_1000159D4                                          ; +0x7c, 0x100285ef4\nLDR             W20, [X20,#0x690]                                      ; +0x80, 0x100285ef8\nCMP             W20, #1                                                ; +0x84, 0x100285efc\nB.LT            loc_100285F3C                                          ; +0x88, 0x100285f00\nLDR             X0, [X19,#0x868]                                       ; +0x8c, 0x100285f04\nLDR             W2, [X0,#0x340]                                        ; +0x90, 0x100285f08\nMOV             X1, X20                                                ; +0x94, 0x100285f0c\nBL              sub_1000156F4                                          ; +0x98, 0x100285f10\nLDR             X0, [X19,#0x868]                                       ; +0x9c, 0x100285f14\nMOV             X1, X20                                                ; +0xa0, 0x100285f18\nBL              sub_100015640                                          ; +0xa4, 0x100285f1c\nMOV             X2, X0                                                 ; +0xa8, 0x100285f20\nMOV             X0, X19                                                ; +0xac, 0x100285f24\nMOV             X1, X20                                                ; +0xb0, 0x100285f28\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb4, 0x100285f2c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb8, 0x100285f30\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xbc, 0x100285f34\nB               GJBaseGameLayer__updateCounters                        ; +0xc0, 0x100285f38\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc4, 0x100285f3c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc8, 0x100285f40\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xcc, 0x100285f44\nRET                                                                    ; +0xd0, 0x100285f48", "xrefs": ["EffectGameObject::triggerObject @ 0x10042bfd4"], "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"}