{"type": "func", "start": 8196884, "end": 8197032, "name": "BIO_get_new_index", "pseudocode": "// \n// BIO_get_new_index from 0x7d1314 to 0x7d13a8 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f81c\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\nint BIO_get_new_index()\n{\n  int v1; // [sp+Ch] [bp-4h] BYREF\n\n  if ( CRYPTO_THREAD_run_once(&unk_AD2DF0, sub_7D12E0) && dword_AD2DEC )\n  {\n    if ( CRYPTO_atomic_add(&unk_AC0A7C, 1, &v1, bio_type_lock) )\n      return v1;\n    else\n      return -1;\n  }\n  else\n  {\n    ERR_put_error(32, 102, 65, \"crypto/bio/bio_meth.c\", 28);\n    return -1;\n  }\n}", "assembly": "; \n; BIO_get_new_index from 0x7d1314 to 0x7d13a8 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f81c\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\nPUSH            {R4,LR}                                                ; +0x0, 0x7d1314\nLDR             R4, =(dword_AD2DEC - 0x7D1328)                         ; +0x4, 0x7d1318\nLDR             R1, =(sub_7D12E0 - 0x7D1330)                           ; +0x8, 0x7d131c\nADD             R4, PC, R4; dword_AD2DEC                               ; +0xc, 0x7d1320\nSUB             SP, SP, #0x10                                          ; +0x10, 0x7d1324\nADD             R1, PC, R1; sub_7D12E0                                 ; +0x14, 0x7d1328\nADD             R0, R4, #(unk_AD2DF0 - 0xAD2DEC)                       ; +0x18, 0x7d132c\nBL              CRYPTO_THREAD_run_once                                 ; +0x1c, 0x7d1330\nCMP             R0, #0                                                 ; +0x20, 0x7d1334\nBEQ             loc_7D137C                                             ; +0x24, 0x7d1338\nLDR             R3, [R4]                                               ; +0x28, 0x7d133c\nCMP             R3, #0                                                 ; +0x2c, 0x7d1340\nBEQ             loc_7D137C                                             ; +0x30, 0x7d1344\nLDR             R3, =(bio_type_lock_ptr - 0x7D1358)                    ; +0x34, 0x7d1348\nLDR             R0, =(unk_AC0A7C - 0x7D1368)                           ; +0x38, 0x7d134c\nLDR             R3, [PC,R3]; bio_type_lock                             ; +0x3c, 0x7d1350\nMOV             R1, #1                                                 ; +0x40, 0x7d1354\nLDR             R3, [R3]                                               ; +0x44, 0x7d1358\nADD             R2, SP, #0x10+var_4                                    ; +0x48, 0x7d135c\nADD             R0, PC, R0; unk_AC0A7C                                 ; +0x4c, 0x7d1360\nBL              CRYPTO_atomic_add                                      ; +0x50, 0x7d1364\nCMP             R0, #0                                                 ; +0x54, 0x7d1368\nMOVEQ           R0, #0xFFFFFFFF                                        ; +0x58, 0x7d136c\nLDRNE           R0, [SP,#0x10+var_4]                                   ; +0x5c, 0x7d1370\nADD             SP, SP, #0x10                                          ; +0x60, 0x7d1374\nPOP             {R4,PC}                                                ; +0x64, 0x7d1378\nMOV             R3, #0x1C                                              ; +0x68, 0x7d137c\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x6c, 0x7d1380\nLDR             R3, =(aCryptoBioBioMe - 0x7D139C); \"crypto/bio/bio_meth.c\" ; +0x70, 0x7d1384\nMOV             R0, #0x20 ; ' '                                        ; +0x74, 0x7d1388\nMOV             R1, #0x66 ; 'f'                                        ; +0x78, 0x7d138c\nMOV             R2, #0x41 ; 'A'                                        ; +0x7c, 0x7d1390\nADD             R3, PC, R3; \"crypto/bio/bio_meth.c\"                    ; +0x80, 0x7d1394\nBL              ERR_put_error                                          ; +0x84, 0x7d1398\nMOV             R0, #0xFFFFFFFF                                        ; +0x88, 0x7d139c\nADD             SP, SP, #0x10                                          ; +0x8c, 0x7d13a0\nPOP             {R4,PC}                                                ; +0x90, 0x7d13a4", "xrefs": ["<???> @ 0x5f81c"], "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"}