{"type": "func", "start": 8231440, "end": 8231528, "name": "COMP_expand_block", "pseudocode": "// \n// COMP_expand_block from 0x7d9a10 to 0x7d9a68 (88 bytes)\n// \n// 2 xrefs:\n// > ssl3_do_uncompress @ 0x78a948\n// > <???> @ 0x5a98c\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 COMP_expand_block(_DWORD *a1, int a2, int a3, int a4, int a5)\n{\n  int (__fastcall *v5)(_DWORD *); // r12\n  int result; // r0\n  int v8; // r3\n\n  v5 = *(int (__fastcall **)(_DWORD *))(*a1 + 20);\n  if ( !v5 )\n    return -1;\n  result = v5(a1);\n  if ( result > 0 )\n  {\n    v8 = a1[4] + result;\n    a1[3] += a5;\n    a1[4] = v8;\n  }\n  return result;\n}", "assembly": "; \n; COMP_expand_block from 0x7d9a10 to 0x7d9a68 (88 bytes)\n; \n; 2 xrefs:\n; > ssl3_do_uncompress @ 0x78a948\n; > <???> @ 0x5a98c\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\nLDR             R12, [R0]                                              ; +0x0, 0x7d9a10\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7d9a14\nLDR             R12, [R12,#0x14]                                       ; +0x8, 0x7d9a18\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7d9a1c\nCMP             R12, #0                                                ; +0x10, 0x7d9a20\nMOV             R4, R0                                                 ; +0x14, 0x7d9a24\nLDR             R5, [SP,#0xC+arg_0]                                    ; +0x18, 0x7d9a28\nBEQ             loc_7D9A60                                             ; +0x1c, 0x7d9a2c\nSTR             R5, [SP,#0xC+var_C]                                    ; +0x20, 0x7d9a30\nBLX             R12                                                    ; +0x24, 0x7d9a34\nCMP             R0, #0                                                 ; +0x28, 0x7d9a38\nBLE             loc_7D9A58                                             ; +0x2c, 0x7d9a3c\nLDR             R2, [R4,#0xC]                                          ; +0x30, 0x7d9a40\nLDR             R3, [R4,#0x10]                                         ; +0x34, 0x7d9a44\nADD             R2, R2, R5                                             ; +0x38, 0x7d9a48\nADD             R3, R3, R0                                             ; +0x3c, 0x7d9a4c\nSTR             R2, [R4,#0xC]                                          ; +0x40, 0x7d9a50\nSTR             R3, [R4,#0x10]                                         ; +0x44, 0x7d9a54\nADD             SP, SP, #0xC                                           ; +0x48, 0x7d9a58\nPOP             {R4,R5,PC}                                             ; +0x4c, 0x7d9a5c\nMOV             R0, #0xFFFFFFFF                                        ; +0x50, 0x7d9a60\nB               loc_7D9A58                                             ; +0x54, 0x7d9a64", "xrefs": ["ssl3_do_uncompress @ 0x78a948", "<???> @ 0x5a98c"], "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"}