// File: /workspace/github_c_makefile_star2_O0/Cotix[P]cReddit/libreddit/comment.c
// Function: getCommentListHelper
DEF_TOKEN_CALLBACK(getCommentListHelper)
{
    ARG_COMMENT_LISTING
    RedditComment *reply = NULL;

    TokenIdent more_ids[] = {
        ADD_TOKEN_IDENT_INT   ("count",    comment->totalReplyCount),
        ADD_TOKEN_IDENT_STRING("id",       comment->childrenId),
        ADD_TOKEN_IDENT_FUNC  ("children", getCommentRepliesMore),
        {0}
    };

    int i;
    for (i = 0; idents[i].name != NULL; i++) {
        if (strcmp(idents[i].name, "kind") == 0) {
            if (idents[i].value != NULL) {
                if (strcmp(*((char**)idents[i].value), "t3") == 0) {
                    /* This is the reddit_link data -- free the old and
                     * grab the new link data */
                    redditLinkFree(list->post);
                    list->post = redditGetLink(parser);
                } else if (strcmp(*((char**)idents[i].value), "t1") == 0) {
                    /* A reply to 'comment' -- Send the 'data' field along to be parsed
                     * and add the result as a reply to the current comment */
                    reply = redditGetComment(parser, list);
                    redditCommentAddReply(comment, reply);
                } else if (strcmp(*((char**)idents[i].value), "more") == 0) {
                    parseTokens(parser, more_ids, list, comment);
                }
            } else {
                break;
            }
        }
    }
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rdi, 0x140(%rsp)
movq %rsi, 0x138(%rsp)
movq %rdx, 0x130(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x20(%rsp)
movl (%rax), %eax
movl %eax, 0x28(%rsp)
cmpl $0x28, %eax
ja 0x3113
movq 0x20(%rsp), %rcx
movl 0x28(%rsp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, 0x18(%rsp)
jmp 0x312c
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x128(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x8(%rsp)
movl (%rax), %eax
movl %eax, 0x14(%rsp)
cmpl $0x28, %eax
ja 0x316f
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, (%rsp)
jmp 0x3187
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, (%rsp)
movq (%rsp), %rax
movq (%rax), %rax
movq %rax, 0x120(%rsp)
movq $0x0, 0x118(%rsp)
leaq 0x5280(%rip), %rax      # 0x8429
movq %rax, 0x30(%rsp)
movl $0x1, 0x38(%rsp)
movl $0x0, 0x3c(%rsp)
movq 0x120(%rsp), %rax
addq $0x5c, %rax
movq %rax, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movl $0x0, 0x58(%rsp)
movb $0x0, 0x5c(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x515f(%rip), %rax      # 0x835d
movq %rax, 0x68(%rsp)
movl $0x2, 0x70(%rsp)
movl $0x0, 0x74(%rsp)
movq 0x120(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x78(%rsp)
movq $0x0, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
movl $0x0, 0x90(%rsp)
movb $0x1, 0x94(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x51cd(%rip), %rax      # 0x842f
movq %rax, 0xa0(%rsp)
movl $0x3, 0xa8(%rsp)
movl $0x2, 0xac(%rsp)
movq $0x0, 0xb0(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xc0(%rsp)
movl $0x0, 0xc8(%rsp)
movb $0x0, 0xcc(%rsp)
leaq 0x672(%rip), %rax       # 0x3930
movq %rax, 0xd0(%rsp)
leaq 0x30(%rsp), %rdi
addq $0xa8, %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x2100
movl $0x0, 0x2c(%rsp)
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x3479
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
leaq 0x508c(%rip), %rsi      # 0x83ae
callq 0x2160
cmpl $0x0, %eax
jne 0x3467
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
je 0x3463
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
leaq 0x50c7(%rip), %rsi      # 0x8438
callq 0x2160
cmpl $0x0, %eax
jne 0x33ad
movq 0x128(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x21b0
movq 0x140(%rsp), %rdi
callq 0x4f10
movq %rax, %rcx
movq 0x128(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3461
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
leaq 0x506c(%rip), %rsi      # 0x843b
callq 0x2160
cmpl $0x0, %eax
jne 0x340d
movq 0x140(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x2660
movq %rax, 0x118(%rsp)
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
callq 0x2190
jmp 0x345f
movq 0x138(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
leaq 0x500f(%rip), %rsi      # 0x843e
callq 0x2160
cmpl $0x0, %eax
jne 0x345d
movq 0x140(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq 0x128(%rsp), %rdx
movq 0x120(%rsp), %rcx
movb $0x0, %al
callq 0x69c0
jmp 0x345f
jmp 0x3461
jmp 0x3465
jmp 0x3479
jmp 0x3467
jmp 0x3469
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x32e6
addq $0x148, %rsp            # imm = 0x148
retq
nopw %cs:(%rax,%rax)