// File: attractivechaos[P]udb2/stb/./stb.h
// Function: stb_cfg_write
void stb_cfg_write(stb_cfg *z, char *key, void *value, int len)
{
   int i;
   for (i=0; i < stb_arr_len(z->data); ++i)
      if (!stb_stricmp(z->data[i].key, key))
         break;
   if (i == stb_arr_len(z->data)) {
      stb__cfg_item p;
      p.key = stb_strdup(key, z);
      p.value = NULL;
      p.value_len = 0;
      stb_arr_push(z->data, p);
   }
   z->data[i].value = stb_malloc(z, len);
   z->data[i].value_len = len;
   memcpy(z->data[i].value, value, len);
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movl %ecx, 0x4c(%rsp)
movl $0x0, 0x48(%rsp)
movl 0x48(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
je 0x11d33
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0x10(%rax), %eax
movl %eax, 0x28(%rsp)
jmp 0x11d3b
xorl %eax, %eax
movl %eax, 0x28(%rsp)
jmp 0x11d3b
movl 0x2c(%rsp), %eax
movl 0x28(%rsp), %ecx
cmpl %ecx, %eax
jge 0x11d7e
movq 0x60(%rsp), %rax
movq (%rax), %rax
movslq 0x48(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x2030
cmpl $0x0, %eax
jne 0x11d6f
jmp 0x11d7e
jmp 0x11d71
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x11d0f
movl 0x48(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
je 0x11da2
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0x10(%rax), %eax
movl %eax, 0x20(%rsp)
jmp 0x11daa
xorl %eax, %eax
movl %eax, 0x20(%rsp)
jmp 0x11daa
movl 0x24(%rsp), %eax
movl 0x20(%rsp), %ecx
cmpl %ecx, %eax
jne 0x11ec4
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xef10
movq %rax, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movl $0x0, 0x40(%rsp)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
je 0x11dfb
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0x10(%rax), %eax
movl %eax, 0x1c(%rsp)
jmp 0x11e03
xorl %eax, %eax
movl %eax, 0x1c(%rsp)
jmp 0x11e03
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
je 0x11e2a
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0xc(%rax), %eax
movl %eax, 0x14(%rsp)
jmp 0x11e32
xorl %eax, %eax
movl %eax, 0x14(%rsp)
jmp 0x11e32
movl 0x18(%rsp), %eax
movl 0x14(%rsp), %ecx
cmpl %ecx, %eax
jle 0x11e54
movq 0x60(%rsp), %rdi
movl $0x18, %esi
movl $0x1, %edx
callq 0x8030
jmp 0x11e65
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, -0x10(%rax)
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rax
cmpq $0x0, (%rax)
je 0x11e8e
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl -0x10(%rax), %eax
movl %eax, 0x4(%rsp)
jmp 0x11e96
xorl %eax, %eax
movl %eax, 0x4(%rsp)
jmp 0x11e96
movq 0x8(%rsp), %rax
movl 0x4(%rsp), %ecx
movslq %ecx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rsp), %rcx
movq %rcx, -0x18(%rax)
movq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, -0x8(%rax)
movq 0x60(%rsp), %rdi
movslq 0x4c(%rsp), %rsi
callq 0x75b0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movslq 0x48(%rsp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movl 0x4c(%rsp), %ecx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movslq 0x48(%rsp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x10(%rax)
movq 0x60(%rsp), %rax
movq (%rax), %rax
movslq 0x48(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
movq 0x50(%rsp), %rsi
movslq 0x4c(%rsp), %rdx
callq 0x2230
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)