{"type": "func", "start": 14552708, "end": 14552736, "name": "CRYPTO_atomic_add", "pseudocode": "// \n// CRYPTO_atomic_add from 0xde0e84 to 0xde0ea0 (28 bytes)\n// \n// 37 xrefs:\n// > ssl_cert_free @ 0xd39fa8\n// > SSL_up_ref @ 0xd3e890\n// > SSL_copy_session_id @ 0xd3fcb0\n// > SSL_CTX_up_ref @ 0xd412a4\n// > SSL_CTX_free @ 0xd412f8\n// > SSL_free @ 0xd42a08\n// > SSL_dup @ 0xd43828\n// > SSL_SESSION_free @ 0xd46064\n// > SSL_SESSION_up_ref @ 0xd46894\n// > asn1_do_lock @ 0xd70370\n// > BIO_free @ 0xd765ac\n// > BIO_up_ref @ 0xd766b8\n// > BIO_get_new_index @ 0xd77260\n// > DH_free @ 0xd87d4c\n// > DH_up_ref @ 0xd87fdc\n// > DSA_free @ 0xd89720\n// > DSA_up_ref @ 0xd89994\n// > DSO_free @ 0xd8a82c\n// > DSO_up_ref @ 0xd8aacc\n// > EC_KEY_free @ 0xd8f9c4\n// > EC_KEY_up_ref @ 0xd8fd38\n// > EC_ec_pre_comp_dup @ 0xd928c4\n// > EC_ec_pre_comp_free @ 0xd928fc\n// > EC_nistz256_pre_comp_dup @ 0xd97fd8\n// > EC_nistz256_pre_comp_free @ 0xd98010\n// > engine_free_util @ 0xd9d504\n// > ENGINE_up_ref @ 0xd9e070\n// > EVP_PKEY_up_ref @ 0xdac094\n// > EVP_PKEY_free @ 0xdac7ec\n// > RSA_free @ 0xdd3d84\n// > RSA_up_ref @ 0xdd4048\n// > CRYPTO_atomic_add @ 0xde0e90\n// > X509_STORE_free @ 0xde7784\n// > X509_STORE_up_ref @ 0xde7860\n// > X509_up_ref @ 0xde8b30\n// > X509_CRL_up_ref @ 0xdef140\n// > <???> @ 0xb87e8\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 CRYPTO_atomic_add(unsigned int *a1, int a2, unsigned int *a3)\n{\n  unsigned int v3; // w3\n  unsigned int v4; // w3\n\n  do\n  {\n    v3 = __ldaxr(a1);\n    v4 = v3 + a2;\n  }\n  while ( __stlxr(v4, a1) );\n  *a3 = v4;\n  return 1;\n}", "assembly": "; \n; CRYPTO_atomic_add from 0xde0e84 to 0xde0ea0 (28 bytes)\n; \n; 37 xrefs:\n; > ssl_cert_free @ 0xd39fa8\n; > SSL_up_ref @ 0xd3e890\n; > SSL_copy_session_id @ 0xd3fcb0\n; > SSL_CTX_up_ref @ 0xd412a4\n; > SSL_CTX_free @ 0xd412f8\n; > SSL_free @ 0xd42a08\n; > SSL_dup @ 0xd43828\n; > SSL_SESSION_free @ 0xd46064\n; > SSL_SESSION_up_ref @ 0xd46894\n; > asn1_do_lock @ 0xd70370\n; > BIO_free @ 0xd765ac\n; > BIO_up_ref @ 0xd766b8\n; > BIO_get_new_index @ 0xd77260\n; > DH_free @ 0xd87d4c\n; > DH_up_ref @ 0xd87fdc\n; > DSA_free @ 0xd89720\n; > DSA_up_ref @ 0xd89994\n; > DSO_free @ 0xd8a82c\n; > DSO_up_ref @ 0xd8aacc\n; > EC_KEY_free @ 0xd8f9c4\n; > EC_KEY_up_ref @ 0xd8fd38\n; > EC_ec_pre_comp_dup @ 0xd928c4\n; > EC_ec_pre_comp_free @ 0xd928fc\n; > EC_nistz256_pre_comp_dup @ 0xd97fd8\n; > EC_nistz256_pre_comp_free @ 0xd98010\n; > engine_free_util @ 0xd9d504\n; > ENGINE_up_ref @ 0xd9e070\n; > EVP_PKEY_up_ref @ 0xdac094\n; > EVP_PKEY_free @ 0xdac7ec\n; > RSA_free @ 0xdd3d84\n; > RSA_up_ref @ 0xdd4048\n; > CRYPTO_atomic_add @ 0xde0e90\n; > X509_STORE_free @ 0xde7784\n; > X509_STORE_up_ref @ 0xde7860\n; > X509_up_ref @ 0xde8b30\n; > X509_CRL_up_ref @ 0xdef140\n; > <???> @ 0xb87e8\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\nLDAXR           W3, [X0]                                               ; +0x0, 0xde0e84\nADD             W3, W3, W1                                             ; +0x4, 0xde0e88\nSTLXR           W4, W3, [X0]                                           ; +0x8, 0xde0e8c\nCBNZ            W4, CRYPTO_atomic_add                                  ; +0xc, 0xde0e90\nMOV             W0, #1                                                 ; +0x10, 0xde0e94\nSTR             W3, [X2]                                               ; +0x14, 0xde0e98\nRET                                                                    ; +0x18, 0xde0e9c", "xrefs": ["ssl_cert_free @ 0xd39fa8", "SSL_up_ref @ 0xd3e890", "SSL_copy_session_id @ 0xd3fcb0", "SSL_CTX_up_ref @ 0xd412a4", "SSL_CTX_free @ 0xd412f8", "SSL_free @ 0xd42a08", "SSL_dup @ 0xd43828", "SSL_SESSION_free @ 0xd46064", "SSL_SESSION_up_ref @ 0xd46894", "asn1_do_lock @ 0xd70370", "BIO_free @ 0xd765ac", "BIO_up_ref @ 0xd766b8", "BIO_get_new_index @ 0xd77260", "DH_free @ 0xd87d4c", "DH_up_ref @ 0xd87fdc", "DSA_free @ 0xd89720", "DSA_up_ref @ 0xd89994", "DSO_free @ 0xd8a82c", "DSO_up_ref @ 0xd8aacc", "EC_KEY_free @ 0xd8f9c4", "EC_KEY_up_ref @ 0xd8fd38", "EC_ec_pre_comp_dup @ 0xd928c4", "EC_ec_pre_comp_free @ 0xd928fc", "EC_nistz256_pre_comp_dup @ 0xd97fd8", "EC_nistz256_pre_comp_free @ 0xd98010", "engine_free_util @ 0xd9d504", "ENGINE_up_ref @ 0xd9e070", "EVP_PKEY_up_ref @ 0xdac094", "EVP_PKEY_free @ 0xdac7ec", "RSA_free @ 0xdd3d84", "RSA_up_ref @ 0xdd4048", "CRYPTO_atomic_add @ 0xde0e90", "X509_STORE_free @ 0xde7784", "X509_STORE_up_ref @ 0xde7860", "X509_up_ref @ 0xde8b30", "X509_CRL_up_ref @ 0xdef140", "<???> @ 0xb87e8"], "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"}