{"type": "func", "start": 4298729088, "end": 4298729396, "name": "AudioLineGuideGameObject::customObjectSetup", "pseudocode": "// \n// AudioLineGuideGameObject::customObjectSetup from 0x100396680 to 0x1003967b4 (308 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008060e0\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\nvoid __fastcall AudioLineGuideGameObject::customObjectSetup(\n        AudioLineGuideGameObject *a1,\n        std::vector<std::string> *a2,\n        std::vector<void *> *a3)\n{\n  std::__vector_base<void *>::pointer begin; // x21\n  std::__vector_base<std::string>::pointer capacitym1; // x0\n  int v8; // w0\n  std::__vector_base<std::string>::pointer v9; // x0\n  int v10; // w0\n  std::__vector_base<std::string>::pointer v11; // x0\n  Speed v12; // w0\n  void *v13; // x8\n  std::__vector_base<std::string>::pointer v14; // x0\n  std::__vector_base<std::string>::pointer v15; // x0\n  float v16; // s0\n\n  EffectGameObject::customObjectSetup(a1, a2, a3);\n  begin = a3->__begin_;\n  if ( begin[498] )\n  {\n    capacitym1 = a2->__begin_ + 498;\n    if ( a2->__begin_[498].m_data.m_short.shortStorage.__elems_[22] < 0 )\n      capacitym1 = (std::__vector_base<std::string>::pointer)capacitym1->m_data.m_long.capacitym1;\n    v8 = atoi((const char *)capacitym1);\n  }\n  else\n  {\n    v8 = 0;\n  }\n  a1->m_beatsPerMinute = v8;\n  if ( begin[501] )\n  {\n    v9 = a2->__begin_ + 501;\n    if ( a2->__begin_[501].m_data.m_short.shortStorage.__elems_[22] < 0 )\n      v9 = (std::__vector_base<std::string>::pointer)v9->m_data.m_long.capacitym1;\n    v10 = atoi((const char *)v9);\n  }\n  else\n  {\n    v10 = 0;\n  }\n  a1->m_beatsPerBar = v10;\n  if ( begin[499] )\n  {\n    v11 = a2->__begin_ + 499;\n    if ( a2->__begin_[499].m_data.m_short.shortStorage.__elems_[22] < 0 )\n      v11 = (std::__vector_base<std::string>::pointer)v11->m_data.m_long.capacitym1;\n    v12 = atoi((const char *)v11);\n  }\n  else\n  {\n    v12 = Normal;\n  }\n  a1->m_speed = v12;\n  v13 = begin[500];\n  if ( v13 )\n  {\n    v14 = a2->__begin_ + 500;\n    if ( a2->__begin_[500].m_data.m_short.shortStorage.__elems_[22] < 0 )\n      v14 = (std::__vector_base<std::string>::pointer)v14->m_data.m_long.capacitym1;\n    LOBYTE(v13) = atoi((const char *)v14) != 0;\n  }\n  a1->m_disabled = (char)v13;\n  if ( begin[10] )\n  {\n    v15 = a2->__begin_ + 10;\n    if ( a2->__begin_[10].m_data.m_short.shortStorage.__elems_[22] < 0 )\n      v15 = (std::__vector_base<std::string>::pointer)v15->m_data.m_long.capacitym1;\n    v16 = atof((const char *)v15);\n  }\n  else\n  {\n    v16 = 0.0;\n  }\n  a1->m_duration = v16;\n}", "assembly": "; \n; AudioLineGuideGameObject::customObjectSetup from 0x100396680 to 0x1003967b4 (308 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008060e0\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100396680\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100396684\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100396688\nADD             X29, SP, #0x20                                         ; +0xc, 0x10039668c\nMOV             X21, X2                                                ; +0x10, 0x100396690\nMOV             X20, X1                                                ; +0x14, 0x100396694\nMOV             X19, X0                                                ; +0x18, 0x100396698\nBL              EffectGameObject__customObjectSetup                    ; +0x1c, 0x10039669c\nLDR             X21, [X21]                                             ; +0x20, 0x1003966a0\nLDR             X8, [X21,#0xF90]                                       ; +0x24, 0x1003966a4\nCBZ             X8, loc_1003966D0                                      ; +0x28, 0x1003966a8\nLDR             X8, [X20]                                              ; +0x2c, 0x1003966ac\nMOV             W9, #0x2EB0                                            ; +0x30, 0x1003966b0\nADD             X0, X8, X9                                             ; +0x34, 0x1003966b4\nMOV             W9, #0x2EC7                                            ; +0x38, 0x1003966b8\nLDRSB           W8, [X8,X9]                                            ; +0x3c, 0x1003966bc\nTBZ             W8, #0x1F, loc_1003966C8                               ; +0x40, 0x1003966c0\nLDR             X0, [X0]; char *                                       ; +0x44, 0x1003966c4\nBL              _atoi                                                  ; +0x48, 0x1003966c8\nB               loc_1003966D4                                          ; +0x4c, 0x1003966cc\nMOV             W0, #0                                                 ; +0x50, 0x1003966d0\nSTR             W0, [X19,#0x72C]                                       ; +0x54, 0x1003966d4\nLDR             X8, [X21,#0xFA8]                                       ; +0x58, 0x1003966d8\nCBZ             X8, loc_100396704                                      ; +0x5c, 0x1003966dc\nLDR             X8, [X20]                                              ; +0x60, 0x1003966e0\nMOV             W9, #0x2EF8                                            ; +0x64, 0x1003966e4\nADD             X0, X8, X9                                             ; +0x68, 0x1003966e8\nMOV             W9, #0x2F0F                                            ; +0x6c, 0x1003966ec\nLDRSB           W8, [X8,X9]                                            ; +0x70, 0x1003966f0\nTBZ             W8, #0x1F, loc_1003966FC                               ; +0x74, 0x1003966f4\nLDR             X0, [X0]; char *                                       ; +0x78, 0x1003966f8\nBL              _atoi                                                  ; +0x7c, 0x1003966fc\nB               loc_100396708                                          ; +0x80, 0x100396700\nMOV             W0, #0                                                 ; +0x84, 0x100396704\nSTR             W0, [X19,#0x730]                                       ; +0x88, 0x100396708\nLDR             X8, [X21,#0xF98]                                       ; +0x8c, 0x10039670c\nCBZ             X8, loc_100396738                                      ; +0x90, 0x100396710\nLDR             X8, [X20]                                              ; +0x94, 0x100396714\nMOV             W9, #0x2EC8                                            ; +0x98, 0x100396718\nADD             X0, X8, X9                                             ; +0x9c, 0x10039671c\nMOV             W9, #0x2EDF                                            ; +0xa0, 0x100396720\nLDRSB           W8, [X8,X9]                                            ; +0xa4, 0x100396724\nTBZ             W8, #0x1F, loc_100396730                               ; +0xa8, 0x100396728\nLDR             X0, [X0]; char *                                       ; +0xac, 0x10039672c\nBL              _atoi                                                  ; +0xb0, 0x100396730\nB               loc_10039673C                                          ; +0xb4, 0x100396734\nMOV             W0, #0                                                 ; +0xb8, 0x100396738\nSTR             W0, [X19,#0x734]                                       ; +0xbc, 0x10039673c\nLDR             X8, [X21,#0xFA0]                                       ; +0xc0, 0x100396740\nCBZ             X8, loc_100396770                                      ; +0xc4, 0x100396744\nLDR             X8, [X20]                                              ; +0xc8, 0x100396748\nMOV             W9, #0x2EE0                                            ; +0xcc, 0x10039674c\nADD             X0, X8, X9                                             ; +0xd0, 0x100396750\nMOV             W9, #0x2EF7                                            ; +0xd4, 0x100396754\nLDRSB           W8, [X8,X9]                                            ; +0xd8, 0x100396758\nTBZ             W8, #0x1F, loc_100396764                               ; +0xdc, 0x10039675c\nLDR             X0, [X0]; char *                                       ; +0xe0, 0x100396760\nBL              _atoi                                                  ; +0xe4, 0x100396764\nCMP             W0, #0                                                 ; +0xe8, 0x100396768\nCSET            W8, NE                                                 ; +0xec, 0x10039676c\nSTRB            W8, [X19,#0x738]                                       ; +0xf0, 0x100396770\nLDR             X8, [X21,#0x50]                                        ; +0xf4, 0x100396774\nCBZ             X8, loc_10039679C                                      ; +0xf8, 0x100396778\nLDR             X8, [X20]                                              ; +0xfc, 0x10039677c\nADD             X0, X8, #0xF0                                          ; +0x100, 0x100396780\nLDRSB           W8, [X8,#0x107]                                        ; +0x104, 0x100396784\nTBZ             W8, #0x1F, loc_100396790                               ; +0x108, 0x100396788\nLDR             X0, [X0]; char *                                       ; +0x10c, 0x10039678c\nBL              _atof                                                  ; +0x110, 0x100396790\nFCVT            S0, D0                                                 ; +0x114, 0x100396794\nB               loc_1003967A0                                          ; +0x118, 0x100396798\nFMOV            S0, WZR                                                ; +0x11c, 0x10039679c\nSTR             S0, [X19,#0x5AC]                                       ; +0x120, 0x1003967a0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x124, 0x1003967a4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x128, 0x1003967a8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x12c, 0x1003967ac\nRET                                                                    ; +0x130, 0x1003967b0", "xrefs": ["<???> @ 0x1008060e0"], "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"}