{"type": "func", "start": 10512164, "end": 10512276, "name": "EC_nistz256_pre_comp_free", "pseudocode": "// \n// EC_nistz256_pre_comp_free from 0xa06724 to 0xa06794 (112 bytes)\n// \n// 2 xrefs:\n// > sub_A067A0 @ 0xa068b8\n// > <???> @ 0x7bafc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:07:41 +0000\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 0xa06724 to 0xa06794 (112 bytes)\n; \n; 2 xrefs:\n; > sub_A067A0 @ 0xa068b8\n; > <???> @ 0x7bafc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:07:41 +0000\n; \nCMP             R0, #0                                                 ; +0x0, 0xa06724\nBXEQ            LR                                                     ; +0x4, 0xa06728\nPUSH            {R4,R5,LR}                                             ; +0x8, 0xa0672c\nMOV             R4, R0                                                 ; +0xc, 0xa06730\nSUB             SP, SP, #0xC                                           ; +0x10, 0xa06734\nLDR             R3, [R4,#0x14]                                         ; +0x14, 0xa06738\nADD             R0, R0, #0x10                                          ; +0x18, 0xa0673c\nMOV             R1, #0xFFFFFFFF                                        ; +0x1c, 0xa06740\nADD             R2, SP, #0x18+var_14                                   ; +0x20, 0xa06744\nBL              CRYPTO_atomic_add                                      ; +0x24, 0xa06748\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x28, 0xa0674c\nCMP             R3, #0                                                 ; +0x2c, 0xa06750\nBLE             loc_A06760                                             ; +0x30, 0xa06754\nADD             SP, SP, #0xC                                           ; +0x34, 0xa06758\nPOP             {R4,R5,PC}                                             ; +0x38, 0xa0675c\nLDR             R5, =(aCryptoEcEcpNis - 0xA06770); \"crypto/ec/ecp_nistz256.c\" ; +0x3c, 0xa06760\nLDR             R0, [R4,#0xC]                                          ; +0x40, 0xa06764\nADD             R5, PC, R5; \"crypto/ec/ecp_nistz256.c\"                 ; +0x44, 0xa06768\nMOV             R1, R5                                                 ; +0x48, 0xa0676c\nLDR             R2, =0x5CF                                             ; +0x4c, 0xa06770\nBL              CRYPTO_free                                            ; +0x50, 0xa06774\nLDR             R0, [R4,#0x14]                                         ; +0x54, 0xa06778\nBL              CRYPTO_THREAD_lock_free                                ; +0x58, 0xa0677c\nMOV             R0, R4                                                 ; +0x5c, 0xa06780\nMOV             R1, R5                                                 ; +0x60, 0xa06784\nLDR             R2, =0x5D1                                             ; +0x64, 0xa06788\nBL              CRYPTO_free                                            ; +0x68, 0xa0678c\nB               loc_A06758                                             ; +0x6c, 0xa06790", "xrefs": ["sub_A067A0 @ 0xa068b8", "<???> @ 0x7bafc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}