{"type": "func", "start": 4300239192, "end": 4300239496, "name": "MemberListPopup::refreshPolicyBtn", "pseudocode": "// \n// MemberListPopup::refreshPolicyBtn from 0x100507158 to 0x100507288 (304 bytes)\n// \n// 3 xrefs:\n// > MemberListPopup::init @ 0x100507010\n// > MemberListPopup::threadUpdateFinished @ 0x100508a10\n// > MemberListPopup::threadUpdateFinished @ 0x100508ac0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:57 +0000\n// \n\n__int64 __fastcall MemberListPopup::refreshPolicyBtn(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w20\n  __int64 result; // x0\n  const char *v5; // x0\n  void *v6; // x0\n  void *v7; // x0\n  __int64 v8; // x20\n  float v9; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 832);\n  if ( v2 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 520LL))(v2);\n    *(_QWORD *)(a1 + 832) = 0;\n  }\n  v3 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 200LL);\n  result = GJAccountManager::sharedState();\n  if ( v3 == *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) )\n  {\n    if ( *(_DWORD *)(*(_QWORD *)(a1 + 800) + 208LL) == 1 )\n      v5 = \"Adds: Owner Only\";\n    else\n      v5 = \"Adds: Anyone\";\n    v6 = ButtonSprite::create_1((__int64)v5, 90, 0, 1, (__int64)\"bigFont.fnt\", (__int64)\"GJ_button_04.png\", 0.4, 26.0);\n    v7 = CCMenuItemSpriteExtra::create((__int64)v6, 0, a1, (__int64)sub_100507BEC, 0);\n    *(_QWORD *)(a1 + 832) = v7;\n    CCMenuItemSpriteExtra::setSizeMult((__int64)v7, 1.1);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))(\n      *(_QWORD *)(a1 + 552),\n      *(_QWORD *)(a1 + 832));\n    v8 = *(_QWORD *)(a1 + 832);\n    sub_1000262BC(\n      &v9,\n      *(float *)(a1 + 660) + 83.0,\n      (float)(*(float *)(a1 + 664) + (float)(*(float *)(a1 + 672) * -0.5)) + 24.0);\n    return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v9);\n  }\n  return result;\n}", "assembly": "; \n; MemberListPopup::refreshPolicyBtn from 0x100507158 to 0x100507288 (304 bytes)\n; \n; 3 xrefs:\n; > MemberListPopup::init @ 0x100507010\n; > MemberListPopup::threadUpdateFinished @ 0x100508a10\n; > MemberListPopup::threadUpdateFinished @ 0x100508ac0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:57 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100507158\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10050715c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100507160\nADD             X29, SP, #0x20                                         ; +0xc, 0x100507164\nMOV             X19, X0                                                ; +0x10, 0x100507168\nLDR             X0, [X0,#0x340]                                        ; +0x14, 0x10050716c\nCBZ             X0, loc_100507184                                      ; +0x18, 0x100507170\nLDR             X8, [X0]                                               ; +0x1c, 0x100507174\nLDR             X8, [X8,#0x208]                                        ; +0x20, 0x100507178\nBLR             X8                                                     ; +0x24, 0x10050717c\nSTR             XZR, [X19,#0x340]                                      ; +0x28, 0x100507180\nLDR             X8, [X19,#0x320]                                       ; +0x2c, 0x100507184\nLDR             W20, [X8,#0xC8]                                        ; +0x30, 0x100507188\nBL              GJAccountManager__sharedState                          ; +0x34, 0x10050718c\nLDR             W8, [X0,#0x160]                                        ; +0x38, 0x100507190\nLDR             W9, [X0,#0x164]                                        ; +0x3c, 0x100507194\nSUB             W8, W8, W9                                             ; +0x40, 0x100507198\nCMP             W20, W8                                                ; +0x44, 0x10050719c\nB.NE            loc_100507278                                          ; +0x48, 0x1005071a0\nLDR             X8, [X19,#0x320]                                       ; +0x4c, 0x1005071a4\nLDR             W8, [X8,#0xD0]                                         ; +0x50, 0x1005071a8\nADRL            X9, aAddsAnyone; \"Adds: Anyone\"                        ; +0x54, 0x1005071ac\nADRL            X10, aAddsOwnerOnly; \"Adds: Owner Only\"                ; +0x5c, 0x1005071b4\nCMP             W8, #1                                                 ; +0x64, 0x1005071bc\nCSEL            X0, X10, X9, EQ                                        ; +0x68, 0x1005071c0\nADRL            X4, aBigfontFnt; \"bigFont.fnt\"                         ; +0x6c, 0x1005071c4\nADRL            X5, aGjButton04Png; \"GJ_button_04.png\"                 ; +0x74, 0x1005071cc\nADRP            X8, #dword_10075BD1C@PAGE                              ; +0x7c, 0x1005071d4\nLDR             S0, [X8,#dword_10075BD1C@PAGEOFF]                      ; +0x80, 0x1005071d8\nFMOV            S1, #26.0                                              ; +0x84, 0x1005071dc\nMOV             W1, #0x5A ; 'Z'                                        ; +0x88, 0x1005071e0\nMOV             W2, #0                                                 ; +0x8c, 0x1005071e4\nMOV             W3, #1                                                 ; +0x90, 0x1005071e8\nBL              ButtonSprite__create_1                                 ; +0x94, 0x1005071ec\nADRL            X3, sub_100507BEC                                      ; +0x98, 0x1005071f0\nMOV             X1, #0                                                 ; +0xa0, 0x1005071f8\nMOV             X2, X19                                                ; +0xa4, 0x1005071fc\nMOV             X4, #0                                                 ; +0xa8, 0x100507200\nBL              CCMenuItemSpriteExtra__create                          ; +0xac, 0x100507204\nSTR             X0, [X19,#0x340]                                       ; +0xb0, 0x100507208\nADRP            X8, #dword_10075C60C@PAGE                              ; +0xb4, 0x10050720c\nLDR             S0, [X8,#dword_10075C60C@PAGEOFF]                      ; +0xb8, 0x100507210\nBL              CCMenuItemSpriteExtra__setSizeMult                     ; +0xbc, 0x100507214\nLDR             X0, [X19,#0x228]                                       ; +0xc0, 0x100507218\nLDR             X1, [X19,#0x340]                                       ; +0xc4, 0x10050721c\nLDR             X8, [X0]                                               ; +0xc8, 0x100507220\nLDR             X8, [X8,#0x1C8]                                        ; +0xcc, 0x100507224\nBLR             X8                                                     ; +0xd0, 0x100507228\nLDR             X20, [X19,#0x340]                                      ; +0xd4, 0x10050722c\nLDR             S0, [X19,#0x294]                                       ; +0xd8, 0x100507230\nMOV             W8, #0x42A60000                                        ; +0xdc, 0x100507234\nFMOV            S1, W8                                                 ; +0xe0, 0x100507238\nFADD            S0, S0, S1                                             ; +0xe4, 0x10050723c\nLDR             S1, [X19,#0x298]                                       ; +0xe8, 0x100507240\nLDR             S2, [X19,#0x2A0]                                       ; +0xec, 0x100507244\nFMOV            S3, #-0.5                                              ; +0xf0, 0x100507248\nFMUL            S2, S2, S3                                             ; +0xf4, 0x10050724c\nFADD            S1, S1, S2                                             ; +0xf8, 0x100507250\nFMOV            S2, #24.0                                              ; +0xfc, 0x100507254\nFADD            S1, S1, S2                                             ; +0x100, 0x100507258\nADD             X0, SP, #0x20+var_18                                   ; +0x104, 0x10050725c\nBL              sub_1000262BC                                          ; +0x108, 0x100507260\nLDR             X8, [X20]                                              ; +0x10c, 0x100507264\nLDR             X8, [X8,#0xB8]                                         ; +0x110, 0x100507268\nADD             X1, SP, #0x20+var_18                                   ; +0x114, 0x10050726c\nMOV             X0, X20                                                ; +0x118, 0x100507270\nBLR             X8                                                     ; +0x11c, 0x100507274\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x120, 0x100507278\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x124, 0x10050727c\nADD             SP, SP, #0x30 ; '0'                                    ; +0x128, 0x100507280\nRET                                                                    ; +0x12c, 0x100507284", "xrefs": ["MemberListPopup::init @ 0x100507010", "MemberListPopup::threadUpdateFinished @ 0x100508a10", "MemberListPopup::threadUpdateFinished @ 0x100508ac0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}