{"type": "func", "start": 499380, "end": 499450, "name": "sub_79EB4", "pseudocode": "// \n// sub_79EB4 from 0x79eb4 to 0x79efa (70 bytes)\n// \n// 1 xrefs:\n// > sub_77980 @ 0x77984\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\nint __fastcall sub_79EB4(_DWORD *a1, int a2, unsigned int a3)\n{\n  unsigned int v4; // r1\n  unsigned int *v5; // r6\n  int v7; // r8\n\n  v4 = a1[2874];\n  if ( v4 != a3 )\n  {\n    v5 = a1 + 2874;\n    if ( v4 > a3 )\n    {\n      v7 = a1[2887];\n      sub_79364(a1, 0);\n      a1[2887] = v7;\n    }\n    while ( *v5 < a3 )\n      sub_792FC((int)a1, 0, 0);\n  }\n  return 0;\n}", "assembly": "; \n; sub_79EB4 from 0x79eb4 to 0x79efa (70 bytes)\n; \n; 1 xrefs:\n; > sub_77980 @ 0x77984\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x79eb4\nADD             R7, SP, #0xC                                           ; +0x2, 0x79eb6\nPUSH.W          {R8}                                                   ; +0x4, 0x79eb8\nMOV             R5, R0                                                 ; +0x8, 0x79ebc\nMOVW            R0, #0x2CE8                                            ; +0xa, 0x79ebe\nLDR             R1, [R5,R0]                                            ; +0xe, 0x79ec2\nCMP             R1, R2                                                 ; +0x10, 0x79ec4\nBEQ             loc_79EF2                                              ; +0x12, 0x79ec6\nADD.W           R6, R5, R0                                             ; +0x14, 0x79ec8\nMOV             R4, R2                                                 ; +0x18, 0x79ecc\nBLS             loc_79EEC                                              ; +0x1a, 0x79ece\nMOV             R0, R5                                                 ; +0x1c, 0x79ed0\nMOVS            R1, #0                                                 ; +0x1e, 0x79ed2\nLDR.W           R8, [R6,#0x34]                                         ; +0x20, 0x79ed4\nBL              sub_79364                                              ; +0x24, 0x79ed8\nSTR.W           R8, [R6,#0x34]                                         ; +0x28, 0x79edc\nB               loc_79EEC                                              ; +0x2c, 0x79ee0\nMOV             R0, R5                                                 ; +0x2e, 0x79ee2\nMOVS            R1, #0                                                 ; +0x30, 0x79ee4\nMOVS            R2, #0                                                 ; +0x32, 0x79ee6\nBL              sub_792FC                                              ; +0x34, 0x79ee8\nLDR             R0, [R6]                                               ; +0x38, 0x79eec\nCMP             R0, R4                                                 ; +0x3a, 0x79eee\nBCC             loc_79EE2                                              ; +0x3c, 0x79ef0\nMOVS            R0, #0                                                 ; +0x3e, 0x79ef2\nPOP.W           {R8}                                                   ; +0x40, 0x79ef4\nPOP             {R4-R7,PC}                                             ; +0x44, 0x79ef8", "xrefs": ["sub_77980 @ 0x77984"], "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"}