{"type": "func", "start": 16669512, "end": 16669732, "name": "ASN1_TIME_adj", "pseudocode": "// \n// ASN1_TIME_adj from 0xfe5b48 to 0xfe5c24 (220 bytes)\n// \n// 3 xrefs:\n// > ASN1_TIME_set @ 0xfe5c2c\n// > X509_time_adj_ex @ 0x1068ce8\n// > <???> @ 0x416e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:39 +0000\n// \n\n__int64 __fastcall ASN1_TIME_adj(__int64 a1, __int64 a2, unsigned int a3, __int64 a4)\n{\n  __int64 v6; // x0\n  __int64 v7; // x19\n  __int64 v10; // [xsp+38h] [xbp+38h] BYREF\n  _BYTE v11[56]; // [xsp+48h] [xbp+48h] BYREF\n\n  v10 = a2;\n  v6 = OPENSSL_gmtime(&v10, v11);\n  v7 = v6;\n  if ( v6 )\n  {\n    if ( (a3 || a4) && !(unsigned int)OPENSSL_gmtime_adj(v6, a3, a4) )\n    {\n      return 0;\n    }\n    else if ( (unsigned int)(*(_DWORD *)(v7 + 20) - 50) <= 0x63 )\n    {\n      return ASN1_UTCTIME_adj(a1, v10, a3);\n    }\n    else\n    {\n      return ASN1_GENERALIZEDTIME_adj(a1, v10, a3);\n    }\n  }\n  else\n  {\n    ERR_put_error(13, 217, 173, \"crypto/asn1/a_time.c\", 40);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_TIME_adj from 0xfe5b48 to 0xfe5c24 (220 bytes)\n; \n; 3 xrefs:\n; > ASN1_TIME_set @ 0xfe5c2c\n; > X509_time_adj_ex @ 0x1068ce8\n; > <???> @ 0x416e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:39 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xfe5b48\nMOV             X29, SP                                                ; +0x4, 0xfe5b4c\nADD             X4, X29, #0x80+arg_0                                   ; +0x8, 0xfe5b50\nSTR             X21, [SP,#0x80+var_60]                                 ; +0xc, 0xfe5b54\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x10, 0xfe5b58\nMOV             X21, X0                                                ; +0x14, 0xfe5b5c\nSTR             X3, [X29,#0x80+var_50]                                 ; +0x18, 0xfe5b60\nSTR             X1, [X4,#-0x48]!                                       ; +0x1c, 0xfe5b64\nADD             X1, X29, #0x80+var_38                                  ; +0x20, 0xfe5b68\nMOV             W20, W2                                                ; +0x24, 0xfe5b6c\nMOV             X0, X4                                                 ; +0x28, 0xfe5b70\nBL              OPENSSL_gmtime                                         ; +0x2c, 0xfe5b74\nMOV             X19, X0                                                ; +0x30, 0xfe5b78\nLDR             X3, [X29,#0x80+var_50]                                 ; +0x34, 0xfe5b7c\nCBZ             X0, loc_FE5C00                                         ; +0x38, 0xfe5b80\nCBNZ            W20, loc_FE5BDC                                        ; +0x3c, 0xfe5b84\nCBNZ            X3, loc_FE5BDC                                         ; +0x40, 0xfe5b88\nLDR             W4, [X19,#0x14]                                        ; +0x44, 0xfe5b8c\nSUB             W4, W4, #0x32 ; '2'                                    ; +0x48, 0xfe5b90\nCMP             W4, #0x63 ; 'c'                                        ; +0x4c, 0xfe5b94\nB.LS            loc_FE5BBC                                             ; +0x50, 0xfe5b98\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x54, 0xfe5b9c\nMOV             X0, X21                                                ; +0x58, 0xfe5ba0\nMOV             W2, W20                                                ; +0x5c, 0xfe5ba4\nBL              ASN1_GENERALIZEDTIME_adj                               ; +0x60, 0xfe5ba8\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x64, 0xfe5bac\nLDR             X21, [SP,#0x80+var_60]                                 ; +0x68, 0xfe5bb0\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x6c, 0xfe5bb4\nRET                                                                    ; +0x70, 0xfe5bb8\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x74, 0xfe5bbc\nMOV             W2, W20                                                ; +0x78, 0xfe5bc0\nMOV             X0, X21                                                ; +0x7c, 0xfe5bc4\nBL              ASN1_UTCTIME_adj                                       ; +0x80, 0xfe5bc8\nLDR             X21, [SP,#0x80+var_60]                                 ; +0x84, 0xfe5bcc\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x88, 0xfe5bd0\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x8c, 0xfe5bd4\nRET                                                                    ; +0x90, 0xfe5bd8\nMOV             X2, X3                                                 ; +0x94, 0xfe5bdc\nMOV             X0, X19                                                ; +0x98, 0xfe5be0\nMOV             W1, W20                                                ; +0x9c, 0xfe5be4\nSTR             X3, [X29,#0x80+var_50]                                 ; +0xa0, 0xfe5be8\nBL              OPENSSL_gmtime_adj                                     ; +0xa4, 0xfe5bec\nLDR             X3, [X29,#0x80+var_50]                                 ; +0xa8, 0xfe5bf0\nCBNZ            W0, loc_FE5B8C                                         ; +0xac, 0xfe5bf4\nMOV             X0, #0                                                 ; +0xb0, 0xfe5bf8\nB               loc_FE5BAC                                             ; +0xb4, 0xfe5bfc\nADRP            X3, #aCryptoAsn1ATim@PAGE; \"crypto/asn1/a_time.c\"      ; +0xb8, 0xfe5c00\nMOV             W0, #0xD                                               ; +0xbc, 0xfe5c04\nMOV             W1, #0xD9                                              ; +0xc0, 0xfe5c08\nMOV             W2, #0xAD                                              ; +0xc4, 0xfe5c0c\nADD             X3, X3, #aCryptoAsn1ATim@PAGEOFF; \"crypto/asn1/a_time.c\" ; +0xc8, 0xfe5c10\nMOV             W4, #0x28 ; '('                                        ; +0xcc, 0xfe5c14\nBL              ERR_put_error                                          ; +0xd0, 0xfe5c18\nMOV             X0, X19                                                ; +0xd4, 0xfe5c1c\nB               loc_FE5BAC                                             ; +0xd8, 0xfe5c20", "xrefs": ["ASN1_TIME_set @ 0xfe5c2c", "X509_time_adj_ex @ 0x1068ce8", "<???> @ 0x416e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}