{"type": "func", "start": 4298673228, "end": 4298673340, "name": "LabelGameObject::updateLabelAlign", "pseudocode": "// \n// LabelGameObject::updateLabelAlign from 0x100388c4c to 0x100388cbc (112 bytes)\n// \n// 3 xrefs:\n// > LabelGameObject::createLabel @ 0x100388b90\n// > LabelGameObject::customObjectSetup @ 0x1003892c0\n// > SetItemIDLayer::valueDidChange @ 0x10041a418\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 LabelGameObject::updateLabelAlign(LabelGameObject *a1, int a2)\n{\n  __n128 v2; // q0\n  __n128 v3; // q1\n  cocos2d::CCLabelBMFont *m_label; // x19\n  int v5; // [xsp+8h] [xbp-18h] BYREF\n\n  a1->m_alignment = a2;\n  m_label = a1->m_label;\n  if ( m_label )\n  {\n    if ( a2 == 2 )\n    {\n      v2.n128_u32[0] = 1.0;\n    }\n    else if ( a2 == 1 )\n    {\n      v2.n128_u32[0] = 0;\n    }\n    else\n    {\n      v2.n128_u32[0] = 0.5;\n    }\n    v3.n128_u32[0] = 0.5;\n    sub_100022980(v2, v3, &v5);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int *))m_label->setAnchorPoint)(m_label, &v5);\n  }\n}", "assembly": "; \n; LabelGameObject::updateLabelAlign from 0x100388c4c to 0x100388cbc (112 bytes)\n; \n; 3 xrefs:\n; > LabelGameObject::createLabel @ 0x100388b90\n; > LabelGameObject::customObjectSetup @ 0x1003892c0\n; > SetItemIDLayer::valueDidChange @ 0x10041a418\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100388c4c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100388c50\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100388c54\nADD             X29, SP, #0x20                                         ; +0xc, 0x100388c58\nSTR             W1, [X0,#0x75C]                                        ; +0x10, 0x100388c5c\nLDR             X19, [X0,#0x730]                                       ; +0x14, 0x100388c60\nCBZ             X19, loc_100388CAC                                     ; +0x18, 0x100388c64\nADD             X0, SP, #0x20+var_18                                   ; +0x1c, 0x100388c68\nCMP             W1, #2                                                 ; +0x20, 0x100388c6c\nB.EQ            loc_100388C84                                          ; +0x24, 0x100388c70\nCMP             W1, #1                                                 ; +0x28, 0x100388c74\nB.NE            loc_100388C8C                                          ; +0x2c, 0x100388c78\nFMOV            S0, WZR                                                ; +0x30, 0x100388c7c\nB               loc_100388C90                                          ; +0x34, 0x100388c80\nFMOV            S0, #1.0                                               ; +0x38, 0x100388c84\nB               loc_100388C90                                          ; +0x3c, 0x100388c88\nFMOV            S0, #0.5                                               ; +0x40, 0x100388c8c\nFMOV            S1, #0.5                                               ; +0x44, 0x100388c90\nBL              sub_100022980                                          ; +0x48, 0x100388c94\nLDR             X8, [X19]                                              ; +0x4c, 0x100388c98\nLDR             X8, [X8,#0x118]                                        ; +0x50, 0x100388c9c\nADD             X1, SP, #0x20+var_18                                   ; +0x54, 0x100388ca0\nMOV             X0, X19                                                ; +0x58, 0x100388ca4\nBLR             X8                                                     ; +0x5c, 0x100388ca8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x100388cac\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x100388cb0\nADD             SP, SP, #0x30 ; '0'                                    ; +0x68, 0x100388cb4\nRET                                                                    ; +0x6c, 0x100388cb8", "xrefs": ["LabelGameObject::createLabel @ 0x100388b90", "LabelGameObject::customObjectSetup @ 0x1003892c0", "SetItemIDLayer::valueDidChange @ 0x10041a418"], "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"}