{"type": "func", "start": 824348, "end": 824432, "name": "sub_C941C", "pseudocode": "// \n// sub_C941C from 0xc941c to 0xc9470 (84 bytes)\n// \n// 2 xrefs:\n// > sub_C9470 @ 0xc94a4\n// > sub_C9470 @ 0xc94b4\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:47 +0000\n// \n\n__int64 sub_C941C()\n{\n  int *v0; // x19\n  unsigned int *v1; // x1\n  unsigned int v2; // w2\n  unsigned int v3; // w8\n  unsigned int *v4; // x20\n  __int64 result; // x0\n\n  sub_CD4C4();\n  if ( !v3 )\n  {\n    v4 = v1;\n    if ( *v0 >= 1 )\n      v2 = sub_6BA4C(*v0);\n    v3 = v2;\n    *v4 = v2;\n  }\n  result = sub_65A10(v3);\n  if ( !(_DWORD)result )\n    result = (unsigned int)*v0;\n  *v0 = result;\n  return result;\n}", "assembly": "; \n; sub_C941C from 0xc941c to 0xc9470 (84 bytes)\n; \n; 2 xrefs:\n; > sub_C9470 @ 0xc94a4\n; > sub_C9470 @ 0xc94b4\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:47 +0000\n; \nSTP             X20, X19, [SP,#var_20]!                                ; +0x0, 0xc941c\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x4, 0xc9420\nLDR             W8, [X1]                                               ; +0x8, 0xc9424\nBL              sub_CD4C4                                              ; +0xc, 0xc9428\nCBNZ            W8, loc_C9450                                          ; +0x10, 0xc942c\nLDR             W0, [X19]                                              ; +0x14, 0xc9430\nMOV             X20, X1                                                ; +0x18, 0xc9434\nCMP             W0, #1                                                 ; +0x1c, 0xc9438\nB.LT            loc_C9448                                              ; +0x20, 0xc943c\nBL              sub_6BA4C                                              ; +0x24, 0xc9440\nMOV             W2, W0                                                 ; +0x28, 0xc9444\nMOV             W8, W2                                                 ; +0x2c, 0xc9448\nSTR             W2, [X20]                                              ; +0x30, 0xc944c\nMOV             W0, W8                                                 ; +0x34, 0xc9450\nBL              sub_65A10                                              ; +0x38, 0xc9454\nCBNZ            W0, loc_C9460                                          ; +0x3c, 0xc9458\nLDR             W0, [X19]                                              ; +0x40, 0xc945c\nSTR             W0, [X19]                                              ; +0x44, 0xc9460\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x48, 0xc9464\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x4c, 0xc9468\nRET                                                                    ; +0x50, 0xc946c", "xrefs": ["sub_C9470 @ 0xc94a4", "sub_C9470 @ 0xc94b4"], "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"}