{"type": "func", "start": 645668, "end": 645792, "name": "sub_9DA24", "pseudocode": "// \n// sub_9DA24 from 0x9da24 to 0x9daa0 (124 bytes)\n// \n// 7 xrefs:\n// > sub_9D7F4 @ 0x9d83c\n// > sub_9E434 @ 0x9e468\n// > sub_9E434 @ 0x9e4d4\n// > sub_9E650 @ 0x9e67c\n// > sub_9E798 @ 0x9e7b4\n// > sub_9E808 @ 0x9e830\n// > sub_9E934 @ 0x9e93c\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 12:14:27 +0000\n// \n\n__int64 __fastcall sub_9DA24(__int64 a1, _DWORD *a2)\n{\n  int i; // w21\n  __int64 result; // x0\n  unsigned __int8 v6; // [xsp+Ch] [xbp-24h]\n\n  for ( i = 0; ; ++i )\n  {\n    result = sub_9E8C4(*(_QWORD *)(a1 + 368));\n    if ( (_DWORD)result )\n      break;\n    if ( v6 > 0x20u || ((1LL << v6) & 0x100002600LL) == 0 )\n    {\n      result = sub_9E91C(*(_QWORD *)(a1 + 368), 0xFFFFFFFFLL);\n      if ( !(_DWORD)result )\n      {\n        result = 0;\n        if ( a2 )\n          *a2 = i;\n      }\n      return result;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_9DA24 from 0x9da24 to 0x9daa0 (124 bytes)\n; \n; 7 xrefs:\n; > sub_9D7F4 @ 0x9d83c\n; > sub_9E434 @ 0x9e468\n; > sub_9E434 @ 0x9e4d4\n; > sub_9E650 @ 0x9e67c\n; > sub_9E798 @ 0x9e7b4\n; > sub_9E808 @ 0x9e830\n; > sub_9E934 @ 0x9e93c\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 12:14:27 +0000\n; \nSTR             X23, [SP,#-0x10+var_30]!                               ; +0x0, 0x9da24\nMOV             X23, #0x2600                                           ; +0x4, 0x9da28\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x8, 0x9da2c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0xc, 0x9da30\nMOV             X19, X1                                                ; +0x10, 0x9da34\nMOV             X20, X0                                                ; +0x14, 0x9da38\nMOV             W21, WZR                                               ; +0x18, 0x9da3c\nMOV             W22, #1                                                ; +0x1c, 0x9da40\nMOVK            X23, #1,LSL#32                                         ; +0x20, 0x9da44\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x24, 0x9da48\nADD             X29, SP, #0x30                                         ; +0x28, 0x9da4c\nLDR             X0, [X20,#0x170]                                       ; +0x2c, 0x9da50\nBL              sub_9E8C4                                              ; +0x30, 0x9da54\nCBNZ            W0, loc_9DA98                                          ; +0x34, 0x9da58\nLDRB            W8, [SP,#0x30+var_24]                                  ; +0x38, 0x9da5c\nCMP             W8, #0x20 ; ' '                                        ; +0x3c, 0x9da60\nB.HI            loc_9DA7C                                              ; +0x40, 0x9da64\nLSL             X8, X22, X8                                            ; +0x44, 0x9da68\nTST             X8, X23                                                ; +0x48, 0x9da6c\nB.EQ            loc_9DA7C                                              ; +0x4c, 0x9da70\nADD             W21, W21, #1                                           ; +0x50, 0x9da74\nB               loc_9DA50                                              ; +0x54, 0x9da78\nLDR             X0, [X20,#0x170]                                       ; +0x58, 0x9da7c\nMOV             W1, #0xFFFFFFFF                                        ; +0x5c, 0x9da80\nBL              sub_9E91C                                              ; +0x60, 0x9da84\nCBNZ            W0, loc_9DA98                                          ; +0x64, 0x9da88\nMOV             W0, WZR                                                ; +0x68, 0x9da8c\nCBZ             X19, loc_9DA98                                         ; +0x6c, 0x9da90\nSTR             W21, [X19]                                             ; +0x70, 0x9da94\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x74, 0x9da98\nB               loc_9E90C                                              ; +0x78, 0x9da9c", "xrefs": ["sub_9D7F4 @ 0x9d83c", "sub_9E434 @ 0x9e468", "sub_9E434 @ 0x9e4d4", "sub_9E650 @ 0x9e67c", "sub_9E798 @ 0x9e7b4", "sub_9E808 @ 0x9e830", "sub_9E934 @ 0x9e93c"], "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"}