{"type": "func", "start": 5144076, "end": 5144384, "name": "AnimatedGameObject::setupAnimatedSize", "pseudocode": "// \n// AnimatedGameObject::setupAnimatedSize from 0x4e7e0c to 0x4e7f40 (308 bytes)\n// \n// 1 xrefs:\n// > AnimatedGameObject::init @ 0x4ec0e2\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:06 +0000\n// \n\nint __fastcall AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *this, int a2)\n{\n  float v3; // s15\n  float v4; // s14\n  float v5; // r1\n  float v6; // r2\n  int v7; // r3\n  int (__fastcall *v8)(AnimatedGameObject *, _BYTE *); // r7\n  _BYTE v10[8]; // [sp+4h] [bp-10h] BYREF\n\n  if ( a2 == 1327 )\n  {\n    v5 = 35.0;\n    *((_BYTE *)this + 1049) = 1;\n    v6 = 30.0;\n    goto LABEL_13;\n  }\n  if ( a2 >= 1328 )\n  {\n    if ( a2 != 1584 )\n    {\n      if ( a2 != 2012 )\n      {\n        if ( a2 == 1328 )\n        {\n          *((_BYTE *)this + 1049) = 1;\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 35.0, 40.0);\n          cocos2d::CCSize::operator=((char *)this + 1052, v10);\n          v3 = 15.0;\n          v4 = 8.0;\n          goto LABEL_18;\n        }\n        goto LABEL_16;\n      }\n      *((_BYTE *)this + 1049) = 1;\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 45.0, 45.0);\n      cocos2d::CCSize::operator=((char *)this + 1052, v10);\n      *((_DWORD *)this + 191) = 1097859072;\n      goto LABEL_15;\n    }\n    v5 = 60.0;\n    v6 = 80.0;\n    *((_BYTE *)this + 1049) = 1;\nLABEL_13:\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v5, v6);\n    cocos2d::CCSize::operator=((char *)this + 1052, v10);\nLABEL_15:\n    v3 = 8.0;\n    goto LABEL_17;\n  }\n  if ( a2 == 918 )\n  {\n    *((_DWORD *)this + 191) = 1103101952;\n    *((_BYTE *)this + 1049) = 1;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, 80.0);\n    cocos2d::CCSize::operator=((char *)this + 1052, v10);\n    v3 = 48.0;\nLABEL_17:\n    v4 = v3;\n    goto LABEL_18;\n  }\n  if ( a2 != 919 )\n  {\nLABEL_16:\n    v3 = 10.0;\n    goto LABEL_17;\n  }\n  v3 = 6.0;\n  v4 = 25.0;\nLABEL_18:\n  v7 = *(_DWORD *)this;\n  *((float *)this + 162) = v4 * *((float *)this + 252);\n  *((float *)this + 163) = v3 * *((float *)this + 253);\n  v8 = *(int (__fastcall **)(AnimatedGameObject *, _BYTE *))(v7 + 160);\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, v4, v3);\n  return v8(this, v10);\n}", "assembly": "; \n; AnimatedGameObject::setupAnimatedSize from 0x4e7e0c to 0x4e7f40 (308 bytes)\n; \n; 1 xrefs:\n; > AnimatedGameObject::init @ 0x4ec0e2\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:06 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E7E14)                ; +0x0, 0x4e7e0c\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4e7e0e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4e7e10\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4e7e12\nSUB             SP, SP, #0x14                                          ; +0x8, 0x4e7e14\nMOV             R4, R0                                                 ; +0xa, 0x4e7e16\nLDR             R2, [R3]                                               ; +0xc, 0x4e7e18\nMOV             R6, R3                                                 ; +0xe, 0x4e7e1a\nADD             R5, SP, #0x14+var_10                                   ; +0x10, 0x4e7e1c\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x4e7e1e\nMOVW            R2, #0x52F                                             ; +0x14, 0x4e7e20\nCMP             R1, R2                                                 ; +0x18, 0x4e7e24\nBEQ             loc_4E7EA6                                             ; +0x1a, 0x4e7e26\nCMP.W           R1, #0x530                                             ; +0x1c, 0x4e7e28\nBGE             loc_4E7E48                                             ; +0x20, 0x4e7e2c\nMOVW            R3, #0x396                                             ; +0x22, 0x4e7e2e\nCMP             R1, R3                                                 ; +0x26, 0x4e7e32\nBEQ             loc_4E7E80                                             ; +0x28, 0x4e7e34\nMOVW            R3, #0x397                                             ; +0x2a, 0x4e7e36\nCMP             R1, R3                                                 ; +0x2e, 0x4e7e3a\nBNE             loc_4E7EF6                                             ; +0x30, 0x4e7e3c\nVMOV.F32        S15, #6.0                                              ; +0x32, 0x4e7e3e\nVMOV.F32        S14, #25.0                                             ; +0x36, 0x4e7e42\nB               loc_4E7EFE                                             ; +0x3a, 0x4e7e46\nCMP.W           R1, #0x630                                             ; +0x3c, 0x4e7e48\nBEQ             loc_4E7EB4                                             ; +0x40, 0x4e7e4c\nMOVW            R3, #0x7DC                                             ; +0x42, 0x4e7e4e\nCMP             R1, R3                                                 ; +0x46, 0x4e7e52\nBEQ             loc_4E7ED0                                             ; +0x48, 0x4e7e54\nCMP.W           R1, #0x530                                             ; +0x4a, 0x4e7e56\nBNE             loc_4E7EF6                                             ; +0x4e, 0x4e7e5a\nMOVS            R3, #1                                                 ; +0x50, 0x4e7e5c\nLDR             R1, flt_4E7F40; float                                  ; +0x52, 0x4e7e5e\nSTRB.W          R3, [R0,#0x419]                                        ; +0x54, 0x4e7e60\nMOV             R0, R5; this                                           ; +0x58, 0x4e7e64\nLDR             R2, flt_4E7F44; float                                  ; +0x5a, 0x4e7e66\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5c, 0x4e7e68\nADDW            R0, R4, #0x41C                                         ; +0x60, 0x4e7e6c\nMOV             R1, R5                                                 ; +0x64, 0x4e7e70\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0x66, 0x4e7e72\nVMOV.F32        S15, #15.0                                             ; +0x6a, 0x4e7e76\nVMOV.F32        S14, #8.0                                              ; +0x6e, 0x4e7e7a\nB               loc_4E7EFE                                             ; +0x72, 0x4e7e7e\nLDR             R1, flt_4E7F48; float                                  ; +0x74, 0x4e7e80\nLDR             R3, =0x41C00000                                        ; +0x76, 0x4e7e82\nMOV             R2, R1; float                                          ; +0x78, 0x4e7e84\nSTR.W           R3, [R0,#0x2FC]                                        ; +0x7a, 0x4e7e86\nMOVS            R3, #1                                                 ; +0x7e, 0x4e7e8a\nSTRB.W          R3, [R0,#0x419]                                        ; +0x80, 0x4e7e8c\nMOV             R0, R5; this                                           ; +0x84, 0x4e7e90\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x86, 0x4e7e92\nADDW            R0, R4, #0x41C                                         ; +0x8a, 0x4e7e96\nMOV             R1, R5                                                 ; +0x8e, 0x4e7e9a\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0x90, 0x4e7e9c\nVLDR            S15, =48.0                                             ; +0x94, 0x4e7ea0\nB               loc_4E7EFA                                             ; +0x98, 0x4e7ea4\nMOVS            R3, #1                                                 ; +0x9a, 0x4e7ea6\nLDR             R1, flt_4E7F40                                         ; +0x9c, 0x4e7ea8\nSTRB.W          R3, [R0,#0x419]                                        ; +0x9e, 0x4e7eaa\nMOV             R0, R5                                                 ; +0xa2, 0x4e7eae\nLDR             R2, =0x41F00000                                        ; +0xa4, 0x4e7eb0\nB               loc_4E7EC0                                             ; +0xa6, 0x4e7eb2\nLDR             R1, flt_4E7F58; float                                  ; +0xa8, 0x4e7eb4\nMOVS            R3, #1                                                 ; +0xaa, 0x4e7eb6\nLDR             R2, flt_4E7F48; float                                  ; +0xac, 0x4e7eb8\nSTRB.W          R3, [R0,#0x419]                                        ; +0xae, 0x4e7eba\nMOV             R0, R5; this                                           ; +0xb2, 0x4e7ebe\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x4e7ec0\nADDW            R0, R4, #0x41C                                         ; +0xb8, 0x4e7ec4\nMOV             R1, R5                                                 ; +0xbc, 0x4e7ec8\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0xbe, 0x4e7eca\nB               loc_4E7EF0                                             ; +0xc2, 0x4e7ece\nLDR             R1, flt_4E7F5C; float                                  ; +0xc4, 0x4e7ed0\nMOVS            R3, #1                                                 ; +0xc6, 0x4e7ed2\nSTRB.W          R3, [R0,#0x419]                                        ; +0xc8, 0x4e7ed4\nMOV             R0, R5; this                                           ; +0xcc, 0x4e7ed8\nMOV             R2, R1; float                                          ; +0xce, 0x4e7eda\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd0, 0x4e7edc\nADDW            R0, R4, #0x41C                                         ; +0xd4, 0x4e7ee0\nMOV             R1, R5                                                 ; +0xd8, 0x4e7ee4\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0xda, 0x4e7ee6\nLDR             R3, =0x41700000                                        ; +0xde, 0x4e7eea\nSTR.W           R3, [R4,#0x2FC]                                        ; +0xe0, 0x4e7eec\nVMOV.F32        S15, #8.0                                              ; +0xe4, 0x4e7ef0\nB               loc_4E7EFA                                             ; +0xe8, 0x4e7ef4\nVMOV.F32        S15, #10.0                                             ; +0xea, 0x4e7ef6\nVMOV.F32        S14, S15                                               ; +0xee, 0x4e7efa\nVLDR            S13, [R4,#0x3F0]                                       ; +0xf2, 0x4e7efe\nMOV             R0, R5; this                                           ; +0xf6, 0x4e7f02\nLDR             R3, [R4]                                               ; +0xf8, 0x4e7f04\nVMOV            R1, S14; float                                         ; +0xfa, 0x4e7f06\nVMUL.F32        S13, S14, S13                                          ; +0xfe, 0x4e7f0a\nVMOV            R2, S15; float                                         ; +0x102, 0x4e7f0e\nVSTR            S13, [R4,#0x288]                                       ; +0x106, 0x4e7f12\nVLDR            S13, [R4,#0x3F4]                                       ; +0x10a, 0x4e7f16\nVMUL.F32        S13, S15, S13                                          ; +0x10e, 0x4e7f1a\nVSTR            S13, [R4,#0x28C]                                       ; +0x112, 0x4e7f1e\nLDR.W           R7, [R3,#0xA0]                                         ; +0x116, 0x4e7f22\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x11a, 0x4e7f26\nMOV             R0, R4                                                 ; +0x11e, 0x4e7f2a\nMOV             R1, R5                                                 ; +0x120, 0x4e7f2c\nBLX             R7                                                     ; +0x122, 0x4e7f2e\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x124, 0x4e7f30\nLDR             R3, [R6]                                               ; +0x126, 0x4e7f32\nCMP             R2, R3                                                 ; +0x128, 0x4e7f34\nBEQ             loc_4E7F3C                                             ; +0x12a, 0x4e7f36\nBLX             __stack_chk_fail                                       ; +0x12c, 0x4e7f38\nADD             SP, SP, #0x14                                          ; +0x130, 0x4e7f3c\nPOP             {R4-R7,PC}                                             ; +0x132, 0x4e7f3e", "xrefs": ["AnimatedGameObject::init @ 0x4ec0e2"], "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"}