{"type": "func", "start": 823880, "end": 824036, "name": "sub_C9248", "pseudocode": "// \n// sub_C9248 from 0xc9248 to 0xc92e4 (156 bytes)\n// \n// 1 xrefs:\n// > sub_D6B9C @ 0xd6c90\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 __fastcall sub_C9248(__int64 a1, int a2, int a3, __int64 a4)\n{\n  __int64 v4; // x8\n  __int64 v7; // x22\n  __int64 v8; // x21\n  __int64 v9; // x23\n  __int64 v10; // x0\n  int v12; // [xsp+8h] [xbp-28h] BYREF\n  int v13; // [xsp+Ch] [xbp-24h] BYREF\n\n  v12 = a2;\n  v13 = 0;\n  v4 = *(int *)(a1 + 12);\n  if ( (_DWORD)v4 )\n  {\n    *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8 * v4 - 8) + 36LL) = 0x100000;\n    while ( 1 )\n    {\n      v7 = v4 - 1;\n      if ( v4 < 1 )\n        break;\n      v8 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 8 * v4 - 8);\n      v9 = *(_QWORD *)(v8 + 96);\n      v10 = sub_C92E4(v8, a1, 0, a4, &v13, &v12);\n      *(_WORD *)(v8 + 80) = v13;\n      *(_WORD *)(v8 + 82) = v12;\n      if ( (*(_BYTE *)(v9 + 282) & 1) != 0 )\n        sub_CD2A4(v10);\n      *(_DWORD *)(v8 + 88) = a3;\n      v4 = v7;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_C9248 from 0xc9248 to 0xc92e4 (156 bytes)\n; \n; 1 xrefs:\n; > sub_D6B9C @ 0xd6c90\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; \nSTR             X23, [SP,#-0x10+var_30]!                               ; +0x0, 0xc9248\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0xc924c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0xc9250\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0xc9254\nSTP             W1, WZR, [SP,#0x30+var_28]                             ; +0x10, 0xc9258\nLDRSW           X8, [X0,#0xC]                                          ; +0x14, 0xc925c\nADD             X29, SP, #0x30                                         ; +0x18, 0xc9260\nCBZ             W8, loc_C92DC                                          ; +0x1c, 0xc9264\nLDR             X9, [X0,#0x20]                                         ; +0x20, 0xc9268\nMOV             X19, X0                                                ; +0x24, 0xc926c\nMOV             W20, W2                                                ; +0x28, 0xc9270\nMOV             W10, #0x100000                                         ; +0x2c, 0xc9274\nADD             X9, X9, X8,LSL#3                                       ; +0x30, 0xc9278\nLDUR            X9, [X9,#-8]                                           ; +0x34, 0xc927c\nSTR             W10, [X9,#0x24]                                        ; +0x38, 0xc9280\nSUBS            X22, X8, #1                                            ; +0x3c, 0xc9284\nB.LT            loc_C92DC                                              ; +0x40, 0xc9288\nLDR             X9, [X19,#0x20]                                        ; +0x44, 0xc928c\nADD             X4, SP, #0x30+var_24                                   ; +0x48, 0xc9290\nADD             X5, SP, #0x30+var_28                                   ; +0x4c, 0xc9294\nMOV             X1, X19                                                ; +0x50, 0xc9298\nADD             X8, X9, X8,LSL#3                                       ; +0x54, 0xc929c\nLDUR            X21, [X8,#-8]                                          ; +0x58, 0xc92a0\nMOV             X2, XZR                                                ; +0x5c, 0xc92a4\nLDR             X23, [X21,#0x60]                                       ; +0x60, 0xc92a8\nMOV             X0, X21                                                ; +0x64, 0xc92ac\nBL              sub_C92E4                                              ; +0x68, 0xc92b0\nLDR             W8, [SP,#0x30+var_24]                                  ; +0x6c, 0xc92b4\nSTRH            W8, [X21,#0x50]                                        ; +0x70, 0xc92b8\nLDR             W8, [SP,#0x30+var_28]                                  ; +0x74, 0xc92bc\nSTRH            W8, [X21,#0x52]                                        ; +0x78, 0xc92c0\nLDRB            W8, [X23,#0x11A]                                       ; +0x7c, 0xc92c4\nTBZ             W8, #0, loc_C92D0                                      ; +0x80, 0xc92c8\nBL              sub_CD2A4                                              ; +0x84, 0xc92cc\nSTR             W20, [X21,#0x58]                                       ; +0x88, 0xc92d0\nMOV             X8, X22                                                ; +0x8c, 0xc92d4\nB               loc_C9284                                              ; +0x90, 0xc92d8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x94, 0xc92dc\nB               loc_CD3C0                                              ; +0x98, 0xc92e0", "xrefs": ["sub_D6B9C @ 0xd6c90"], "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"}