// File: /workspace/github_cpp_makefile_star2_O2/ridiculousfish[P]docopt_fish/docopt_matching.cpp
// Function: void docopt_fish::repeat_matching<docopt_fish::alternation_list_t>(docopt_fish::alternation_list_t const&, unsigned long, docopt_fish::match_context_t const&, std::vector<docopt_fish::match_state_t, std::allocator<docopt_fish::match_state_t>>*)
static void repeat_matching(const Node &node, size_t init_prior_state_count, const match_context_t &ctx,
                            match_state_list_t *resulting_states) {
    assert(resulting_states->size() >= init_prior_state_count);
    // Get the number of existing states
    // Keep going until we stop getting new states
    size_t prior_state_count = init_prior_state_count;
    while (prior_state_count < resulting_states->size()) {
        // Get a vector of intermediate states
        match_state_list_t intermediate_states;
        intermediate_states.reserve(resulting_states->size() - prior_state_count);
        for (size_t i = prior_state_count; i < resulting_states->size(); i++) {
            intermediate_states.push_back(resulting_states->at(i).copy());
        }
        prior_state_count = resulting_states->size();
        match_list(node, std::move(intermediate_states), ctx, resulting_states, true /* require progress */);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %rbx
movq %rdx, 0x28(%rsp)
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
movq %rcx, %rax
subq %rsi, %rax
pushq $0x60
popq %rdi
cqto
idivq %rdi
cmpq %r14, %rax
jb 0x12d7e
subq %rsi, %rcx
movq %rcx, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
subq %r14, %rax
jbe 0x12d2e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq %rsp, %rdi
movq %rax, %rsi
callq 0x13dac
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
cmpq %rax, %r14
jae 0x12c51
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13e4e
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x14754
movq %rsp, %rdi
movq %r15, %rsi
callq 0x13574
movq %r15, %rdi
callq 0x130ce
incq %r14
jmp 0x12c0a
movq %rax, 0x18(%rsp)
movq (%rsp), %r12
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
cmpq 0x30(%rsp), %r12
je 0x12d15
movq %r12, %rdi
callq 0x13e94
movq %rax, %r14
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
pushq $0x60
popq %r13
idivq %r13
movq %rax, %r15
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1341a
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rcx
callq 0x120d2
movq %rbp, %rdi
callq 0x130ce
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cqto
idivq %r13
cmpq %r15, %rax
jb 0x12d5f
movq %rax, %r13
imulq $0x60, %rax, %rbp
addq $-0x60, %rbp
cmpq %r15, %r13
jbe 0x12d0c
decq %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x13e4e
movq %rax, %rdi
callq 0x13e94
cmpq %r14, %rax
jb 0x12d40
jne 0x12cd6
movq (%rbx), %rsi
addq %rbp, %rsi
movq %rbx, %rdi
callq 0x13ec8
jmp 0x12cd6
addq $0x60, %r12
jmp 0x12c64
movq %rsp, %rdi
callq 0x133da
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movq 0x18(%rsp), %r14
jmp 0x12bdb
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa8e9(%rip), %rdi      # 0x1d630
leaq 0xa46d(%rip), %rsi      # 0x1d1bb
leaq 0xa989(%rip), %rcx      # 0x1d6de
movl $0x148, %edx            # imm = 0x148
callq 0x7150
leaq 0xa822(%rip), %rdi      # 0x1d588
leaq 0xa44e(%rip), %rsi      # 0x1d1bb
leaq 0xa96a(%rip), %rcx      # 0x1d6de
movl $0x145, %edx            # imm = 0x145
callq 0x7150
leaq 0xa743(%rip), %rdi      # 0x1d4c8
leaq 0xa42f(%rip), %rsi      # 0x1d1bb
leaq 0xa8bb(%rip), %rcx      # 0x1d64e
movl $0x1a7, %edx            # imm = 0x1A7
callq 0x7150
jmp 0x12db4
jmp 0x12db4
jmp 0x12da3
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x130ce
jmp 0x12db7
jmp 0x12db4
movq %rax, %rbx
movq %rsp, %rdi
callq 0x133da
movq %rbx, %rdi
callq 0x7390