{"type": "func", "start": 16868172, "end": 16868288, "name": "EC_nistz256_pre_comp_free", "pseudocode": "// \n// EC_nistz256_pre_comp_free from 0x101634c to 0x10163c0 (116 bytes)\n// \n// 2 xrefs:\n// > sub_10163C0 @ 0x10164bc\n// > <???> @ 0x5b1e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:05 +0000\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 0x101634c to 0x10163c0 (116 bytes)\n; \n; 2 xrefs:\n; > sub_10163C0 @ 0x10164bc\n; > <???> @ 0x5b1e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:05 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x101634c\nMOV             X29, SP                                                ; +0x4, 0x1016350\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x1016354\nCBZ             X0, loc_1016380                                        ; +0xc, 0x1016358\nLDR             X3, [X0,#0x28]                                         ; +0x10, 0x101635c\nMOV             X19, X0                                                ; +0x14, 0x1016360\nMOV             W1, #0xFFFFFFFF                                        ; +0x18, 0x1016364\nADD             X0, X0, #0x20 ; ' '                                    ; +0x1c, 0x1016368\nADD             X2, X29, #0x30+var_4                                   ; +0x20, 0x101636c\nBL              CRYPTO_atomic_add                                      ; +0x24, 0x1016370\nLDR             W0, [X29,#0x30+var_4]                                  ; +0x28, 0x1016374\nCMP             W0, WZR                                                ; +0x2c, 0x1016378\nB.LE            loc_101638C                                            ; +0x30, 0x101637c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x34, 0x1016380\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x38, 0x1016384\nRET                                                                    ; +0x3c, 0x1016388\nADRP            X20, #aCryptoEcEcpNis@PAGE; \"crypto/ec/ecp_nistz256.c\" ; +0x40, 0x101638c\nLDR             X0, [X19,#0x18]                                        ; +0x44, 0x1016390\nADD             X20, X20, #aCryptoEcEcpNis@PAGEOFF; \"crypto/ec/ecp_nistz256.c\" ; +0x48, 0x1016394\nMOV             W2, #0x5CF                                             ; +0x4c, 0x1016398\nMOV             X1, X20                                                ; +0x50, 0x101639c\nBL              CRYPTO_free                                            ; +0x54, 0x10163a0\nLDR             X0, [X19,#0x28]                                        ; +0x58, 0x10163a4\nBL              CRYPTO_THREAD_lock_free                                ; +0x5c, 0x10163a8\nMOV             X0, X19                                                ; +0x60, 0x10163ac\nMOV             X1, X20                                                ; +0x64, 0x10163b0\nMOV             W2, #0x5D1                                             ; +0x68, 0x10163b4\nBL              CRYPTO_free                                            ; +0x6c, 0x10163b8\nB               loc_1016380                                            ; +0x70, 0x10163bc", "xrefs": ["sub_10163C0 @ 0x10164bc", "<???> @ 0x5b1e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}