{"type": "func", "start": 8330020, "end": 8330132, "name": "EC_nistz256_pre_comp_free", "pseudocode": "// \n// EC_nistz256_pre_comp_free from 0x7f1b24 to 0x7f1b94 (112 bytes)\n// \n// 2 xrefs:\n// > sub_7F1BA0 @ 0x7f1cb8\n// > <???> @ 0x6207c\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 EC_nistz256_pre_comp_free(int result)\n{\n  int v1; // r4\n  int v2; // [sp+4h] [bp-14h] BYREF\n\n  if ( result )\n  {\n    v1 = result;\n    result = CRYPTO_atomic_add(result + 16, -1, &v2, *(_DWORD *)(result + 20));\n    if ( v2 <= 0 )\n    {\n      CRYPTO_free(*(_DWORD *)(v1 + 12), \"crypto/ec/ecp_nistz256.c\", 1487);\n      CRYPTO_THREAD_lock_free(*(_DWORD *)(v1 + 20));\n      return CRYPTO_free(v1, \"crypto/ec/ecp_nistz256.c\", 1489);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EC_nistz256_pre_comp_free from 0x7f1b24 to 0x7f1b94 (112 bytes)\n; \n; 2 xrefs:\n; > sub_7F1BA0 @ 0x7f1cb8\n; > <???> @ 0x6207c\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\nCMP             R0, #0                                                 ; +0x0, 0x7f1b24\nBXEQ            LR                                                     ; +0x4, 0x7f1b28\nPUSH            {R4,R5,LR}                                             ; +0x8, 0x7f1b2c\nMOV             R4, R0                                                 ; +0xc, 0x7f1b30\nSUB             SP, SP, #0xC                                           ; +0x10, 0x7f1b34\nLDR             R3, [R4,#0x14]                                         ; +0x14, 0x7f1b38\nADD             R0, R0, #0x10                                          ; +0x18, 0x7f1b3c\nMOV             R1, #0xFFFFFFFF                                        ; +0x1c, 0x7f1b40\nADD             R2, SP, #0x18+var_14                                   ; +0x20, 0x7f1b44\nBL              CRYPTO_atomic_add                                      ; +0x24, 0x7f1b48\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x28, 0x7f1b4c\nCMP             R3, #0                                                 ; +0x2c, 0x7f1b50\nBLE             loc_7F1B60                                             ; +0x30, 0x7f1b54\nADD             SP, SP, #0xC                                           ; +0x34, 0x7f1b58\nPOP             {R4,R5,PC}                                             ; +0x38, 0x7f1b5c\nLDR             R5, =(aCryptoEcEcpNis - 0x7F1B70); \"crypto/ec/ecp_nistz256.c\" ; +0x3c, 0x7f1b60\nLDR             R0, [R4,#0xC]                                          ; +0x40, 0x7f1b64\nADD             R5, PC, R5; \"crypto/ec/ecp_nistz256.c\"                 ; +0x44, 0x7f1b68\nMOV             R1, R5                                                 ; +0x48, 0x7f1b6c\nLDR             R2, =0x5CF                                             ; +0x4c, 0x7f1b70\nBL              CRYPTO_free                                            ; +0x50, 0x7f1b74\nLDR             R0, [R4,#0x14]                                         ; +0x54, 0x7f1b78\nBL              CRYPTO_THREAD_lock_free                                ; +0x58, 0x7f1b7c\nMOV             R0, R4                                                 ; +0x5c, 0x7f1b80\nMOV             R1, R5                                                 ; +0x60, 0x7f1b84\nLDR             R2, =0x5D1                                             ; +0x64, 0x7f1b88\nBL              CRYPTO_free                                            ; +0x68, 0x7f1b8c\nB               loc_7F1B58                                             ; +0x6c, 0x7f1b90", "xrefs": ["sub_7F1BA0 @ 0x7f1cb8", "<???> @ 0x6207c"], "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"}