{"type": "func", "start": 4298683036, "end": 4298683192, "name": "KeyframeGameObject::setOpacity", "pseudocode": "// \n// KeyframeGameObject::setOpacity from 0x10038b29c to 0x10038b338 (156 bytes)\n// \n// 2 xrefs:\n// > sub_10038B338 @ 0x10038b33c\n// > <???> @ 0x1007f6c98\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 KeyframeGameObject::setOpacity(KeyframeGameObject *a1, unsigned __int8 a2)\n{\n  unsigned int v3; // w9\n  __int64 v4; // x19\n  cocos2d::CCLabelBMFont *m_objectLabel; // x0\n  cocos2d::CCArray *m_shadowObjects; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x20\n  unsigned __int64 v10; // x21\n\n  v3 = (int)vcvts_n_f32_u32(a2, 1u);\n  if ( a1->m_referenceOnly )\n    v4 = v3;\n  else\n    v4 = a2;\n  GameObject::setOpacity(a1, v4);\n  m_objectLabel = a1->m_objectLabel;\n  if ( m_objectLabel )\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_objectLabel->setOpacity)(m_objectLabel, a1->_realOpacity);\n  m_shadowObjects = a1->m_shadowObjects;\n  if ( m_shadowObjects )\n  {\n    data = m_shadowObjects->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v10 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        if ( !*arr )\n          break;\n        ((void (__fastcall *)(cocos2d::CCObject *, __int64))(*arr)->__vftable[11].~CCObject_0)(*arr, v4);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v10 );\n    }\n  }\n}", "assembly": "; \n; KeyframeGameObject::setOpacity from 0x10038b29c to 0x10038b338 (156 bytes)\n; \n; 2 xrefs:\n; > sub_10038B338 @ 0x10038b33c\n; > <???> @ 0x1007f6c98\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, 0x10038b29c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10038b2a0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10038b2a4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10038b2a8\nMOV             X20, X0                                                ; +0x10, 0x10038b2ac\nLDRB            W8, [X0,#0x748]                                        ; +0x14, 0x10038b2b0\nUCVTF           S0, W1, #1                                             ; +0x18, 0x10038b2b4\nFCVTZS          W9, S0                                                 ; +0x1c, 0x10038b2b8\nCMP             W8, #0                                                 ; +0x20, 0x10038b2bc\nCSEL            W19, W9, W1, NE                                        ; +0x24, 0x10038b2c0\nMOV             X1, X19                                                ; +0x28, 0x10038b2c4\nBL              GameObject__setOpacity                                 ; +0x2c, 0x10038b2c8\nLDR             X0, [X20,#0x720]                                       ; +0x30, 0x10038b2cc\nCBZ             X0, loc_10038B2E4                                      ; +0x34, 0x10038b2d0\nLDRB            W1, [X20,#0x149]                                       ; +0x38, 0x10038b2d4\nLDR             X8, [X0]                                               ; +0x3c, 0x10038b2d8\nLDR             X8, [X8,#0x3F0]                                        ; +0x40, 0x10038b2dc\nBLR             X8                                                     ; +0x44, 0x10038b2e0\nLDR             X8, [X20,#0x730]                                       ; +0x48, 0x10038b2e4\nCBZ             X8, loc_10038B328                                      ; +0x4c, 0x10038b2e8\nLDR             X9, [X8,#0x38]                                         ; +0x50, 0x10038b2ec\nLDR             W8, [X9]                                               ; +0x54, 0x10038b2f0\nCBZ             W8, loc_10038B328                                      ; +0x58, 0x10038b2f4\nLDR             X20, [X9,#0x10]                                        ; +0x5c, 0x10038b2f8\nADD             X8, X20, X8,LSL#3                                      ; +0x60, 0x10038b2fc\nSUB             X21, X8, #8                                            ; +0x64, 0x10038b300\nLDR             X0, [X20]                                              ; +0x68, 0x10038b304\nCBZ             X0, loc_10038B328                                      ; +0x6c, 0x10038b308\nLDR             X8, [X0]                                               ; +0x70, 0x10038b30c\nLDR             X8, [X8,#0x380]                                        ; +0x74, 0x10038b310\nMOV             X1, X19                                                ; +0x78, 0x10038b314\nBLR             X8                                                     ; +0x7c, 0x10038b318\nADD             X20, X20, #8                                           ; +0x80, 0x10038b31c\nCMP             X20, X21                                               ; +0x84, 0x10038b320\nB.LS            loc_10038B304                                          ; +0x88, 0x10038b324\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8c, 0x10038b328\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x90, 0x10038b32c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x94, 0x10038b330\nRET                                                                    ; +0x98, 0x10038b334", "xrefs": ["sub_10038B338 @ 0x10038b33c", "<???> @ 0x1007f6c98"], "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"}