// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/map.c
// Function: map_draw_terrain
void
map_draw_terrain(map_t *map, panel_t *p)
{
    for (size_t y = 0; y < MAP_HEIGHT; y++) {
        for (size_t x = 0; x < MAP_WIDTH; x++) {
            uint16_t c = map->high[x][y].base;
            font_t font = base_font(c, x, y);
            panel_putc(p, x, y, font, c);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
xorl %r15d, %r15d
xorps %xmm0, %xmm0
cvtsi2ss %r15d, %xmm0
divss 0x33ac(%rip), %xmm0     # 0x77ec
addss 0x3394(%rip), %xmm0     # 0x77dc
mulss %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movq %rdi, %r13
xorl %r12d, %r12d
movzwl (%r13), %ebp
xorl %r14d, %r14d
cmpl $0x2228, %ebp           # imm = 0x2228
jle 0x44de
cmpl $0x25b1, %ebp           # imm = 0x25B1
jg 0x451a
cmpl $0x2229, %ebp           # imm = 0x2229
je 0x4552
cmpl $0x2248, %ebp           # imm = 0x2248
jne 0x456f
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
divss 0x334f(%rip), %xmm0     # 0x77f0
addss 0x3333(%rip), %xmm0     # 0x77dc
cvtss2sd %xmm0, %xmm0
mulsd 0x337b(%rip), %xmm0     # 0x7830
cvtsd2ss %xmm0, %xmm0
mulss %xmm0, %xmm0
addss 0x8(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x3381(%rip), %xmm0     # 0x7850
jb 0x4577
sqrtsd %xmm0, %xmm0
jmp 0x457c
cmpl $0x20, %ebp
je 0x453e
cmpl $0x2e, %ebp
je 0x452a
movl $0x0, %ecx
movl $0x0, %edx
movl $0x0, %eax
cmpl $0x3a, %ebp
jne 0x45f0
movl $0x1000000, %r14d       # imm = 0x1000000
movl $0x10000, %eax          # imm = 0x10000
movl $0x300, %edx            # imm = 0x300
movl $0x3, %ecx
jmp 0x45f0
cmpl $0x25b2, %ebp           # imm = 0x25B2
je 0x4563
cmpl $0x2663, %ebp           # imm = 0x2663
jne 0x456f
movl $0x10000, %eax          # imm = 0x10000
movl $0x200, %edx            # imm = 0x200
movl $0x2, %ecx
jmp 0x45f0
movl $0x10000, %eax          # imm = 0x10000
movl $0x400, %edx            # imm = 0x400
movl $0x4, %ecx
jmp 0x45f0
movl $0x10000, %eax          # imm = 0x10000
movl $0x200, %edx            # imm = 0x200
xorl %ecx, %ecx
jmp 0x45f0
movl $0x200, %edx            # imm = 0x200
movl $0x7, %ecx
jmp 0x4573
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
jmp 0x45f0
callq 0x1260
mulsd 0x32b4(%rip), %xmm0     # 0x7838
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
callq 0x6128
movq %rax, %xmm1
punpckldq 0x32c0(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x32c8(%rip), %xmm1     # 0x7870
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x3284(%rip), %xmm0     # 0x7840
movsd 0x3284(%rip), %xmm1     # 0x7848
callq 0x1130
cvtsd2ss %xmm0, %xmm0
addss 0xc(%rsp), %xmm0
callq 0x1100
xorl %eax, %eax
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
seta %al
shll $0x10, %eax
movl $0x400, %edx            # imm = 0x400
movl $0x7, %ecx
orl %r14d, %eax
orl %edx, %ecx
orl %eax, %ecx
movq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %r8d
callq 0x31f4
incq %r12
addq $0x180, %r13            # imm = 0x180
cmpq $0x3c, %r12
jne 0x445d
incq %r15
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
cmpq $0x18, %r15
jne 0x4430
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq