{"type": "func", "start": 4096056, "end": 4096364, "name": "AnimatedGameObject::setupAnimatedSize", "pseudocode": "// \n// AnimatedGameObject::setupAnimatedSize from 0x3e8038 to 0x3e816c (308 bytes)\n// \n// 1 xrefs:\n// > AnimatedGameObject::init @ 0x3e826a\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 AnimatedGameObject::setupAnimatedSize(AnimatedGameObject *a1, int a2)\n{\n  float v3; // s15\n  float v4; // s14\n  float v5; // r1\n  float v6; // r2\n  void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r7\n  cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF\n\n  if ( a2 == 1327 )\n  {\n    v5 = 35.0;\n    a1->m_hasContentSize = 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          a1->m_hasContentSize = 1;\n          cocos2d::CCPoint::CCPoint(&v8, 35.0, 40.0);\n          cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);\n          v3 = 15.0;\n          v4 = 8.0;\n          goto LABEL_18;\n        }\n        goto LABEL_16;\n      }\n      a1->m_hasContentSize = 1;\n      cocos2d::CCPoint::CCPoint(&v8, 45.0, 45.0);\n      cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);\n      a1->m_objectRadius = 15.0;\n      goto LABEL_15;\n    }\n    v5 = 60.0;\n    v6 = 80.0;\n    a1->m_hasContentSize = 1;\nLABEL_13:\n    cocos2d::CCPoint::CCPoint(&v8, v5, v6);\n    cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);\nLABEL_15:\n    v3 = 8.0;\n    goto LABEL_17;\n  }\n  if ( a2 == 918 )\n  {\n    a1->m_objectRadius = 24.0;\n    a1->m_hasContentSize = 1;\n    cocos2d::CCPoint::CCPoint(&v8, 80.0, 80.0);\n    cocos2d::CCSize::operator=(&a1->m_lastSize, &v8);\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  setContentSize = a1->setContentSize;\n  a1->m_width = v4 * a1->m_scaleX;\n  a1->m_height = v3 * a1->m_scaleY;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8, v4, v3);\n  setContentSize(a1, (const cocos2d::CCSize *)&v8);\n}", "assembly": "; \n; AnimatedGameObject::setupAnimatedSize from 0x3e8038 to 0x3e816c (308 bytes)\n; \n; 1 xrefs:\n; > AnimatedGameObject::init @ 0x3e826a\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3E8040)                ; +0x0, 0x3e8038\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3e803a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3e803c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3e803e\nSUB             SP, SP, #0x14                                          ; +0x8, 0x3e8040\nMOV             R4, R0                                                 ; +0xa, 0x3e8042\nLDR             R2, [R3]                                               ; +0xc, 0x3e8044\nMOV             R6, R3                                                 ; +0xe, 0x3e8046\nADD             R5, SP, #0x14+var_10                                   ; +0x10, 0x3e8048\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x3e804a\nMOVW            R2, #0x52F                                             ; +0x14, 0x3e804c\nCMP             R1, R2                                                 ; +0x18, 0x3e8050\nBEQ             loc_3E80D2                                             ; +0x1a, 0x3e8052\nCMP.W           R1, #0x530                                             ; +0x1c, 0x3e8054\nBGE             loc_3E8074                                             ; +0x20, 0x3e8058\nMOVW            R3, #0x396                                             ; +0x22, 0x3e805a\nCMP             R1, R3                                                 ; +0x26, 0x3e805e\nBEQ             loc_3E80AC                                             ; +0x28, 0x3e8060\nMOVW            R3, #0x397                                             ; +0x2a, 0x3e8062\nCMP             R1, R3                                                 ; +0x2e, 0x3e8066\nBNE             loc_3E8122                                             ; +0x30, 0x3e8068\nVMOV.F32        S15, #6.0                                              ; +0x32, 0x3e806a\nVMOV.F32        S14, #25.0                                             ; +0x36, 0x3e806e\nB               loc_3E812A                                             ; +0x3a, 0x3e8072\nCMP.W           R1, #0x630                                             ; +0x3c, 0x3e8074\nBEQ             loc_3E80E0                                             ; +0x40, 0x3e8078\nMOVW            R3, #0x7DC                                             ; +0x42, 0x3e807a\nCMP             R1, R3                                                 ; +0x46, 0x3e807e\nBEQ             loc_3E80FC                                             ; +0x48, 0x3e8080\nCMP.W           R1, #0x530                                             ; +0x4a, 0x3e8082\nBNE             loc_3E8122                                             ; +0x4e, 0x3e8086\nMOVS            R3, #1                                                 ; +0x50, 0x3e8088\nLDR             R1, flt_3E816C; float                                  ; +0x52, 0x3e808a\nSTRB.W          R3, [R0,#0x411]                                        ; +0x54, 0x3e808c\nMOV             R0, R5; this                                           ; +0x58, 0x3e8090\nLDR             R2, flt_3E8170; float                                  ; +0x5a, 0x3e8092\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5c, 0x3e8094\nADDW            R0, R4, #0x414                                         ; +0x60, 0x3e8098\nMOV             R1, R5                                                 ; +0x64, 0x3e809c\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0x66, 0x3e809e\nVMOV.F32        S15, #15.0                                             ; +0x6a, 0x3e80a2\nVMOV.F32        S14, #8.0                                              ; +0x6e, 0x3e80a6\nB               loc_3E812A                                             ; +0x72, 0x3e80aa\nLDR             R1, flt_3E8174; float                                  ; +0x74, 0x3e80ac\nLDR             R3, =0x41C00000                                        ; +0x76, 0x3e80ae\nMOV             R2, R1; float                                          ; +0x78, 0x3e80b0\nSTR.W           R3, [R0,#0x2F4]                                        ; +0x7a, 0x3e80b2\nMOVS            R3, #1                                                 ; +0x7e, 0x3e80b6\nSTRB.W          R3, [R0,#0x411]                                        ; +0x80, 0x3e80b8\nMOV             R0, R5; this                                           ; +0x84, 0x3e80bc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x86, 0x3e80be\nADDW            R0, R4, #0x414                                         ; +0x8a, 0x3e80c2\nMOV             R1, R5                                                 ; +0x8e, 0x3e80c6\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0x90, 0x3e80c8\nVLDR            S15, =48.0                                             ; +0x94, 0x3e80cc\nB               loc_3E8126                                             ; +0x98, 0x3e80d0\nMOVS            R3, #1                                                 ; +0x9a, 0x3e80d2\nLDR             R1, flt_3E816C                                         ; +0x9c, 0x3e80d4\nSTRB.W          R3, [R0,#0x411]                                        ; +0x9e, 0x3e80d6\nMOV             R0, R5                                                 ; +0xa2, 0x3e80da\nLDR             R2, =0x41F00000                                        ; +0xa4, 0x3e80dc\nB               loc_3E80EC                                             ; +0xa6, 0x3e80de\nLDR             R1, flt_3E8184; float                                  ; +0xa8, 0x3e80e0\nMOVS            R3, #1                                                 ; +0xaa, 0x3e80e2\nLDR             R2, flt_3E8174; float                                  ; +0xac, 0x3e80e4\nSTRB.W          R3, [R0,#0x411]                                        ; +0xae, 0x3e80e6\nMOV             R0, R5; this                                           ; +0xb2, 0x3e80ea\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x3e80ec\nADDW            R0, R4, #0x414                                         ; +0xb8, 0x3e80f0\nMOV             R1, R5                                                 ; +0xbc, 0x3e80f4\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0xbe, 0x3e80f6\nB               loc_3E811C                                             ; +0xc2, 0x3e80fa\nLDR             R1, flt_3E8188; float                                  ; +0xc4, 0x3e80fc\nMOVS            R3, #1                                                 ; +0xc6, 0x3e80fe\nSTRB.W          R3, [R0,#0x411]                                        ; +0xc8, 0x3e8100\nMOV             R0, R5; this                                           ; +0xcc, 0x3e8104\nMOV             R2, R1; float                                          ; +0xce, 0x3e8106\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd0, 0x3e8108\nADDW            R0, R4, #0x414                                         ; +0xd4, 0x3e810c\nMOV             R1, R5                                                 ; +0xd8, 0x3e8110\nBL              _ZN7cocos2d6CCSizeaSERKNS_7CCPointE; cocos2d::CCSize::operator=(cocos2d::CCPoint const&) ; +0xda, 0x3e8112\nLDR             R3, =0x41700000                                        ; +0xde, 0x3e8116\nSTR.W           R3, [R4,#0x2F4]                                        ; +0xe0, 0x3e8118\nVMOV.F32        S15, #8.0                                              ; +0xe4, 0x3e811c\nB               loc_3E8126                                             ; +0xe8, 0x3e8120\nVMOV.F32        S15, #10.0                                             ; +0xea, 0x3e8122\nVMOV.F32        S14, S15                                               ; +0xee, 0x3e8126\nVLDR            S13, [R4,#0x3E8]                                       ; +0xf2, 0x3e812a\nMOV             R0, R5; this                                           ; +0xf6, 0x3e812e\nLDR             R3, [R4]                                               ; +0xf8, 0x3e8130\nVMOV            R1, S14; float                                         ; +0xfa, 0x3e8132\nVMUL.F32        S13, S14, S13                                          ; +0xfe, 0x3e8136\nLDR.W           R7, [R3,#0x98]                                         ; +0x102, 0x3e813a\nVMOV            R2, S15; float                                         ; +0x106, 0x3e813e\nVSTR            S13, [R4,#0x288]                                       ; +0x10a, 0x3e8142\nVLDR            S13, [R4,#0x3EC]                                       ; +0x10e, 0x3e8146\nVMUL.F32        S13, S15, S13                                          ; +0x112, 0x3e814a\nVSTR            S13, [R4,#0x28C]                                       ; +0x116, 0x3e814e\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x11a, 0x3e8152\nMOV             R0, R4                                                 ; +0x11e, 0x3e8156\nMOV             R1, R5                                                 ; +0x120, 0x3e8158\nBLX             R7                                                     ; +0x122, 0x3e815a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x124, 0x3e815c\nLDR             R3, [R6]                                               ; +0x126, 0x3e815e\nCMP             R2, R3                                                 ; +0x128, 0x3e8160\nBEQ             loc_3E8168                                             ; +0x12a, 0x3e8162\nBLX             __stack_chk_fail                                       ; +0x12c, 0x3e8164\nADD             SP, SP, #0x14                                          ; +0x130, 0x3e8168\nPOP             {R4-R7,PC}                                             ; +0x132, 0x3e816a", "xrefs": ["AnimatedGameObject::init @ 0x3e826a"], "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"}