{"type": "func", "start": 14119444, "end": 14119596, "name": "BIO_get_new_index", "pseudocode": "// \n// BIO_get_new_index from 0xd77214 to 0xd772ac (152 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xc3198\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 BIO_get_new_index()\n{\n  unsigned int v1; // [xsp+2Ch] [xbp+2Ch] BYREF\n\n  if ( (unsigned int)CRYPTO_THREAD_run_once(algn_125D524, sub_D771E4) && dword_125D520 )\n  {\n    if ( (unsigned int)CRYPTO_atomic_add(&unk_1238940, 1, &v1, bio_type_lock) )\n      return v1;\n    else\n      return 0xFFFFFFFFLL;\n  }\n  else\n  {\n    ERR_put_error(32, 102, 65, \"crypto/bio/bio_meth.c\", 28);\n    return 0xFFFFFFFFLL;\n  }\n}", "assembly": "; \n; BIO_get_new_index from 0xd77214 to 0xd772ac (152 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xc3198\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xd77214\nADRP            X1, #sub_D771E4@PAGE                                   ; +0x4, 0xd77218\nMOV             X29, SP                                                ; +0x8, 0xd7721c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0xd77220\nADRP            X19, #dword_125D520@PAGE                               ; +0x10, 0xd77224\nADD             X0, X19, #dword_125D520@PAGEOFF                        ; +0x14, 0xd77228\nADD             X1, X1, #sub_D771E4@PAGEOFF                            ; +0x18, 0xd7722c\nADD             X0, X0, #4                                             ; +0x1c, 0xd77230\nBL              CRYPTO_THREAD_run_once                                 ; +0x20, 0xd77234\nCBZ             W0, loc_D77278                                         ; +0x24, 0xd77238\nLDR             W0, [X19,#dword_125D520@PAGEOFF]                       ; +0x28, 0xd7723c\nCBZ             W0, loc_D77278                                         ; +0x2c, 0xd77240\nADRP            X3, #bio_type_lock_ptr@PAGE                            ; +0x30, 0xd77244\nADRL            X0, unk_1238940                                        ; +0x34, 0xd77248\nMOV             W1, #1                                                 ; +0x3c, 0xd77250\nADD             X2, X29, #0x30+var_4                                   ; +0x40, 0xd77254\nLDR             X3, [X3,#bio_type_lock_ptr@PAGEOFF]; bio_type_lock     ; +0x44, 0xd77258\nLDR             X3, [X3]                                               ; +0x48, 0xd7725c\nBL              CRYPTO_atomic_add                                      ; +0x4c, 0xd77260\nCBZ             W0, loc_D772A4                                         ; +0x50, 0xd77264\nLDR             W0, [X29,#0x30+var_4]                                  ; +0x54, 0xd77268\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x58, 0xd7726c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0xd77270\nRET                                                                    ; +0x60, 0xd77274\nADRP            X3, #aCryptoBioBioMe@PAGE; \"crypto/bio/bio_meth.c\"     ; +0x64, 0xd77278\nMOV             W0, #0x20 ; ' '                                        ; +0x68, 0xd7727c\nMOV             W1, #0x66 ; 'f'                                        ; +0x6c, 0xd77280\nMOV             W2, #0x41 ; 'A'                                        ; +0x70, 0xd77284\nADD             X3, X3, #aCryptoBioBioMe@PAGEOFF; \"crypto/bio/bio_meth.c\" ; +0x74, 0xd77288\nMOV             W4, #0x1C                                              ; +0x78, 0xd7728c\nBL              ERR_put_error                                          ; +0x7c, 0xd77290\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x80, 0xd77294\nMOV             W0, #0xFFFFFFFF                                        ; +0x84, 0xd77298\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x88, 0xd7729c\nRET                                                                    ; +0x8c, 0xd772a0\nMOV             W0, #0xFFFFFFFF                                        ; +0x90, 0xd772a4\nB               loc_D7726C                                             ; +0x94, 0xd772a8", "xrefs": ["<???> @ 0xc3198"], "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"}