{"type": "func", "start": 11030164, "end": 11030236, "name": "BN_mod_add_quick", "pseudocode": "// \n// BN_mod_add_quick from 0xa84e94 to 0xa84edc (72 bytes)\n// \n// 19 xrefs:\n// > ossl_ecdsa_sign_sig @ 0xa02f30\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa06f88\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa06fd0\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa070fc\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa07160\n// > ec_GFp_simple_dbl @ 0xa085b8\n// > ec_GFp_simple_dbl @ 0xa08630\n// > ec_GFp_simple_dbl @ 0xa08828\n// > ec_GFp_simple_dbl @ 0xa08844\n// > ec_GFp_simple_dbl @ 0xa08864\n// > ec_GFp_simple_dbl @ 0xa088d8\n// > ec_GFp_simple_add @ 0xa0923c\n// > ec_GFp_simple_add @ 0xa09258\n// > ec_GFp_simple_is_on_curve @ 0xa095f0\n// > ec_GFp_simple_is_on_curve @ 0xa09630\n// > ec_GFp_simple_is_on_curve @ 0xa096c8\n// > ec_GFp_simple_is_on_curve @ 0xa09748\n// > ec_GFp_simple_is_on_curve @ 0xa097bc\n// > <???> @ 0x7b70c\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:08:51 +0000\n// \n\nint __fastcall BN_mod_add_quick(int *a1, int *a2, int *a3, int *a4)\n{\n  int result; // r0\n\n  result = BN_uadd(a1, a2, a3, a4);\n  if ( result )\n  {\n    if ( BN_ucmp(a1, a4) < 0 )\n      return 1;\n    else\n      return BN_usub(a1, a1, a4);\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_add_quick from 0xa84e94 to 0xa84edc (72 bytes)\n; \n; 19 xrefs:\n; > ossl_ecdsa_sign_sig @ 0xa02f30\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa06f88\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa06fd0\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa070fc\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa07160\n; > ec_GFp_simple_dbl @ 0xa085b8\n; > ec_GFp_simple_dbl @ 0xa08630\n; > ec_GFp_simple_dbl @ 0xa08828\n; > ec_GFp_simple_dbl @ 0xa08844\n; > ec_GFp_simple_dbl @ 0xa08864\n; > ec_GFp_simple_dbl @ 0xa088d8\n; > ec_GFp_simple_add @ 0xa0923c\n; > ec_GFp_simple_add @ 0xa09258\n; > ec_GFp_simple_is_on_curve @ 0xa095f0\n; > ec_GFp_simple_is_on_curve @ 0xa09630\n; > ec_GFp_simple_is_on_curve @ 0xa096c8\n; > ec_GFp_simple_is_on_curve @ 0xa09748\n; > ec_GFp_simple_is_on_curve @ 0xa097bc\n; > <???> @ 0x7b70c\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:08:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0xa84e94\nMOV             R5, R3                                                 ; +0x4, 0xa84e98\nMOV             R4, R0                                                 ; +0x8, 0xa84e9c\nBL              BN_uadd                                                ; +0xc, 0xa84ea0\nCMP             R0, #0                                                 ; +0x10, 0xa84ea4\nPOPEQ           {R3-R5,PC}                                             ; +0x14, 0xa84ea8\nMOV             R0, R4                                                 ; +0x18, 0xa84eac\nMOV             R1, R5                                                 ; +0x1c, 0xa84eb0\nBL              BN_ucmp                                                ; +0x20, 0xa84eb4\nCMP             R0, #0                                                 ; +0x24, 0xa84eb8\nBLT             loc_A84ED4                                             ; +0x28, 0xa84ebc\nMOV             R2, R5                                                 ; +0x2c, 0xa84ec0\nMOV             R0, R4                                                 ; +0x30, 0xa84ec4\nMOV             R1, R4                                                 ; +0x34, 0xa84ec8\nPOP             {R3-R5,LR}                                             ; +0x38, 0xa84ecc\nB               BN_usub                                                ; +0x3c, 0xa84ed0\nMOV             R0, #1                                                 ; +0x40, 0xa84ed4\nPOP             {R3-R5,PC}                                             ; +0x44, 0xa84ed8", "xrefs": ["ossl_ecdsa_sign_sig @ 0xa02f30", "ec_GFp_simple_set_compressed_coordinates @ 0xa06f88", "ec_GFp_simple_set_compressed_coordinates @ 0xa06fd0", "ec_GFp_simple_set_compressed_coordinates @ 0xa070fc", "ec_GFp_simple_set_compressed_coordinates @ 0xa07160", "ec_GFp_simple_dbl @ 0xa085b8", "ec_GFp_simple_dbl @ 0xa08630", "ec_GFp_simple_dbl @ 0xa08828", "ec_GFp_simple_dbl @ 0xa08844", "ec_GFp_simple_dbl @ 0xa08864", "ec_GFp_simple_dbl @ 0xa088d8", "ec_GFp_simple_add @ 0xa0923c", "ec_GFp_simple_add @ 0xa09258", "ec_GFp_simple_is_on_curve @ 0xa095f0", "ec_GFp_simple_is_on_curve @ 0xa09630", "ec_GFp_simple_is_on_curve @ 0xa096c8", "ec_GFp_simple_is_on_curve @ 0xa09748", "ec_GFp_simple_is_on_curve @ 0xa097bc", "<???> @ 0x7b70c"], "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"}