{"type": "func", "start": 6442480288, "end": 6442480388, "name": "cocos2d::CCArray::randomObject", "pseudocode": "// \n// cocos2d::CCArray::randomObject from 0x1800072a0 to 0x180007304 (100 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDictionary::randomObject @ 0x18000a9fa\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b79fc\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:21:18 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall cocos2d::CCArray::randomObject(cocos2d::CCArray *this)\n{\n  float v3; // xmm1_4\n\n  if ( !**((_DWORD **)this + 7) )\n    return nullptr;\n  v3 = (float)rand() / 32767.0;\n  if ( v3 == 1.0 )\n    v3 = 0.0;\n  return *(struct cocos2d::CCObject **)(*(_QWORD *)(*((_QWORD *)this + 7) + 16LL)\n                                      + 8LL * (int)(float)((float)**((int **)this + 7) * v3));\n}", "assembly": "; \n; cocos2d::CCArray::randomObject from 0x1800072a0 to 0x180007304 (100 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDictionary::randomObject @ 0x18000a9fa\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b79fc\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:21:18 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800072a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800072a2\nmov     rax, [rcx+38h]                                                 ; +0x6, 0x1800072a6\nmov     rbx, rcx                                                       ; +0xa, 0x1800072aa\ncmp     dword ptr [rax], 0                                             ; +0xd, 0x1800072ad\njnz     short loc_1800072BA                                            ; +0x10, 0x1800072b0\nxor     eax, eax                                                       ; +0x12, 0x1800072b2\nadd     rsp, 20h                                                       ; +0x14, 0x1800072b4\npop     rbx                                                            ; +0x18, 0x1800072b8\nretn                                                                   ; +0x19, 0x1800072b9\ncall    cs:rand                                                        ; +0x1a, 0x1800072ba\nmovd    xmm1, eax                                                      ; +0x20, 0x1800072c0\ncvtdq2ps xmm1, xmm1                                                    ; +0x24, 0x1800072c4\ndivss   xmm1, cs:dword_1800EC35C                                       ; +0x27, 0x1800072c7\nucomiss xmm1, cs:flt_1800EC208                                         ; +0x2f, 0x1800072cf\njp      short loc_1800072DD                                            ; +0x36, 0x1800072d6\njnz     short loc_1800072DD                                            ; +0x38, 0x1800072d8\nxorps   xmm1, xmm1                                                     ; +0x3a, 0x1800072da\nmov     rdx, [rbx+38h]                                                 ; +0x3d, 0x1800072dd\nxorps   xmm0, xmm0                                                     ; +0x41, 0x1800072e1\nmov     eax, [rdx]                                                     ; +0x44, 0x1800072e4\ncvtsi2ss xmm0, rax                                                     ; +0x46, 0x1800072e6\nmulss   xmm0, xmm1                                                     ; +0x4b, 0x1800072eb\ncvttss2si eax, xmm0                                                    ; +0x4f, 0x1800072ef\nmovsxd  rcx, eax                                                       ; +0x53, 0x1800072f3\nmov     rax, [rdx+10h]                                                 ; +0x56, 0x1800072f6\nmov     rax, [rax+rcx*8]                                               ; +0x5a, 0x1800072fa\nadd     rsp, 20h                                                       ; +0x5e, 0x1800072fe\npop     rbx                                                            ; +0x62, 0x180007302\nretn                                                                   ; +0x63, 0x180007303", "xrefs": ["cocos2d::CCDictionary::randomObject @ 0x18000a9fa", "<???> @ 0x18014cf68", "<???> @ 0x1801b79fc"], "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"}