{"type": "func", "start": 5178648, "end": 5178946, "name": "DashRingObject::customObjectSetup", "pseudocode": "// \n// DashRingObject::customObjectSetup from 0x4f0518 to 0x4f0642 (298 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:13 +0000\n// \n\nint __fastcall DashRingObject::customObjectSetup(unsigned int a1, int *a2, int a3)\n{\n  float v6; // r3\n  const char *v7; // r0\n  float v8; // s0\n  float v9; // r0\n  float v10; // r3\n  const char *v11; // r0\n  float v12; // s0\n  float v13; // r0\n  int v14; // r0\n  const char *v15; // r0\n  int result; // r0\n  const char *v17; // r0\n  const char *v18; // r0\n  float v19; // s0\n\n  RingObject::customObjectSetup(a1, a2, a3);\n  v6 = *(float *)(*(_DWORD *)a3 + 2344);\n  if ( v6 == 0.0 )\n  {\n    v9 = 0.0;\n  }\n  else\n  {\n    if ( (*(_BYTE *)(*a2 + 7032) & 1) != 0 )\n      v7 = *(const char **)(*a2 + 7040);\n    else\n      v7 = (const char *)(*a2 + 7033);\n    v8 = atof(v7);\n    sub_4E6B6C();\n    v9 = v8;\n  }\n  *(_DWORD *)(a1 + 1652) = cocos2d::clampf((cocos2d *)LODWORD(v9), -10000.0, 10000.0, v6);\n  v10 = *(float *)(*(_DWORD *)a3 + 2352);\n  if ( v10 == 0.0 )\n  {\n    v13 = 0.0;\n  }\n  else\n  {\n    if ( (*(_BYTE *)(*a2 + 7056) & 1) != 0 )\n      v11 = *(const char **)(*a2 + 7064);\n    else\n      v11 = (const char *)(*a2 + 7057);\n    v12 = atof(v11);\n    sub_4E6B6C();\n    v13 = v12;\n  }\n  *(_DWORD *)(a1 + 1656) = cocos2d::clampf((cocos2d *)LODWORD(v13), -10000.0, 10000.0, v10);\n  v14 = *(_DWORD *)(*(_DWORD *)a3 + 2348);\n  if ( v14 )\n  {\n    if ( (*(_BYTE *)(*a2 + 7044) & 1) != 0 )\n      v15 = *(const char **)(*a2 + 7052);\n    else\n      v15 = (const char *)(*a2 + 7045);\n    LOBYTE(v14) = atoi(v15) != 0;\n  }\n  *(_BYTE *)(a1 + 1664) = v14;\n  result = *(_DWORD *)(*(_DWORD *)a3 + 2356);\n  if ( result )\n  {\n    if ( (*(_BYTE *)(*a2 + 7068) & 1) != 0 )\n      v17 = *(const char **)(*a2 + 7076);\n    else\n      v17 = (const char *)(*a2 + 7069);\n    result = atoi(v17) != 0;\n  }\n  *(_BYTE *)(a1 + 1665) = result;\n  if ( *(_DWORD *)(*(_DWORD *)a3 + 2360) )\n  {\n    if ( (*(_BYTE *)(*a2 + 7080) & 1) != 0 )\n      v18 = *(const char **)(*a2 + 7088);\n    else\n      v18 = (const char *)(*a2 + 7081);\n    v19 = atof(v18);\n    result = sub_4E6B6C();\n  }\n  else\n  {\n    v19 = 0.0;\n  }\n  *(float *)(a1 + 1660) = v19;\n  return result;\n}", "assembly": "; \n; DashRingObject::customObjectSetup from 0x4f0518 to 0x4f0642 (298 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:13 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4f0518\nMOV             R6, R2                                                 ; +0x2, 0x4f051a\nMOV             R4, R0                                                 ; +0x4, 0x4f051c\nMOV             R5, R1                                                 ; +0x6, 0x4f051e\nBL              _ZN10RingObject17customObjectSetupERNSt6__ndk16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEERNS1_IPvNS5_ISB_EEEE; RingObject::customObjectSetup(std::vector<std::string> &,std::vector<void *> &) ; +0x8, 0x4f0520\nLDR             R3, [R6]                                               ; +0xc, 0x4f0524\nLDR.W           R3, [R3,#0x928]; float                                 ; +0xe, 0x4f0526\nCBZ             R3, loc_4F0558                                         ; +0x12, 0x4f052a\nLDR             R3, [R5]                                               ; +0x14, 0x4f052c\nMOVW            R2, #0x1B78                                            ; +0x16, 0x4f052e\nADD.W           R0, R3, #0x1B60                                        ; +0x1a, 0x4f0532\nLDRB            R3, [R3,R2]                                            ; +0x1e, 0x4f0536\nADDS            R0, #0x18                                              ; +0x20, 0x4f0538\nLSLS            R2, R3, #0x1F                                          ; +0x22, 0x4f053a\nITE PL                                                                 ; +0x24, 0x4f053c\nADDPL           R0, #1                                                 ; +0x26, 0x4f053e\nLDRMI           R0, [R0,#8]; char *                                    ; +0x28, 0x4f0540\nBLX             atof                                                   ; +0x2a, 0x4f0542\nVMOV            D7, R0, R1                                             ; +0x2e, 0x4f0546\nVCVT.F32.F64    S0, D7                                                 ; +0x32, 0x4f054a\nBL              sub_4E6B6C                                             ; +0x36, 0x4f054e\nVMOV            R0, S0                                                 ; +0x3a, 0x4f0552\nB               loc_4F055A                                             ; +0x3e, 0x4f0556\nMOVS            R0, #0; this                                           ; +0x40, 0x4f0558\nLDR             R1, flt_4F0644; float                                  ; +0x42, 0x4f055a\nLDR             R2, flt_4F0648; float                                  ; +0x44, 0x4f055c\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x46, 0x4f055e\nADDW            R3, R4, #0x674                                         ; +0x4a, 0x4f0562\nSTR             R0, [R3]                                               ; +0x4e, 0x4f0566\nLDR             R3, [R6]                                               ; +0x50, 0x4f0568\nLDR.W           R3, [R3,#0x930]; float                                 ; +0x52, 0x4f056a\nCBZ             R3, loc_4F059C                                         ; +0x56, 0x4f056e\nLDR             R3, [R5]                                               ; +0x58, 0x4f0570\nMOVW            R2, #0x1B90                                            ; +0x5a, 0x4f0572\nADD.W           R0, R3, #0x1B80                                        ; +0x5e, 0x4f0576\nLDRB            R3, [R3,R2]                                            ; +0x62, 0x4f057a\nADDS            R0, #0x10                                              ; +0x64, 0x4f057c\nLSLS            R3, R3, #0x1F                                          ; +0x66, 0x4f057e\nITE PL                                                                 ; +0x68, 0x4f0580\nADDPL           R0, #1                                                 ; +0x6a, 0x4f0582\nLDRMI           R0, [R0,#8]; char *                                    ; +0x6c, 0x4f0584\nBLX             atof                                                   ; +0x6e, 0x4f0586\nVMOV            D7, R0, R1                                             ; +0x72, 0x4f058a\nVCVT.F32.F64    S0, D7                                                 ; +0x76, 0x4f058e\nBL              sub_4E6B6C                                             ; +0x7a, 0x4f0592\nVMOV            R0, S0                                                 ; +0x7e, 0x4f0596\nB               loc_4F059E                                             ; +0x82, 0x4f059a\nMOVS            R0, #0; this                                           ; +0x84, 0x4f059c\nLDR             R1, flt_4F0644; float                                  ; +0x86, 0x4f059e\nLDR             R2, flt_4F0648; float                                  ; +0x88, 0x4f05a0\nBL              _ZN7cocos2d6clampfEfff; cocos2d::clampf(float,float,float) ; +0x8a, 0x4f05a2\nADD.W           R3, R4, #0x678                                         ; +0x8e, 0x4f05a6\nSTR             R0, [R3]                                               ; +0x92, 0x4f05aa\nLDR             R3, [R6]                                               ; +0x94, 0x4f05ac\nLDR.W           R0, [R3,#0x92C]                                        ; +0x96, 0x4f05ae\nCBZ             R0, loc_4F05D4                                         ; +0x9a, 0x4f05b2\nLDR             R3, [R5]                                               ; +0x9c, 0x4f05b4\nMOVW            R2, #0x1B84                                            ; +0x9e, 0x4f05b6\nADD.W           R0, R3, #0x1B80                                        ; +0xa2, 0x4f05ba\nLDRB            R3, [R3,R2]                                            ; +0xa6, 0x4f05be\nADDS            R0, #4                                                 ; +0xa8, 0x4f05c0\nLSLS            R1, R3, #0x1F                                          ; +0xaa, 0x4f05c2\nITE PL                                                                 ; +0xac, 0x4f05c4\nADDPL           R0, #1                                                 ; +0xae, 0x4f05c6\nLDRMI           R0, [R0,#8]; char *                                    ; +0xb0, 0x4f05c8\nBLX             atoi                                                   ; +0xb2, 0x4f05ca\nADDS            R0, #0                                                 ; +0xb6, 0x4f05ce\nIT NE                                                                  ; +0xb8, 0x4f05d0\nMOVNE           R0, #1                                                 ; +0xba, 0x4f05d2\nSTRB.W          R0, [R4,#0x680]                                        ; +0xbc, 0x4f05d4\nLDR             R3, [R6]                                               ; +0xc0, 0x4f05d8\nLDR.W           R0, [R3,#0x934]                                        ; +0xc2, 0x4f05da\nCBZ             R0, loc_4F0600                                         ; +0xc6, 0x4f05de\nLDR             R3, [R5]                                               ; +0xc8, 0x4f05e0\nMOVW            R2, #0x1B9C                                            ; +0xca, 0x4f05e2\nADD.W           R0, R3, #0x1B80                                        ; +0xce, 0x4f05e6\nLDRB            R3, [R3,R2]                                            ; +0xd2, 0x4f05ea\nADDS            R0, #0x1C                                              ; +0xd4, 0x4f05ec\nLSLS            R2, R3, #0x1F                                          ; +0xd6, 0x4f05ee\nITE PL                                                                 ; +0xd8, 0x4f05f0\nADDPL           R0, #1                                                 ; +0xda, 0x4f05f2\nLDRMI           R0, [R0,#8]; char *                                    ; +0xdc, 0x4f05f4\nBLX             atoi                                                   ; +0xde, 0x4f05f6\nADDS            R0, #0                                                 ; +0xe2, 0x4f05fa\nIT NE                                                                  ; +0xe4, 0x4f05fc\nMOVNE           R0, #1                                                 ; +0xe6, 0x4f05fe\nSTRB.W          R0, [R4,#0x681]                                        ; +0xe8, 0x4f0600\nLDR             R3, [R6]                                               ; +0xec, 0x4f0604\nLDR.W           R3, [R3,#0x938]                                        ; +0xee, 0x4f0606\nCBZ             R3, loc_4F0634                                         ; +0xf2, 0x4f060a\nLDR             R3, [R5]                                               ; +0xf4, 0x4f060c\nMOVW            R2, #0x1BA8                                            ; +0xf6, 0x4f060e\nADD.W           R0, R3, #0x1BA0                                        ; +0xfa, 0x4f0612\nLDRB            R3, [R3,R2]                                            ; +0xfe, 0x4f0616\nADDS            R0, #8                                                 ; +0x100, 0x4f0618\nLSLS            R3, R3, #0x1F                                          ; +0x102, 0x4f061a\nITE PL                                                                 ; +0x104, 0x4f061c\nADDPL           R0, #1                                                 ; +0x106, 0x4f061e\nLDRMI           R0, [R0,#8]; char *                                    ; +0x108, 0x4f0620\nBLX             atof                                                   ; +0x10a, 0x4f0622\nVMOV            D7, R0, R1                                             ; +0x10e, 0x4f0626\nVCVT.F32.F64    S0, D7                                                 ; +0x112, 0x4f062a\nBL              sub_4E6B6C                                             ; +0x116, 0x4f062e\nB               loc_4F0638                                             ; +0x11a, 0x4f0632\nVLDR            S0, =0.0                                               ; +0x11c, 0x4f0634\nADDW            R4, R4, #0x67C                                         ; +0x120, 0x4f0638\nVSTR            S0, [R4]                                               ; +0x124, 0x4f063c\nPOP             {R4-R6,PC}                                             ; +0x128, 0x4f0640", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}