{"type": "func", "start": 397388, "end": 397464, "name": "sub_6104C", "pseudocode": "// \n// sub_6104C from 0x6104c to 0x61098 (76 bytes)\n// \n// 1 xrefs:\n// > sub_5E11C @ 0x5e328\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 *__fastcall sub_6104C(__int64 *result, __int64 a2)\n{\n  __int64 v2; // x8\n  long double v3; // q0\n  __int64 v4; // x20\n\n  v2 = *result;\n  if ( *result )\n  {\n    v3 = *(long double *)v2;\n    *(_QWORD *)(a2 + 16) = *(_QWORD *)(v2 + 16);\n    *(long double *)a2 = v3;\n    v4 = *result;\n    while ( 1 )\n    {\n      v4 = *(_QWORD *)(v4 + 72);\n      if ( !v4 )\n        break;\n      result = (__int64 *)sub_61710(v3);\n    }\n  }\n  else\n  {\n    *(_QWORD *)a2 = 0;\n    *(_QWORD *)(a2 + 8) = 0;\n    *(_QWORD *)(a2 + 16) = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_6104C from 0x6104c to 0x61098 (76 bytes)\n; \n; 1 xrefs:\n; > sub_5E11C @ 0x5e328\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x6104c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x61050\nLDR             X8, [X0]                                               ; +0x8, 0x61054\nMOV             X19, X1                                                ; +0xc, 0x61058\nADD             X29, SP, #0x10                                         ; +0x10, 0x6105c\nCBZ             X8, loc_61088                                          ; +0x14, 0x61060\nLDR             X9, [X8,#0x10]                                         ; +0x18, 0x61064\nLDR             Q0, [X8]                                               ; +0x1c, 0x61068\nSTR             X9, [X19,#0x10]                                        ; +0x20, 0x6106c\nSTR             Q0, [X19]                                              ; +0x24, 0x61070\nLDR             X20, [X0]                                              ; +0x28, 0x61074\nLDR             X20, [X20,#0x48]                                       ; +0x2c, 0x61078\nCBZ             X20, loc_61090                                         ; +0x30, 0x6107c\nBL              sub_61710                                              ; +0x34, 0x61080\nB               loc_61078                                              ; +0x38, 0x61084\nSTP             XZR, XZR, [X19]                                        ; +0x3c, 0x61088\nSTR             XZR, [X19,#0x10]                                       ; +0x40, 0x6108c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x44, 0x61090\nB               loc_61778                                              ; +0x48, 0x61094", "xrefs": ["sub_5E11C @ 0x5e328"], "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"}