{"type": "func", "start": 5372555264, "end": 5372555484, "name": "GJDifficultySprite::getDifficultyFrame", "pseudocode": "// \n// GJDifficultySprite::getDifficultyFrame from 0x1403ab000 to 0x1403ab0dc (220 bytes)\n// \n// 3 xrefs:\n// > GJDifficultySprite::create @ 0x1403aaf87\n// > GJDifficultySprite::updateDifficultyFrame @ 0x1403ab0ff\n// > <???> @ 0x140923a20\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::getDifficultyFrame(void **Src, int a2, int a3)\n{\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n  size_t v9; // r8\n  char *v10; // rdx\n\n  v6 = cocos2d::CCString::createWithFormat(\"difficulty_%02d_\", a2);\n  CString = cocos2d::CCString::getCString(v6);\n  *(_OWORD *)Src = 0;\n  Src[2] = nullptr;\n  Src[3] = nullptr;\n  v8 = -1;\n  do\n    ++v8;\n  while ( CString[v8] );\n  sub_14003D230(Src, CString, v8);\n  if ( a3 == 1 && (unsigned int)(a2 - 6) <= 4 )\n  {\n    v9 = 12;\n    v10 = \"btn2_001.png\";\n  }\n  else\n  {\n    v9 = 11;\n    v10 = \"btn_001.png\";\n  }\n  sub_140044D80(Src, v10, v9);\n  if ( a2 == -1 )\n    sub_1400405A0(Src, \"difficulty_auto_btn_001.png\", 0x1Bu);\n  return Src;\n}", "assembly": "; \n; GJDifficultySprite::getDifficultyFrame from 0x1403ab000 to 0x1403ab0dc (220 bytes)\n; \n; 3 xrefs:\n; > GJDifficultySprite::create @ 0x1403aaf87\n; > GJDifficultySprite::updateDifficultyFrame @ 0x1403ab0ff\n; > <???> @ 0x140923a20\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403ab000\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403ab005\nmov     [rsp+arg_0], rcx                                               ; +0xa, 0x1403ab00a\npush    rdi                                                            ; +0xf, 0x1403ab00f\nsub     rsp, 30h                                                       ; +0x10, 0x1403ab010\nmov     esi, r8d                                                       ; +0x14, 0x1403ab014\nmov     edi, edx                                                       ; +0x17, 0x1403ab017\nmov     rbx, rcx                                                       ; +0x19, 0x1403ab019\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x1403ab01c\nlea     rcx, aDifficulty02d; \"difficulty_%02d_\"                        ; +0x24, 0x1403ab024\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2b, 0x1403ab02b\nmov     rcx, rax                                                       ; +0x31, 0x1403ab031\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x34, 0x1403ab034\nxorps   xmm0, xmm0                                                     ; +0x3a, 0x1403ab03a\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x3d, 0x1403ab03d\nmov     qword ptr [rbx+10h], 0                                         ; +0x40, 0x1403ab040\nmov     qword ptr [rbx+18h], 0                                         ; +0x48, 0x1403ab048\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x50, 0x1403ab050\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x1403ab057\ninc     r8                                                             ; +0x60, 0x1403ab060\ncmp     byte ptr [rax+r8], 0                                           ; +0x63, 0x1403ab063\njnz     short loc_1403AB060                                            ; +0x68, 0x1403ab068\nmov     rdx, rax                                                       ; +0x6a, 0x1403ab06a\nmov     rcx, rbx                                                       ; +0x6d, 0x1403ab06d\ncall    sub_14003D230                                                  ; +0x70, 0x1403ab070\nmov     [rsp+38h+var_18], 1                                            ; +0x75, 0x1403ab075\ncmp     esi, 1                                                         ; +0x7d, 0x1403ab07d\njnz     short loc_1403AB099                                            ; +0x80, 0x1403ab080\nlea     eax, [rdi-6]                                                   ; +0x82, 0x1403ab082\ncmp     eax, 4                                                         ; +0x85, 0x1403ab085\nja      short loc_1403AB099                                            ; +0x88, 0x1403ab088\nmov     r8d, 0Ch                                                       ; +0x8a, 0x1403ab08a\nlea     rdx, aBtn2001Png; \"btn2_001.png\"                               ; +0x90, 0x1403ab090\njmp     short loc_1403AB0A6                                            ; +0x97, 0x1403ab097\nmov     r8d, 0Bh; Size                                                 ; +0x99, 0x1403ab099\nlea     rdx, aBtn001Png; \"btn_001.png\"                                 ; +0x9f, 0x1403ab09f\nmov     rcx, rbx; Src                                                  ; +0xa6, 0x1403ab0a6\ncall    sub_140044D80                                                  ; +0xa9, 0x1403ab0a9\ncmp     edi, 0FFFFFFFFh                                                ; +0xae, 0x1403ab0ae\njnz     short loc_1403AB0C8                                            ; +0xb1, 0x1403ab0b1\nmov     r8d, 1Bh; Size                                                 ; +0xb3, 0x1403ab0b3\nlea     rdx, aDifficultyAuto; \"difficulty_auto_btn_001.png\"            ; +0xb9, 0x1403ab0b9\nmov     rcx, rbx; void *                                               ; +0xc0, 0x1403ab0c0\ncall    sub_1400405A0                                                  ; +0xc3, 0x1403ab0c3\nmov     rax, rbx                                                       ; +0xc8, 0x1403ab0c8\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xcb, 0x1403ab0cb\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xd0, 0x1403ab0d0\nadd     rsp, 30h                                                       ; +0xd5, 0x1403ab0d5\npop     rdi                                                            ; +0xd9, 0x1403ab0d9\nretn                                                                   ; +0xda, 0x1403ab0da\ndb 0CCh                                                                ; +0xdb, 0x1403ab0db", "xrefs": ["GJDifficultySprite::create @ 0x1403aaf87", "GJDifficultySprite::updateDifficultyFrame @ 0x1403ab0ff", "<???> @ 0x140923a20"], "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"}