// File: /workspace/github_c_makefile_star2_O0/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_classdata
DexClassDataItem* dx_classdata(ByteStream* bs, uint32_t offset) {
  DexClassDataItem* res;
  int check;

  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexClassDataItem,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->static_fields_size));
  check |= l128read(bs,&(res->instance_fields_size));
  check |= l128read(bs,&(res->direct_methods_size));
  check |= l128read(bs,&(res->virtual_methods_size));

  res->meta.corrupted = check || bs->exhausted;

  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexEncodedFieldItem*,res->static_fields,
		ul128toui(res->static_fields_size));
  DX_ALLOC_LIST(DexEncodedFieldItem*,res->instance_fields,
		ul128toui(res->instance_fields_size));
  DX_ALLOC_LIST(DexEncodedMethodItem*,res->direct_methods,
		ul128toui(res->direct_methods_size));
  DX_ALLOC_LIST(DexEncodedMethodItem*,res->virtual_methods,
		ul128toui(res->virtual_methods_size));

  for (i=0; i<ul128toui(res->static_fields_size); i++)
    res->static_fields[i] = dx_encodedfield(bs,bs->offset);

  for (i=0; i<ul128toui(res->instance_fields_size); i++)
    res->instance_fields[i] = dx_encodedfield(bs,bs->offset);

  for (i=0; i<ul128toui(res->direct_methods_size); i++)
    res->direct_methods[i] = dx_encodedmethod(bs,bs->offset);

  for (i=0; i<ul128toui(res->virtual_methods_size); i++)
    res->virtual_methods[i] = dx_encodedmethod(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x73a6
movq $0x0, -0x8(%rbp)
jmp 0x780e
jmp 0x73a8
movl $0x58, %edi
callq 0x4750
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x44f0
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x8, %rsi
callq 0x4910
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x14, %rsi
callq 0x4910
orl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x20, %rsi
callq 0x4910
orl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x2c, %rsi
callq 0x4910
orl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movb $0x1, %al
cmpl $0x0, -0x24(%rbp)
movb %al, -0xe9(%rbp)
jne 0x744b
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1c(%rax)
setne %al
movb %al, -0xe9(%rbp)
movb -0xe9(%rbp), %cl
movq -0x20(%rbp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq -0x20(%rbp), %rax
testb $0x1, (%rax)
je 0x7470
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x780e
jmp 0x7472
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl 0x10(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0x41c0
cmpl $0x0, %eax
je 0x74cd
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x48(%rbp)
movl 0x10(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
callq 0x41c0
movl %eax, %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4750
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x38(%rax)
jmp 0x74d9
movq -0x20(%rbp), %rax
movq $0x0, 0x38(%rax)
jmp 0x74db
jmp 0x74dd
movq -0x20(%rbp), %rax
movq 0x14(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl 0x1c(%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x41c0
cmpl $0x0, %eax
je 0x7538
movq -0x20(%rbp), %rax
movq 0x14(%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x1c(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %esi
callq 0x41c0
movl %eax, %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4750
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x40(%rax)
jmp 0x7544
movq -0x20(%rbp), %rax
movq $0x0, 0x40(%rax)
jmp 0x7546
jmp 0x7548
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x78(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0x70(%rbp)
movq -0x78(%rbp), %rdi
movl -0x70(%rbp), %esi
callq 0x41c0
cmpl $0x0, %eax
je 0x75a9
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x88(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0x80(%rbp)
movq -0x88(%rbp), %rdi
movl -0x80(%rbp), %esi
callq 0x41c0
movl %eax, %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4750
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x48(%rax)
jmp 0x75b5
movq -0x20(%rbp), %rax
movq $0x0, 0x48(%rax)
jmp 0x75b7
jmp 0x75b9
movq -0x20(%rbp), %rax
movq 0x2c(%rax), %rcx
movq %rcx, -0x98(%rbp)
movl 0x34(%rax), %eax
movl %eax, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movl -0x90(%rbp), %esi
callq 0x41c0
cmpl $0x0, %eax
je 0x762c
movq -0x20(%rbp), %rax
movq 0x2c(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movl 0x34(%rax), %eax
movl %eax, -0xa0(%rbp)
movq -0xa8(%rbp), %rdi
movl -0xa0(%rbp), %esi
callq 0x41c0
movl %eax, %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4750
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x50(%rax)
jmp 0x7638
movq -0x20(%rbp), %rax
movq $0x0, 0x50(%rax)
jmp 0x763a
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0xf0(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0xb8(%rbp)
movl 0x10(%rax), %eax
movl %eax, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movl -0xb0(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0xf0(%rbp), %eax
cmpl %ecx, %eax
jae 0x76ad
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x4150
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x28(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x7641
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0xf4(%rbp)
movq -0x20(%rbp), %rax
movq 0x14(%rax), %rcx
movq %rcx, -0xc8(%rbp)
movl 0x1c(%rax), %eax
movl %eax, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movl -0xc0(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0xf4(%rbp), %eax
cmpl %ecx, %eax
jae 0x7720
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x4150
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x28(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x76b4
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0xd8(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movl -0xd0(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0xf8(%rbp), %eax
cmpl %ecx, %eax
jae 0x7793
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x4670
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x28(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x7727
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0xfc(%rbp)
movq -0x20(%rbp), %rax
movq 0x2c(%rax), %rcx
movq %rcx, -0xe8(%rbp)
movl 0x34(%rax), %eax
movl %eax, -0xe0(%rbp)
movq -0xe8(%rbp), %rdi
movl -0xe0(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0xfc(%rbp), %eax
cmpl %ecx, %eax
jae 0x7806
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x4670
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x50(%rax), %rax
movl -0x28(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x779a
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax,%rax)