{"type": "func", "start": 5373638640, "end": 5373638765, "name": "LabelGameObject::updateLabelAlign", "pseudocode": "// \n// LabelGameObject::updateLabelAlign from 0x1404b37f0 to 0x1404b386d (125 bytes)\n// \n// 6 xrefs:\n// > SetItemIDLayer::valueDidChange @ 0x140401ae0\n// > LabelGameObject::createLabel @ 0x1404b3694\n// > LabelGameObject::customObjectSetup @ 0x1404b3bfd\n// > <???> @ 0x1406a8584\n// > <???> @ 0x1406a8594\n// > <???> @ 0x1406dcac4\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 LabelGameObject::updateLabelAlign(LabelGameObject *a1, int a2)\n{\n  float v2; // xmm0_4\n  cocos2d::CCLabelBMFont *m_label; // rax\n  cocos2d::CCLabelBMFont_vtbl *v5; // rbx\n  float v6; // xmm1_4\n  const cocos2d::CCPoint *v7; // rax\n\n  m_label = a1->m_label;\n  a1->m_alignment = a2;\n  if ( m_label )\n  {\n    v5 = m_label->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( a2 == 1 )\n    {\n      v6 = 0.0;\n    }\n    else if ( a2 == 2 )\n    {\n      v6 = 1.0;\n    }\n    else\n    {\n      v6 = 0.5;\n    }\n    cocos2d::CCPoint::CCPoint(v2, v6);\n    v5->setAnchorPoint(a1->m_label, v7);\n  }\n}", "assembly": "; \n; LabelGameObject::updateLabelAlign from 0x1404b37f0 to 0x1404b386d (125 bytes)\n; \n; 6 xrefs:\n; > SetItemIDLayer::valueDidChange @ 0x140401ae0\n; > LabelGameObject::createLabel @ 0x1404b3694\n; > LabelGameObject::customObjectSetup @ 0x1404b3bfd\n; > <???> @ 0x1406a8584\n; > <???> @ 0x1406a8594\n; > <???> @ 0x1406dcac4\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\npush    rdi                                                            ; +0x0, 0x1404b37f0\nsub     rsp, 20h                                                       ; +0x2, 0x1404b37f2\nmov     rax, [rcx+740h]                                                ; +0x6, 0x1404b37f6\nmov     rdi, rcx                                                       ; +0xd, 0x1404b37fd\nmov     [rcx+774h], edx                                                ; +0x10, 0x1404b3800\ntest    rax, rax                                                       ; +0x16, 0x1404b3806\njz      short loc_1404B3867                                            ; +0x19, 0x1404b3809\nmov     [rsp+28h+arg_8], rbx                                           ; +0x1b, 0x1404b380b\nmov     rbx, [rax]                                                     ; +0x20, 0x1404b3810\ncmp     edx, 1                                                         ; +0x23, 0x1404b3813\njnz     short loc_1404B3825                                            ; +0x26, 0x1404b3816\nmovss   xmm2, cs:dword_140622B08                                       ; +0x28, 0x1404b3818\nxorps   xmm1, xmm1                                                     ; +0x30, 0x1404b3820\njmp     short loc_1404B3847                                            ; +0x33, 0x1404b3823\ncmp     edx, 2                                                         ; +0x35, 0x1404b3825\njnz     short loc_1404B383C                                            ; +0x38, 0x1404b3828\nmovss   xmm2, cs:dword_140622B08                                       ; +0x3a, 0x1404b382a\nmovss   xmm1, cs:flt_140622C24                                         ; +0x42, 0x1404b3832\njmp     short loc_1404B3847                                            ; +0x4a, 0x1404b383a\nmovss   xmm1, cs:dword_140622B08                                       ; +0x4c, 0x1404b383c\nmovaps  xmm2, xmm1                                                     ; +0x54, 0x1404b3844\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x57, 0x1404b3847\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5c, 0x1404b384c\nmov     rcx, [rdi+740h]                                                ; +0x62, 0x1404b3852\nmov     rdx, rax                                                       ; +0x69, 0x1404b3859\ncall    qword ptr [rbx+110h]                                           ; +0x6c, 0x1404b385c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x72, 0x1404b3862\nadd     rsp, 20h                                                       ; +0x77, 0x1404b3867\npop     rdi                                                            ; +0x7b, 0x1404b386b\nretn                                                                   ; +0x7c, 0x1404b386c", "xrefs": ["SetItemIDLayer::valueDidChange @ 0x140401ae0", "LabelGameObject::createLabel @ 0x1404b3694", "LabelGameObject::customObjectSetup @ 0x1404b3bfd", "<???> @ 0x1406a8584", "<???> @ 0x1406a8594", "<???> @ 0x1406dcac4"], "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"}