// File: /workspace/github_c_makefile_star2_O0/jkbenaim[P]psfrag/psfrag.c
// Function: dump_frags
int dump_frags()
{
	__label__ out_return, out_finalize;
	int rc = SQLITE_OK;
	char *zErr = NULL;

	sqlite3_stmt *stmt;
	rc = sqlite3_prepare_v2(
		db,
		"select pcode,addr,num,entrypoint,offset_code,offset_relocs,romsize,ramsize,vma from frags order by num;",
		-1,
		&stmt,
		NULL
	);
	if (rc != SQLITE_OK) {
		zErr = "prepare";
		goto out_return;
	}

	printf("pcode,addr,num,entrypoint,offset_code,offset_relocs,romsize,ramsize,vma\n");

	while (SQLITE_DONE != (rc=sqlite3_step(stmt))) switch (rc) {
	case SQLITE_BUSY:
		break;
	case SQLITE_ERROR:
		zErr = "sqlite3_step returned SQLITE_ERROR";
		goto out_finalize;
		break;
	case SQLITE_MISUSE:
		zErr = "sqlite3_step returned SQLITE_MISUSE";
		goto out_finalize;
		break;
	default:
		zErr = "sqlite3_step returned some other error";
		goto out_finalize;
		break;
	case SQLITE_ROW:
		printf("%s,%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 ",%" PRIuLEAST32 "\n",
			sqlite3_column_text(stmt, 0),
			(uint_least32_t)sqlite3_column_int64(stmt, 1),
			(uint_least32_t)sqlite3_column_int64(stmt, 2),
			(uint_least32_t)sqlite3_column_int64(stmt, 3),
			(uint_least32_t)sqlite3_column_int64(stmt, 4),
			(uint_least32_t)sqlite3_column_int64(stmt, 5),
			(uint_least32_t)sqlite3_column_int64(stmt, 6),
			(uint_least32_t)sqlite3_column_int64(stmt, 7),
			(uint_least32_t)sqlite3_column_int64(stmt, 8)
		);
		break;
	}

out_finalize:
	sqlite3_finalize(stmt);
out_return:
	if (zErr) {
		fprintf(stderr, "dump_frags: error: %s\n", zErr);
		return -1;
	} else
		return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x68, %rsp
movl $0x0, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq 0xd3f69(%rip), %rdi     # 0xdd318
leaq 0xace99(%rip), %rsi     # 0xb624f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x18820
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
je 0x93e2
leaq 0xad689(%rip), %rax     # 0xb6a62
movq %rax, -0x18(%rbp)
jmp 0x9547
leaq 0xacece(%rip), %rdi     # 0xb62b7
movb $0x0, %al
callq 0x80d0
movq -0x20(%rbp), %rdi
callq 0x14020
movl %eax, %ecx
movl %ecx, -0x10(%rbp)
movl $0x65, %eax
cmpl %ecx, %eax
je 0x953c
movl -0x10(%rbp), %eax
movl %eax, -0x24(%rbp)
subl $0x1, %eax
je 0x943b
jmp 0x9418
movl -0x24(%rbp), %eax
subl $0x5, %eax
je 0x9436
jmp 0x9422
movl -0x24(%rbp), %eax
subl $0x15, %eax
je 0x944b
jmp 0x942c
movl -0x24(%rbp), %eax
subl $0x64, %eax
je 0x946b
jmp 0x945b
jmp 0x9537
leaq 0xacebe(%rip), %rax     # 0xb6300
movq %rax, -0x18(%rbp)
jmp 0x953e
leaq 0xaced1(%rip), %rax     # 0xb6323
movq %rax, -0x18(%rbp)
jmp 0x953e
leaq 0xacee5(%rip), %rax     # 0xb6347
movq %rax, -0x18(%rbp)
jmp 0x953e
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x14c70
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x14c30
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rdi
movl $0x2, %esi
callq 0x14c30
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movl $0x3, %esi
callq 0x14c30
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rdi
movl $0x4, %esi
callq 0x14c30
movl %eax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movl $0x5, %esi
callq 0x14c30
movl %eax, %ebx
movq -0x20(%rbp), %rdi
movl $0x6, %esi
callq 0x14c30
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rdi
movl $0x7, %esi
callq 0x14c30
movl %eax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movl $0x8, %esi
callq 0x14c30
movq -0x48(%rbp), %rsi
movl -0x3c(%rbp), %edx
movl -0x38(%rbp), %ecx
movl -0x34(%rbp), %r8d
movl -0x30(%rbp), %r9d
movl -0x2c(%rbp), %r11d
movl -0x28(%rbp), %r10d
leaq 0xace4f(%rip), %rdi     # 0xb636e
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movb $0x0, %al
callq 0x80d0
jmp 0x93f0
jmp 0x953e
movq -0x20(%rbp), %rdi
callq 0x12580
cmpq $0x0, -0x18(%rbp)
je 0x9573
movq 0xd1a9b(%rip), %rax     # 0xdaff0
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
leaq 0xace27(%rip), %rsi     # 0xb638a
movb $0x0, %al
callq 0x81b0
movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF
jmp 0x957a
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x68, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)