{"type": "func", "start": 595152, "end": 595368, "name": "sub_914D0", "pseudocode": "// \n// sub_914D0 from 0x914d0 to 0x915a8 (216 bytes)\n// \n// 1 xrefs:\n// > sub_8C1D4 @ 0x8c1d4\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 12:14:22 +0000\n// \n\n__int64 __fastcall sub_914D0(__int64 a1, __int64 a2, unsigned int a3, int a4)\n{\n  __int64 v5; // x19\n  __int64 v6; // x21\n  __int64 v7; // x19\n  __int64 result; // x0\n  unsigned int v9; // w8\n  int v10; // w21\n  __int16 v11; // w20\n\n  v5 = a1;\n  if ( a4 == 2 )\n  {\n    v9 = *(_DWORD *)(a1 + 2136);\n    if ( v9 != a3 )\n    {\n      if ( v9 > a3 )\n      {\n        a1 = sub_91ADC();\n        v10 = 1;\n      }\n      else\n      {\n        v10 = 0;\n      }\n      while ( *(_DWORD *)(v5 + 2136) < a3 )\n        a1 = sub_8C2B0(v5, 1);\n      if ( v10 )\n      {\n        v11 = *(_WORD *)(v5 + 3048);\n        sub_91AD4(a1);\n        *(_WORD *)(v5 + 3048) = v11;\n        return 0;\n      }\n    }\n  }\n  else\n  {\n    if ( a4 != 256 )\n      return 19;\n    sub_91ADC();\n    v6 = 0;\n    *(_DWORD *)(v5 + 3068) = a3;\n    *(_DWORD *)(v5 + 3084) = a3;\n    v7 = v5 + 17472;\n    while ( v6 != 400 )\n    {\n      if ( *(_QWORD *)(v7 + v6) )\n      {\n        result = sub_91A84();\n        if ( (_DWORD)result )\n          return result;\n      }\n      v6 += 8;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_914D0 from 0x914d0 to 0x915a8 (216 bytes)\n; \n; 1 xrefs:\n; > sub_8C1D4 @ 0x8c1d4\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 12:14:22 +0000\n; \nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x914d0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x914d4\nMOV             W20, W2                                                ; +0x8, 0x914d8\nCMP             W3, #2                                                 ; +0xc, 0x914dc\nMOV             X19, X0                                                ; +0x10, 0x914e0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x14, 0x914e4\nADD             X29, SP, #0x20                                         ; +0x18, 0x914e8\nB.EQ            loc_91540                                              ; +0x1c, 0x914ec\nCMP             W3, #0x100                                             ; +0x20, 0x914f0\nB.NE            loc_9155C                                              ; +0x24, 0x914f4\nBL              sub_91ADC                                              ; +0x28, 0x914f8\nMOV             W8, #0x4440                                            ; +0x2c, 0x914fc\nMOV             X21, XZR                                               ; +0x30, 0x91500\nSTR             W20, [X19,#0xBFC]                                      ; +0x34, 0x91504\nSTR             W20, [X19,#0xC0C]                                      ; +0x38, 0x91508\nADD             X19, X19, X8                                           ; +0x3c, 0x9150c\nCMP             X21, #0x190                                            ; +0x40, 0x91510\nB.EQ            loc_9159C                                              ; +0x44, 0x91514\nSTR             XZR, [SP,#0x20+var_18]                                 ; +0x48, 0x91518\nLDR             X0, [X19,X21]                                          ; +0x4c, 0x9151c\nCBZ             X0, loc_91538                                          ; +0x50, 0x91520\nBL              sub_91A84                                              ; +0x54, 0x91524\nCBNZ            W0, loc_915A0                                          ; +0x58, 0x91528\nLDR             X0, [SP,#0x20+var_18]                                  ; +0x5c, 0x9152c\nCBZ             X0, loc_91538                                          ; +0x60, 0x91530\nBL              sub_CBC5C                                              ; +0x64, 0x91534\nADD             X21, X21, #8                                           ; +0x68, 0x91538\nB               loc_91510                                              ; +0x6c, 0x9153c\nLDR             W8, [X19,#0x858]                                       ; +0x70, 0x91540\nCMP             W8, W20                                                ; +0x74, 0x91544\nB.EQ            loc_9159C                                              ; +0x78, 0x91548\nB.LS            loc_91564                                              ; +0x7c, 0x9154c\nBL              sub_91ADC                                              ; +0x80, 0x91550\nMOV             W21, #1                                                ; +0x84, 0x91554\nB               loc_91578                                              ; +0x88, 0x91558\nMOV             W0, #0x13                                              ; +0x8c, 0x9155c\nB               loc_915A0                                              ; +0x90, 0x91560\nMOV             W21, WZR                                               ; +0x94, 0x91564\nB               loc_91578                                              ; +0x98, 0x91568\nMOV             W1, #1                                                 ; +0x9c, 0x9156c\nMOV             X0, X19                                                ; +0xa0, 0x91570\nBL              sub_8C2B0                                              ; +0xa4, 0x91574\nLDR             W8, [X19,#0x858]                                       ; +0xa8, 0x91578\nCMP             W8, W20                                                ; +0xac, 0x9157c\nB.CC            loc_9156C                                              ; +0xb0, 0x91580\nCBZ             W21, loc_9159C                                         ; +0xb4, 0x91584\nLDRH            W20, [X19,#0xBE8]                                      ; +0xb8, 0x91588\nBL              sub_91AD4                                              ; +0xbc, 0x9158c\nMOV             W0, WZR                                                ; +0xc0, 0x91590\nSTRH            W20, [X19,#0xBE8]                                      ; +0xc4, 0x91594\nB               loc_915A0                                              ; +0xc8, 0x91598\nMOV             W0, WZR                                                ; +0xcc, 0x9159c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xd0, 0x915a0\nB               loc_91718                                              ; +0xd4, 0x915a4", "xrefs": ["sub_8C1D4 @ 0x8c1d4"], "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"}