// File: mdpkh[P]retro6k/src/main.cpp
// Function: FillRoundedRect(SDL_Surface*, SDL_Rect const&, unsigned int)
void FillRoundedRect(SDL_Surface* dst, const SDL_Rect &r, unsigned c)
{
	SDL_Rect b;
	b = { r.x + 6, r.y, r.w - 12, 1 };
	SDL_FillRect(dst, &b, c);
	b.y = r.y + r.h - 1;
	SDL_FillRect(dst, &b, c);
	b = { r.x + 4, r.y + 1, r.w - 8, 1 };
	SDL_FillRect(dst, &b, c);
	b.y = r.y + r.h - 2;
	SDL_FillRect(dst, &b, c);
	b = { r.x + 3, r.y + 2, r.w - 6, 1 };
	SDL_FillRect(dst, &b, c);
	b.y = r.y + r.h - 3;
	SDL_FillRect(dst, &b, c);
	b = { r.x + 2, r.y + 3, r.w - 4, 1 };
	SDL_FillRect(dst, &b, c);
	b.y = r.y + r.h - 4;
	SDL_FillRect(dst, &b, c);
	b = { r.x + 1, r.y + 4, r.w - 2, 2 };
	SDL_FillRect(dst, &b, c);
	b.y = r.y + r.h - 6;
	SDL_FillRect(dst, &b, c);
	b = { r.x, r.y + 6, r.w, r.h - 12 };
	SDL_FillRect(dst, &b, c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x6, %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl $0xc, %eax
movl %eax, -0x2c(%rbp)
movl $0x1, -0x28(%rbp)
movq -0x34(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x2c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x4, %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl $0x8, %eax
movl %eax, -0x3c(%rbp)
movl $0x1, -0x38(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x3c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x2, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x3, %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x2, %eax
movl %eax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl $0x6, %eax
movl %eax, -0x4c(%rbp)
movl $0x1, -0x48(%rbp)
movq -0x54(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x4c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x3, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x2, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x3, %eax
movl %eax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl $0x4, %eax
movl %eax, -0x5c(%rbp)
movl $0x1, -0x58(%rbp)
movq -0x64(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x5c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x4, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x4, %eax
movl %eax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl $0x2, %eax
movl %eax, -0x6c(%rbp)
movl $0x2, -0x68(%rbp)
movq -0x74(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x6c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x6, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x6, %eax
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
subl $0xc, %eax
movl %eax, -0x78(%rbp)
movq -0x84(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x7c(%rbp), %rax
movq %rax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x24(%rbp), %rsi
callq 0x7060
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)