{"type": "func", "start": 10379028, "end": 10379176, "name": "BIO_get_new_index", "pseudocode": "// \n// BIO_get_new_index from 0x9e5f14 to 0x9e5fa8 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7929c\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:07:23 +0000\n// \n\nint BIO_get_new_index()\n{\n  int v1; // [sp+Ch] [bp-4h] BYREF\n\n  if ( CRYPTO_THREAD_run_once(&unk_D3407C, sub_9E5EE0) && dword_D34078 )\n  {\n    if ( CRYPTO_atomic_add(&unk_D25C54, 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 0x9e5f14 to 0x9e5fa8 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7929c\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:07:23 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x9e5f14\nLDR             R4, =(dword_D34078 - 0x9E5F28)                         ; +0x4, 0x9e5f18\nLDR             R1, =(sub_9E5EE0 - 0x9E5F30)                           ; +0x8, 0x9e5f1c\nADD             R4, PC, R4; dword_D34078                               ; +0xc, 0x9e5f20\nSUB             SP, SP, #0x10                                          ; +0x10, 0x9e5f24\nADD             R1, PC, R1; sub_9E5EE0                                 ; +0x14, 0x9e5f28\nADD             R0, R4, #(unk_D3407C - 0xD34078)                       ; +0x18, 0x9e5f2c\nBL              CRYPTO_THREAD_run_once                                 ; +0x1c, 0x9e5f30\nCMP             R0, #0                                                 ; +0x20, 0x9e5f34\nBEQ             loc_9E5F7C                                             ; +0x24, 0x9e5f38\nLDR             R3, [R4]                                               ; +0x28, 0x9e5f3c\nCMP             R3, #0                                                 ; +0x2c, 0x9e5f40\nBEQ             loc_9E5F7C                                             ; +0x30, 0x9e5f44\nLDR             R3, =(bio_type_lock_ptr - 0x9E5F58)                    ; +0x34, 0x9e5f48\nLDR             R0, =(unk_D25C54 - 0x9E5F68)                           ; +0x38, 0x9e5f4c\nLDR             R3, [PC,R3]; bio_type_lock                             ; +0x3c, 0x9e5f50\nMOV             R1, #1                                                 ; +0x40, 0x9e5f54\nLDR             R3, [R3]                                               ; +0x44, 0x9e5f58\nADD             R2, SP, #0x10+var_4                                    ; +0x48, 0x9e5f5c\nADD             R0, PC, R0; unk_D25C54                                 ; +0x4c, 0x9e5f60\nBL              CRYPTO_atomic_add                                      ; +0x50, 0x9e5f64\nCMP             R0, #0                                                 ; +0x54, 0x9e5f68\nMOVEQ           R0, #0xFFFFFFFF                                        ; +0x58, 0x9e5f6c\nLDRNE           R0, [SP,#0x10+var_4]                                   ; +0x5c, 0x9e5f70\nADD             SP, SP, #0x10                                          ; +0x60, 0x9e5f74\nPOP             {R4,PC}                                                ; +0x64, 0x9e5f78\nMOV             R3, #0x1C                                              ; +0x68, 0x9e5f7c\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x6c, 0x9e5f80\nLDR             R3, =(aCryptoBioBioMe - 0x9E5F9C); \"crypto/bio/bio_meth.c\" ; +0x70, 0x9e5f84\nMOV             R0, #0x20 ; ' '                                        ; +0x74, 0x9e5f88\nMOV             R1, #0x66 ; 'f'                                        ; +0x78, 0x9e5f8c\nMOV             R2, #0x41 ; 'A'                                        ; +0x7c, 0x9e5f90\nADD             R3, PC, R3; \"crypto/bio/bio_meth.c\"                    ; +0x80, 0x9e5f94\nBL              ERR_put_error                                          ; +0x84, 0x9e5f98\nMOV             R0, #0xFFFFFFFF                                        ; +0x88, 0x9e5f9c\nADD             SP, SP, #0x10                                          ; +0x8c, 0x9e5fa0\nPOP             {R4,PC}                                                ; +0x90, 0x9e5fa4", "xrefs": ["<???> @ 0x7929c"], "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"}