// File: /workspace/github_c_makefile_star2_O0/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_classdata
void dxb_classdata(ByteStream* bs, DexClassDataItem* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->static_fields_size));
  l128write(bs,&(obj->instance_fields_size));
  l128write(bs,&(obj->direct_methods_size));
  l128write(bs,&(obj->virtual_methods_size));

  for (i=0; i<ul128toui(obj->static_fields_size); i++)
    dxb_encodedfield(bs,obj->static_fields[i]);

  for (i=0; i<ul128toui(obj->instance_fields_size); i++)
    dxb_encodedfield(bs,obj->instance_fields[i]);

  for (i=0; i<ul128toui(obj->direct_methods_size); i++)
    dxb_encodedmethod(bs,obj->direct_methods[i]);

  for (i=0; i<ul128toui(obj->virtual_methods_size); i++)
    dxb_encodedmethod(bs,obj->virtual_methods[i]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x580e
cmpq $0x0, -0x10(%rbp)
jne 0x5813
jmp 0x59c3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %esi
callq 0x44f0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
callq 0x4570
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x14, %rsi
callq 0x4570
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
callq 0x4570
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x2c, %rsi
callq 0x4570
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movl 0x10(%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
movl -0x20(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0x5c(%rbp), %eax
cmpl %ecx, %eax
jae 0x58be
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
callq 0x4040
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x586e
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq 0x14(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl 0x1c(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0x60(%rbp), %eax
cmpl %ecx, %eax
jae 0x5915
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
callq 0x4040
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x58c5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x48(%rbp)
movl 0x28(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0x64(%rbp), %eax
cmpl %ecx, %eax
jae 0x596c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
callq 0x4790
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x591c
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq 0x2c(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl 0x34(%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x41c0
movl %eax, %ecx
movl -0x68(%rbp), %eax
cmpl %ecx, %eax
jae 0x59c3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
callq 0x4790
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5973
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)