{"type": "func", "start": 4300063896, "end": 4300063988, "name": "EmoteSprite::defAtIndex", "pseudocode": "// \n// EmoteSprite::defAtIndex from 0x1004dc498 to 0x1004dc4f4 (92 bytes)\n// \n// 4 xrefs:\n// > EmotePickerPopup::onBuildWindowContent @ 0x1004db61c\n// > EmotePickerPopup::onBuildWindowContent @ 0x1004db680\n// > EmotePickerPopup::layoutEmoteGrid @ 0x1004db950\n// > EmotePickerPopup::onPickEmote @ 0x1004dba88\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:34 +0000\n// \n\n__int64 __fastcall EmoteSprite::defAtIndex(signed int a1)\n{\n  ensureEmotesAreLoaded();\n  if ( a1 < 0 || (int)(-1431655765 * ((unsigned __int64)(qword_1009F81A8 - qword_1009F81A0) >> 4)) <= a1 )\n    return 0;\n  else\n    return qword_1009F81A0 + 48LL * (unsigned int)a1;\n}", "assembly": "; \n; EmoteSprite::defAtIndex from 0x1004dc498 to 0x1004dc4f4 (92 bytes)\n; \n; 4 xrefs:\n; > EmotePickerPopup::onBuildWindowContent @ 0x1004db61c\n; > EmotePickerPopup::onBuildWindowContent @ 0x1004db680\n; > EmotePickerPopup::layoutEmoteGrid @ 0x1004db950\n; > EmotePickerPopup::onPickEmote @ 0x1004dba88\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:34 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004dc498\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004dc49c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004dc4a0\nMOV             X19, X0                                                ; +0xc, 0x1004dc4a4\nBL              ensureEmotesAreLoaded                                  ; +0x10, 0x1004dc4a8\nTBNZ            W19, #0x1F, loc_1004DC4E4                              ; +0x14, 0x1004dc4ac\nADRL            X8, qword_1009F81A0                                    ; +0x18, 0x1004dc4b0\nLDP             X8, X9, [X8]                                           ; +0x20, 0x1004dc4b8\nSUB             X9, X9, X8                                             ; +0x24, 0x1004dc4bc\nLSR             X9, X9, #4                                             ; +0x28, 0x1004dc4c0\nMOV             W10, #0xAAAAAAAB                                       ; +0x2c, 0x1004dc4c4\nMUL             W9, W9, W10                                            ; +0x34, 0x1004dc4cc\nCMP             W9, W19                                                ; +0x38, 0x1004dc4d0\nB.LE            loc_1004DC4E4                                          ; +0x3c, 0x1004dc4d4\nMOV             W9, #0x30 ; '0'                                        ; +0x40, 0x1004dc4d8\nUMADDL          X0, W19, W9, X8                                        ; +0x44, 0x1004dc4dc\nB               loc_1004DC4E8                                          ; +0x48, 0x1004dc4e0\nMOV             X0, #0                                                 ; +0x4c, 0x1004dc4e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x1004dc4e8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x1004dc4ec\nRET                                                                    ; +0x58, 0x1004dc4f0", "xrefs": ["EmotePickerPopup::onBuildWindowContent @ 0x1004db61c", "EmotePickerPopup::onBuildWindowContent @ 0x1004db680", "EmotePickerPopup::layoutEmoteGrid @ 0x1004db950", "EmotePickerPopup::onPickEmote @ 0x1004dba88"], "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"}