// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/kernel.c
// Function: run_test
void
run_test(int limit)
{
	CONFIG* cfg = CFG;  /* USE GLOBAL CONFIGURATION */

	for (;;) {
		int remain = run_configuration(cfg, limit);

		if (remain < 0) {
			DBUG_PRINT("", ("%d messages queued (limit %d).", cfg->q_count, cfg->q_limit));
			break;		/* abnormal return */
		}
		DBUG_PRINT("", ("%d messages delivered (limit %d).", (limit - remain), limit));
		if (cfg->q_count > 0) {
			DBUG_PRINT("", ("%d messages remain in queue.", cfg->q_count));
			break;		/* excessive messaging */
		}
		if (cfg->t_count > 0) {
			DBUG_PRINT("", ("waiting for timed event..."));
			sleep(1);
		} else {
			return;		/* no more work to do! */
		}
	}
	abort();	/* terminate test run */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq 0x2aa4e(%rip), %rax     # 0x2f390
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl -0x4(%rbp), %esi
callq 0x1c110
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jge 0x49cb
jmp 0x495d
leaq 0x2afbc(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x49c4
leaq 0x2a9b0(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x249f1(%rip), %rcx     # 0x2936f
movq %rcx, 0x10(%rax)
leaq 0x249e6(%rip), %rdi     # 0x2936f
callq 0x278a0
cmpl $0x0, %eax
je 0x49c4
leaq 0x2a986(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0xb30, 0xc(%rax)       # imm = 0xB30
movq -0x10(%rbp), %rax
movl 0x28(%rax), %esi
movq -0x10(%rbp), %rax
movl 0x40(%rax), %edx
leaq 0x247b8(%rip), %rdi     # 0x29175
movb $0x0, %al
callq 0x28540
jmp 0x49c6
jmp 0x4b1f
jmp 0x49cd
leaq 0x2af4c(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x4a2f
leaq 0x2a940(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x24981(%rip), %rcx     # 0x2936f
movq %rcx, 0x10(%rax)
leaq 0x24976(%rip), %rdi     # 0x2936f
callq 0x278a0
cmpl $0x0, %eax
je 0x4a2f
leaq 0x2a916(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0xb33, 0xc(%rax)       # imm = 0xB33
movl -0x4(%rbp), %esi
subl -0x14(%rbp), %esi
movl -0x4(%rbp), %edx
leaq 0x24810(%rip), %rdi     # 0x29238
movb $0x0, %al
callq 0x28540
jmp 0x4a31
movq -0x10(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jle 0x4aa1
jmp 0x4a3d
leaq 0x2aedc(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x4a9d
leaq 0x2a8d0(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x24911(%rip), %rcx     # 0x2936f
movq %rcx, 0x10(%rax)
leaq 0x24906(%rip), %rdi     # 0x2936f
callq 0x278a0
cmpl $0x0, %eax
je 0x4a9d
leaq 0x2a8a6(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0xb35, 0xc(%rax)       # imm = 0xB35
movq -0x10(%rbp), %rax
movl 0x28(%rax), %esi
leaq 0x247c4(%rip), %rdi     # 0x2925a
movb $0x0, %al
callq 0x28540
jmp 0x4a9f
jmp 0x4b1f
movq -0x10(%rbp), %rax
cmpl $0x0, 0x68(%rax)
jle 0x4b14
jmp 0x4aad
leaq 0x2ae6c(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x4b06
leaq 0x2a860(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x248a1(%rip), %rcx     # 0x2936f
movq %rcx, 0x10(%rax)
leaq 0x24896(%rip), %rdi     # 0x2936f
callq 0x278a0
cmpl $0x0, %eax
je 0x4b06
leaq 0x2a836(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0xb39, 0xc(%rax)       # imm = 0xB39
leaq 0x246f2(%rip), %rdi     # 0x291f1
movb $0x0, %al
callq 0x28540
jmp 0x4b08
movl $0x1, %edi
callq 0x2240
jmp 0x4b1a
addq $0x20, %rsp
popq %rbp
retq
jmp 0x4946
callq 0x2050
nopw %cs:(%rax,%rax)