{"type": "func", "start": 14254060, "end": 14254176, "name": "EC_nistz256_pre_comp_free", "pseudocode": "// \n// EC_nistz256_pre_comp_free from 0xd97fec to 0xd98060 (116 bytes)\n// \n// 2 xrefs:\n// > sub_D98060 @ 0xd9815c\n// > <???> @ 0x3f3f0\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\n__int64 __fastcall EC_nistz256_pre_comp_free(__int64 result)\n{\n  __int64 v1; // x19\n  int v2; // [xsp+2Ch] [xbp+2Ch] BYREF\n\n  if ( result )\n  {\n    v1 = result;\n    CRYPTO_atomic_add(result + 32, 0xFFFFFFFFLL, &v2, *(_QWORD *)(result + 40));\n    result = (unsigned int)v2;\n    if ( v2 <= 0 )\n    {\n      CRYPTO_free(*(_QWORD *)(v1 + 24), \"crypto/ec/ecp_nistz256.c\", 1487);\n      CRYPTO_THREAD_lock_free(*(_QWORD *)(v1 + 40));\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 0xd97fec to 0xd98060 (116 bytes)\n; \n; 2 xrefs:\n; > sub_D98060 @ 0xd9815c\n; > <???> @ 0x3f3f0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xd97fec\nMOV             X29, SP                                                ; +0x4, 0xd97ff0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xd97ff4\nCBZ             X0, loc_D98020                                         ; +0xc, 0xd97ff8\nLDR             X3, [X0,#0x28]                                         ; +0x10, 0xd97ffc\nMOV             X19, X0                                                ; +0x14, 0xd98000\nMOV             W1, #0xFFFFFFFF                                        ; +0x18, 0xd98004\nADD             X0, X0, #0x20 ; ' '                                    ; +0x1c, 0xd98008\nADD             X2, X29, #0x30+var_4                                   ; +0x20, 0xd9800c\nBL              CRYPTO_atomic_add                                      ; +0x24, 0xd98010\nLDR             W0, [X29,#0x30+var_4]                                  ; +0x28, 0xd98014\nCMP             W0, WZR                                                ; +0x2c, 0xd98018\nB.LE            loc_D9802C                                             ; +0x30, 0xd9801c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x34, 0xd98020\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x38, 0xd98024\nRET                                                                    ; +0x3c, 0xd98028\nADRP            X20, #aCryptoEcEcpNis@PAGE; \"crypto/ec/ecp_nistz256.c\" ; +0x40, 0xd9802c\nLDR             X0, [X19,#0x18]                                        ; +0x44, 0xd98030\nADD             X20, X20, #aCryptoEcEcpNis@PAGEOFF; \"crypto/ec/ecp_nistz256.c\" ; +0x48, 0xd98034\nMOV             W2, #0x5CF                                             ; +0x4c, 0xd98038\nMOV             X1, X20                                                ; +0x50, 0xd9803c\nBL              CRYPTO_free                                            ; +0x54, 0xd98040\nLDR             X0, [X19,#0x28]                                        ; +0x58, 0xd98044\nBL              CRYPTO_THREAD_lock_free                                ; +0x5c, 0xd98048\nMOV             X0, X19                                                ; +0x60, 0xd9804c\nMOV             X1, X20                                                ; +0x64, 0xd98050\nMOV             W2, #0x5D1                                             ; +0x68, 0xd98054\nBL              CRYPTO_free                                            ; +0x6c, 0xd98058\nB               loc_D98020                                             ; +0x70, 0xd9805c", "xrefs": ["sub_D98060 @ 0xd9815c", "<???> @ 0x3f3f0"], "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"}