AppleHDA 10.9.3 DISASSM 1

Source: Internet
Author: User

1. Actually create the corresponding applehdafunctiongroupfactory::createapplehdafunctiongroup (devidstruct *)
AppleHDAFunctionGroupSTAC9220
applehdafunctiongroup_80862805
AppleHDAFunctionGroupWM8800
AppleHDAFunctionGroupCS4206
applehdafunctiongroupati_rs730
...
AppleHDAFunctionGroupAD1984
AppleHDAFunctionGroupAD1988
AppleHDAFunctionGroupALC885
...
Objects such as Applehdafunctiongroup
10.9.3:0x48162
Createapplehdafunctiongroup called by Applehdacodecgeneric::start (Ioservice *)
applehdacodecgeneric::start:0x478a
Call Create ...: 0X4CEB

var_58 = devidstruct*

0x4d26:call Qword [R10 + 1f0]; R10 = applehdafunctiongroup*
EAX = (applehdafunctiongroup* var_hf)

0x4cf0:applehdacodecgeneric:
R13 (this) + 0xa8 = applehdafunctiongroup*
R13 (this) + 88h = Ioservice *
R13 (this) + 90h = 0x480a call return, its 0x5d0-start

In Applehdacodecgeneric::start
R13-This
R12-Ioservice * Parameters

Virtual table for 2.AppleHDAFunctionGroup (0x7c680):
vtable + 0x200 [0x400a6] = Initfornodeid (unsigned short, osobject *, Osobject *, devidstruct *, BOOL)
vtable + 0x130 [0x3fa08] = applehdanode::runverb (unsigned short, unsigned short, unsigned int*)
vtable + 0x1f0 [0x3fd4e] = applehdanode::isbitdepthsupported (unsigned int)


Virtual table for 3.AppleHDACodec:
vtable + 0x5d0 = Start ()

The X86-64 has 16 64-bit registers, respectively:%rax,%rbx,%rcx,%rdx,%esi,%edi,%rbp,%rsp,%r8,%r9,%r10,%r11,%r12,%r13,%r14,%r15. which

The

%rax is used as a function return value.
%RSP stack pointer register, pointing to the top of the stack
%rdi,%rsi,%rdx,%rcx,%r8,%r9 as a function parameter, corresponding to the 1th parameter, the 2nd parameter ... The
%rbx,%rbp,%r12,%r13,%14,%15 is used as a data store, followed by the callee's rules of use, simply to use it, to back it up before calling the child function, in case he is modified
%r10,%r11 as a data store, followed by the caller's usage rules, To put it simply, save the original value
X86-64 register and the stack frame before using it:
http://www.searchtb.com/2013/03/x86-64_register_and_function_frame.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.