{"type": "func", "start": 8305336, "end": 8305500, "name": "EC_ec_pre_comp_free", "pseudocode": "// \n// EC_ec_pre_comp_free from 0x7ebab8 to 0x7ebb5c (164 bytes)\n// \n// 6 xrefs:\n// > EC_pre_comp_free @ 0x7ea17c\n// > ec_wNAF_precompute_mult @ 0x7ecc40\n// > ec_wNAF_precompute_mult @ 0x7ecd58\n// > ec_wNAF_precompute_mult @ 0x7ecf00\n// > ec_wNAF_precompute_mult @ 0x7ed084\n// > <???> @ 0x61a0c\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_ec_pre_comp_free(int result)\n{\n  int v1; // r4\n  int *v2; // r5\n  int v3; // r0\n  int v4; // t1\n  int v5; // r0\n  int v6; // [sp+4h] [bp-14h] BYREF\n\n  if ( result )\n  {\n    v1 = result;\n    result = CRYPTO_atomic_add(result + 24, -1, &v6, *(_DWORD *)(result + 28));\n    if ( v6 <= 0 )\n    {\n      v2 = *(int **)(v1 + 16);\n      if ( v2 )\n      {\n        v3 = *v2;\n        if ( *v2 )\n        {\n          do\n          {\n            EC_POINT_free(v3);\n            v4 = v2[1];\n            ++v2;\n            v3 = v4;\n          }\n          while ( v4 );\n          v5 = *(_DWORD *)(v1 + 16);\n        }\n        else\n        {\n          v5 = *(_DWORD *)(v1 + 16);\n        }\n        CRYPTO_free(v5, \"crypto/ec/ec_mult.c\", 98);\n      }\n      CRYPTO_THREAD_lock_free(*(_DWORD *)(v1 + 28));\n      return CRYPTO_free(v1, \"crypto/ec/ec_mult.c\", 101);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EC_ec_pre_comp_free from 0x7ebab8 to 0x7ebb5c (164 bytes)\n; \n; 6 xrefs:\n; > EC_pre_comp_free @ 0x7ea17c\n; > ec_wNAF_precompute_mult @ 0x7ecc40\n; > ec_wNAF_precompute_mult @ 0x7ecd58\n; > ec_wNAF_precompute_mult @ 0x7ecf00\n; > ec_wNAF_precompute_mult @ 0x7ed084\n; > <???> @ 0x61a0c\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, 0x7ebab8\nBXEQ            LR                                                     ; +0x4, 0x7ebabc\nPUSH            {R4,R5,LR}                                             ; +0x8, 0x7ebac0\nMOV             R4, R0                                                 ; +0xc, 0x7ebac4\nSUB             SP, SP, #0xC                                           ; +0x10, 0x7ebac8\nLDR             R3, [R4,#0x1C]                                         ; +0x14, 0x7ebacc\nADD             R0, R0, #0x18                                          ; +0x18, 0x7ebad0\nMOV             R1, #0xFFFFFFFF                                        ; +0x1c, 0x7ebad4\nADD             R2, SP, #0x18+var_14                                   ; +0x20, 0x7ebad8\nBL              CRYPTO_atomic_add                                      ; +0x24, 0x7ebadc\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x28, 0x7ebae0\nCMP             R3, #0                                                 ; +0x2c, 0x7ebae4\nBLE             loc_7EBAF4                                             ; +0x30, 0x7ebae8\nADD             SP, SP, #0xC                                           ; +0x34, 0x7ebaec\nPOP             {R4,R5,PC}                                             ; +0x38, 0x7ebaf0\nLDR             R5, [R4,#0x10]                                         ; +0x3c, 0x7ebaf4\nCMP             R5, #0                                                 ; +0x40, 0x7ebaf8\nBEQ             loc_7EBB30                                             ; +0x44, 0x7ebafc\nLDR             R0, [R5]                                               ; +0x48, 0x7ebb00\nCMP             R0, #0                                                 ; +0x4c, 0x7ebb04\nBEQ             loc_7EBB54                                             ; +0x50, 0x7ebb08\nBL              EC_POINT_free                                          ; +0x54, 0x7ebb0c\nLDR             R0, [R5,#4]!                                           ; +0x58, 0x7ebb10\nCMP             R0, #0                                                 ; +0x5c, 0x7ebb14\nBNE             loc_7EBB0C                                             ; +0x60, 0x7ebb18\nLDR             R0, [R4,#0x10]                                         ; +0x64, 0x7ebb1c\nLDR             R1, =(aCryptoEcEcMult - 0x7EBB30); \"crypto/ec/ec_mult.c\" ; +0x68, 0x7ebb20\nMOV             R2, #0x62 ; 'b'                                        ; +0x6c, 0x7ebb24\nADD             R1, PC, R1; \"crypto/ec/ec_mult.c\"                      ; +0x70, 0x7ebb28\nBL              CRYPTO_free                                            ; +0x74, 0x7ebb2c\nLDR             R0, [R4,#0x1C]                                         ; +0x78, 0x7ebb30\nBL              CRYPTO_THREAD_lock_free                                ; +0x7c, 0x7ebb34\nLDR             R1, =(aCryptoEcEcMult - 0x7EBB48); \"crypto/ec/ec_mult.c\" ; +0x80, 0x7ebb38\nMOV             R0, R4                                                 ; +0x84, 0x7ebb3c\nADD             R1, PC, R1; \"crypto/ec/ec_mult.c\"                      ; +0x88, 0x7ebb40\nMOV             R2, #0x65 ; 'e'                                        ; +0x8c, 0x7ebb44\nBL              CRYPTO_free                                            ; +0x90, 0x7ebb48\nADD             SP, SP, #0xC                                           ; +0x94, 0x7ebb4c\nPOP             {R4,R5,PC}                                             ; +0x98, 0x7ebb50\nMOV             R0, R5                                                 ; +0x9c, 0x7ebb54\nB               loc_7EBB20                                             ; +0xa0, 0x7ebb58", "xrefs": ["EC_pre_comp_free @ 0x7ea17c", "ec_wNAF_precompute_mult @ 0x7ecc40", "ec_wNAF_precompute_mult @ 0x7ecd58", "ec_wNAF_precompute_mult @ 0x7ecf00", "ec_wNAF_precompute_mult @ 0x7ed084", "<???> @ 0x61a0c"], "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"}