{"type": "func", "start": 5372555488, "end": 5372555756, "name": "GJDifficultySprite::updateDifficultyFrame", "pseudocode": "// \n// GJDifficultySprite::updateDifficultyFrame from 0x1403ab0e0 to 0x1403ab1ec (268 bytes)\n// \n// 6 xrefs:\n// > sub_14041B3F0 @ 0x14041b5df\n// > LevelInfoLayer::updateLabelValues @ 0x140425895\n// > RateStarsLayer::selectRating @ 0x14055eedf\n// > GJRateLevelLayer::selectRating @ 0x140560267\n// > RateStarsModLayer::updateDSprite @ 0x140560331\n// > <???> @ 0x140923a2c\n// \n// This function is hookable on this platform (idp: pc, 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:31:20 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJDifficultySprite::updateDifficultyFrame(cocos2d::CCArray **a1, int a2, int a3)\n{\n  void **DifficultyFrame; // rax\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  const char *v7; // rsi\n  cocos2d::CCArray *v8; // rbx\n  cocos2d::CCSpriteFrameCache *v9; // rax\n  struct cocos2d::CCSpriteFrame *v10; // rax\n  float *v11; // rbx\n  __int64 v12; // rax\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v14; // rax\n  _BYTE v15[8]; // [rsp+20h] [rbp-48h] BYREF\n  void *Src[4]; // [rsp+28h] [rbp-40h] BYREF\n\n  DifficultyFrame = GJDifficultySprite::getDifficultyFrame(Src, a2, a3);\n  v7 = (const char *)DifficultyFrame;\n  if ( (unsigned __int64)DifficultyFrame[3] > 0xF )\n    v7 = (const char *)*DifficultyFrame;\n  v8 = *a1;\n  v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5);\n  v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v7);\n  (*((void (__fastcall **)(cocos2d::CCArray **, struct cocos2d::CCSpriteFrame *))v8 + 126))(a1, v10);\n  sub_14003D310((__int64)Src);\n  if ( a1[26] )\n  {\n    v11 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*a1 + 40))(a1);\n    v12 = (*((__int64 (__fastcall **)(cocos2d::CCArray **))*a1 + 40))(a1);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *v11 * 0.5, *(float *)(v12 + 4) * 0.5);\n    for ( i = 0; i < cocos2d::CCArray::count(a1[26]); ++i )\n    {\n      v14 = cocos2d::CCArray::objectAtIndex(a1[26], i);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v15);\n    }\n  }\n}", "assembly": "; \n; GJDifficultySprite::updateDifficultyFrame from 0x1403ab0e0 to 0x1403ab1ec (268 bytes)\n; \n; 6 xrefs:\n; > sub_14041B3F0 @ 0x14041b5df\n; > LevelInfoLayer::updateLabelValues @ 0x140425895\n; > RateStarsLayer::selectRating @ 0x14055eedf\n; > GJRateLevelLayer::selectRating @ 0x140560267\n; > RateStarsModLayer::updateDSprite @ 0x140560331\n; > <???> @ 0x140923a2c\n; \n; This function is hookable on this platform (idp: pc, 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:31:20 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403ab0e0\npush    rsi                                                            ; +0x2, 0x1403ab0e2\npush    rdi                                                            ; +0x3, 0x1403ab0e3\nsub     rsp, 50h                                                       ; +0x4, 0x1403ab0e4\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1403ab0e8\nxor     rax, rsp                                                       ; +0xf, 0x1403ab0ef\nmov     [rsp+68h+var_20], rax                                          ; +0x12, 0x1403ab0f2\nmov     rdi, rcx                                                       ; +0x17, 0x1403ab0f7\nlea     rcx, [rsp+68h+Src]; Src                                        ; +0x1a, 0x1403ab0fa\ncall    GJDifficultySprite__getDifficultyFrame                         ; +0x1f, 0x1403ab0ff\nmov     rsi, rax                                                       ; +0x24, 0x1403ab104\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x27, 0x1403ab107\njbe     short loc_1403AB111                                            ; +0x2c, 0x1403ab10c\nmov     rsi, [rax]                                                     ; +0x2e, 0x1403ab10e\nmov     rbx, [rdi]                                                     ; +0x31, 0x1403ab111\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x34, 0x1403ab114\nmov     rcx, rax                                                       ; +0x3a, 0x1403ab11a\nmov     rdx, rsi                                                       ; +0x3d, 0x1403ab11d\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x40, 0x1403ab120\nmov     rdx, rax                                                       ; +0x46, 0x1403ab126\nmov     rcx, rdi                                                       ; +0x49, 0x1403ab129\ncall    qword ptr [rbx+3F0h]                                           ; +0x4c, 0x1403ab12c\nnop                                                                    ; +0x52, 0x1403ab132\nlea     rcx, [rsp+68h+Src]                                             ; +0x53, 0x1403ab133\ncall    sub_14003D310                                                  ; +0x58, 0x1403ab138\ncmp     qword ptr [rdi+0D0h], 0                                        ; +0x5d, 0x1403ab13d\njz      loc_1403AB1D7                                                  ; +0x65, 0x1403ab145\nmov     rax, [rdi]                                                     ; +0x6b, 0x1403ab14b\nmov     rcx, rdi                                                       ; +0x6e, 0x1403ab14e\ncall    qword ptr [rax+140h]                                           ; +0x71, 0x1403ab151\nmov     rbx, rax                                                       ; +0x77, 0x1403ab157\nmov     rcx, [rdi]                                                     ; +0x7a, 0x1403ab15a\nmov     rdx, [rcx+140h]                                                ; +0x7d, 0x1403ab15d\nmov     rcx, rdi                                                       ; +0x84, 0x1403ab164\ncall    rdx                                                            ; +0x87, 0x1403ab167\nmovss   xmm2, dword ptr [rax+4]                                        ; +0x89, 0x1403ab169\nmulss   xmm2, cs:dword_140834F20                                       ; +0x8e, 0x1403ab16e\nmovss   xmm1, dword ptr [rbx]                                          ; +0x96, 0x1403ab176\nmulss   xmm1, cs:dword_140834F20                                       ; +0x9a, 0x1403ab17a\nlea     rcx, [rsp+68h+var_48]                                          ; +0xa2, 0x1403ab182\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa7, 0x1403ab187\nxor     ebx, ebx                                                       ; +0xad, 0x1403ab18d\nmov     rcx, [rdi+0D0h]                                                ; +0xaf, 0x1403ab18f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb6, 0x1403ab196\ntest    eax, eax                                                       ; +0xbc, 0x1403ab19c\njz      short loc_1403AB1D7                                            ; +0xbe, 0x1403ab19e\nmov     edx, ebx                                                       ; +0xc0, 0x1403ab1a0\nmov     rcx, [rdi+0D0h]                                                ; +0xc2, 0x1403ab1a2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x1403ab1a9\nmov     rcx, [rax]                                                     ; +0xcf, 0x1403ab1af\nmov     r8, [rcx+0B8h]                                                 ; +0xd2, 0x1403ab1b2\nlea     rdx, [rsp+68h+var_48]                                          ; +0xd9, 0x1403ab1b9\nmov     rcx, rax                                                       ; +0xde, 0x1403ab1be\ncall    r8                                                             ; +0xe1, 0x1403ab1c1\ninc     ebx                                                            ; +0xe4, 0x1403ab1c4\nmov     rcx, [rdi+0D0h]                                                ; +0xe6, 0x1403ab1c6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xed, 0x1403ab1cd\ncmp     ebx, eax                                                       ; +0xf3, 0x1403ab1d3\njb      short loc_1403AB1A0                                            ; +0xf5, 0x1403ab1d5\nmov     rcx, [rsp+68h+var_20]                                          ; +0xf7, 0x1403ab1d7\nxor     rcx, rsp; StackCookie                                          ; +0xfc, 0x1403ab1dc\ncall    __security_check_cookie                                        ; +0xff, 0x1403ab1df\nadd     rsp, 50h                                                       ; +0x104, 0x1403ab1e4\npop     rdi                                                            ; +0x108, 0x1403ab1e8\npop     rsi                                                            ; +0x109, 0x1403ab1e9\npop     rbx                                                            ; +0x10a, 0x1403ab1ea\nretn                                                                   ; +0x10b, 0x1403ab1eb", "xrefs": ["sub_14041B3F0 @ 0x14041b5df", "LevelInfoLayer::updateLabelValues @ 0x140425895", "RateStarsLayer::selectRating @ 0x14055eedf", "GJRateLevelLayer::selectRating @ 0x140560267", "RateStarsModLayer::updateDSprite @ 0x140560331", "<???> @ 0x140923a2c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}