LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/camera.c
// Function: Camera_Init
camera_t *Camera_Init( vec3 pos, vec3 up, float yaw, float pitch, float fov, float aspect, float near, float far, float speed ) {
    camera_t *cam   = ( camera_t * )malloc( sizeof(camera_t) );
    cam->position   = pos;
    cam->up         = up;
    cam->right      = vec3_crs( cam->front, cam->up );
    cam->worldUp    = up;
    cam->yaw        = yaw;
    cam->pitch      = pitch;
    cam->fov        = fov;
    cam->aspect     = aspect;
    cam->near       = near;
    cam->far        = far;
    cam->speed      = speed;
    Camera_UpdateVectors( cam );
    mat4_projection( cam->projection, cam->near, cam->far, cam->fov, cam->aspect );
    return cam;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movss 0x20(%rbp), %xmm8
movss 0x18(%rbp), %xmm8
movss 0x10(%rbp), %xmm8
movlpd %xmm0, -0x20(%rbp)
movss %xmm1, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movlpd %xmm2, -0x40(%rbp)
movss %xmm3, -0x38(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movss %xmm4, -0x44(%rbp)
movss %xmm5, -0x48(%rbp)
movss %xmm6, -0x4c(%rbp)
movss %xmm7, -0x50(%rbp)
movl $0x98, %edi
callq 0x11b0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl -0x8(%rbp), %ecx
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
movl -0x28(%rbp), %ecx
movl %ecx, 0x20(%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl 0x14(%rax), %ecx
movl %ecx, -0x70(%rbp)
movq 0xc(%rax), %rcx
movq %rcx, -0x78(%rbp)
movsd -0x78(%rbp), %xmm0
movss -0x70(%rbp), %xmm1
movl 0x20(%rax), %ecx
movl %ecx, -0x80(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x88(%rbp)
movsd -0x88(%rbp), %xmm2
movss -0x80(%rbp), %xmm3
callq 0x45c0
movq -0xa0(%rbp), %rax
movss %xmm1, -0x90(%rbp)
movlpd %xmm0, -0x98(%rbp)
movq -0x98(%rbp), %rcx
movq %rcx, -0x64(%rbp)
movl -0x90(%rbp), %ecx
movl %ecx, -0x5c(%rbp)
movq -0x64(%rbp), %rcx
movq %rcx, 0x24(%rax)
movl -0x5c(%rbp), %ecx
movl %ecx, 0x2c(%rax)
movq -0x58(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x30(%rax)
movl -0x28(%rbp), %ecx
movl %ecx, 0x38(%rax)
movss -0x44(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x7c(%rax)
movss -0x48(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x80(%rax)
movss -0x4c(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x84(%rax)
movss -0x50(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x88(%rax)
movss 0x10(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x8c(%rax)
movss 0x18(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x90(%rax)
movss 0x20(%rbp), %xmm0
movq -0x58(%rbp), %rax
movss %xmm0, 0x94(%rax)
movq -0x58(%rbp), %rdi
callq 0x1ec0
movq -0x58(%rbp), %rdi
addq $0x3c, %rdi
movq -0x58(%rbp), %rax
movss 0x8c(%rax), %xmm0
movq -0x58(%rbp), %rax
movss 0x90(%rax), %xmm1
movq -0x58(%rbp), %rax
movss 0x84(%rax), %xmm2
movq -0x58(%rbp), %rax
movss 0x88(%rax), %xmm3
callq 0x7870
movq -0x58(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/camera.c
// Function: Camera_PrintInfo
void Camera_PrintInfo ( camera_t *cam ) {
    printf("Position: "); vec3_print(cam->position);
    printf("Front: ");    vec3_print(cam->front);
    printf("Up: ");       vec3_print(cam->up);
    printf("Right: ");    vec3_print(cam->right);
    
    printf("Fov: %f; Aspect: %f\n", cam->fov, cam->aspect);
    printf("Projection Matrix:\n"); mat4_print(cam->projection);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xc5d3(%rip), %rdi      # 0xeb16
xorl %eax, %eax
movb %al, -0x49(%rbp)
callq 0x1040
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
movl %ecx, -0x10(%rbp)
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movsd -0x18(%rbp), %xmm0
movss -0x10(%rbp), %xmm1
callq 0x4f00
movb -0x49(%rbp), %al
leaq 0xbc09(%rip), %rdi      # 0xe180
callq 0x1040
movq -0x8(%rbp), %rax
movl 0x14(%rax), %ecx
movl %ecx, -0x20(%rbp)
movq 0xc(%rax), %rax
movq %rax, -0x28(%rbp)
movsd -0x28(%rbp), %xmm0
movss -0x20(%rbp), %xmm1
callq 0x4f00
movb -0x49(%rbp), %al
leaq 0xbbe1(%rip), %rdi      # 0xe188
callq 0x1040
movq -0x8(%rbp), %rax
movl 0x20(%rax), %ecx
movl %ecx, -0x30(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
callq 0x4f00
movb -0x49(%rbp), %al
leaq 0xbbb6(%rip), %rdi      # 0xe18d
callq 0x1040
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %ecx
movl %ecx, -0x40(%rbp)
movq 0x24(%rax), %rax
movq %rax, -0x48(%rbp)
movsd -0x48(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
callq 0x4f00
movq -0x8(%rbp), %rax
movss 0x84(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x8(%rbp), %rax
movss 0x88(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0xbb71(%rip), %rdi      # 0xe195
movb $0x2, %al
callq 0x1040
leaq 0xbb78(%rip), %rdi      # 0xe1aa
movb $0x0, %al
callq 0x1040
movq -0x8(%rbp), %rdi
addq $0x3c, %rdi
callq 0x6a30
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_Init
void List_Init ( List *list, void ( *Print_Data )( void *data ), void ( *Destroy_Node )( void *data ) ){
    list->size = 0;
    list->Destroy_Node = Destroy_Node;
    list->Print_Data = Print_Data;
    list->head = NULL;
    list->tail = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, (%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x20(%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_Destroy
void List_Destroy ( List *list ){
    while(list->size > 0){
        if(list->tail == NULL || List_Size(list) == 0)
            break;

        List_Pop(list);
    }

    memset(list, 0, sizeof(List));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jle 0x29d6
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x29c9
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x29cb
jmp 0x29d6
movq -0x8(%rbp), %rdi
callq 0x29f0
jmp 0x29ac
movq -0x8(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x10c0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_Pop
void List_Pop ( List *list ){
    if(list->size == 0){
        printf("Warning: List is empty, nothing to remove!\n");
        return;
    } else {
        node_t *curr = list->tail;
        if (list->size == 1){
            list->Destroy_Node(curr->data);
            free(curr);
            list->head = list->tail = NULL;
        } else {
            list->tail = curr->prev;
            list->tail->next = NULL;
            list->Destroy_Node(curr->data);
            free(curr);
        }
        list->size--;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x2a18
leaq 0xb7d7(%rip), %rdi      # 0xe1e3
movb $0x0, %al
callq 0x1040
jmp 0x2aa6
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x2a61
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rdi
callq 0x1278
movq -0x8(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
jmp 0x2a9b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rdi
callq 0x1278
movq -0x8(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_Push
void List_Push ( List *list, void *data ){
    node_t *new_node;

    if( (new_node = (node_t*)malloc(sizeof(node_t))) == NULL ){
        printf("Error: Can not create new list node!");
        return;
    }
    new_node->data = data;

    if(list->size == 0){
        list->head = new_node;
        list->head->prev = NULL;
        list->head->next = NULL;
        list->tail = new_node;
    } else {
        list->tail->next = new_node;
        new_node->next = NULL;
        new_node->prev = list->tail;
        list->tail = new_node;
    }
    //list->Print_Data(data);
    list->size++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x18, %edi
callq 0x11b0
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x2ae7
leaq 0xb6e3(%rip), %rdi      # 0xe1be
movb $0x0, %al
callq 0x1040
jmp 0x2b78
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x2b35
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq $0x0, 0x8(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
jmp 0x2b6d
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_Print
void List_Print ( List *list ){
    if(list->size == 0){
        printf("List is empty!\n");
        return;
    }
    node_t *curr = list->head;

    while( curr->next != NULL ){
        list->Print_Data(curr->data);
        curr = curr->next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x2ba5
leaq 0xb673(%rip), %rdi      # 0xe20f
movb $0x0, %al
callq 0x1040
jmp 0x2bdb
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2bdb
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x2bb1
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/data.c
// Function: List_IsEmpty
int List_IsEmpty ( List *list ){
    if(list->size)
        return 1;
    else
        return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2c0a
movl $0x1, -0x4(%rbp)
jmp 0x2c11
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Color_InitVec3
color_t Color_InitVec3( vec3 v ) {
	color_t c = Color_Init( (unsigned char)( clamp( v.x, 0.0f, 1.0f ) * 255.0f ),
                            (unsigned char)( clamp( v.y, 0.0f, 1.0f ) * 255.0f ),
                            (unsigned char)( clamp( v.z, 0.0f, 1.0f ) * 255.0f ),
                            255 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movlpd %xmm0, -0x20(%rbp)
movss %xmm1, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movss -0x10(%rbp), %xmm0
xorps %xmm1, %xmm1
movss %xmm1, -0x34(%rbp)
movss 0xb36f(%rip), %xmm2     # 0xe004
movss %xmm2, -0x30(%rbp)
callq 0x8120
movss -0x34(%rbp), %xmm1
movss -0x30(%rbp), %xmm2
movss 0xb56f(%rip), %xmm3     # 0xe220
movss %xmm3, -0x2c(%rbp)
mulss %xmm3, %xmm0
cvttss2si %xmm0, %eax
movb %al, -0x26(%rbp)
movss -0xc(%rbp), %xmm0
callq 0x8120
movss -0x34(%rbp), %xmm1
movss -0x30(%rbp), %xmm2
movss -0x2c(%rbp), %xmm3
mulss %xmm3, %xmm0
cvttss2si %xmm0, %eax
movb %al, -0x25(%rbp)
movss -0x8(%rbp), %xmm0
callq 0x8120
movss -0x2c(%rbp), %xmm1
movb -0x26(%rbp), %sil
movb -0x25(%rbp), %dl
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl $0xff, %ecx
movzbl %sil, %edi
movzbl %dl, %esi
movzbl %al, %edx
callq 0x2c20
movl %eax, -0x24(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Color_Lerp
color_t Color_Lerp( color_t src1, color_t src2, float a ) {
	color_t res;
    res.r = (1 - a) * src1.r + a * src2.r;
    res.g = (1 - a) * src1.g + a * src2.g;
    res.b = (1 - a) * src1.b + a * src2.b;
    res.a = (1 - a) * src1.a + a * src2.a;
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movss %xmm0, -0x10(%rbp)
movss -0x10(%rbp), %xmm2
movss 0xb238(%rip), %xmm0     # 0xe004
movaps %xmm0, %xmm1
subss %xmm2, %xmm1
movzbl -0x8(%rbp), %eax
cvtsi2ss %eax, %xmm3
movzbl -0xc(%rbp), %eax
cvtsi2ss %eax, %xmm4
mulss %xmm4, %xmm2
mulss %xmm3, %xmm1
addss %xmm2, %xmm1
cvttss2si %xmm1, %eax
movb %al, -0x4(%rbp)
movss -0x10(%rbp), %xmm2
movaps %xmm0, %xmm1
subss %xmm2, %xmm1
movzbl -0x7(%rbp), %eax
cvtsi2ss %eax, %xmm3
movzbl -0xb(%rbp), %eax
cvtsi2ss %eax, %xmm4
mulss %xmm4, %xmm2
mulss %xmm3, %xmm1
addss %xmm2, %xmm1
cvttss2si %xmm1, %eax
movb %al, -0x3(%rbp)
movss -0x10(%rbp), %xmm2
movaps %xmm0, %xmm1
subss %xmm2, %xmm1
movzbl -0x6(%rbp), %eax
cvtsi2ss %eax, %xmm3
movzbl -0xa(%rbp), %eax
cvtsi2ss %eax, %xmm4
mulss %xmm4, %xmm2
mulss %xmm3, %xmm1
addss %xmm2, %xmm1
cvttss2si %xmm1, %eax
movb %al, -0x2(%rbp)
movss -0x10(%rbp), %xmm1
subss %xmm1, %xmm0
movzbl -0x5(%rbp), %eax
cvtsi2ss %eax, %xmm2
movzbl -0x9(%rbp), %eax
cvtsi2ss %eax, %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, -0x1(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Color_Intensity
color_t Color_Intensity( color_t c, float a ) {
    if( a < 0.0f )
        return Color_Init( 0, 0, 0, 255 );
    if( a > 1.0f )
        return c;
    color_t res = Color_Init( (unsigned char)(c.r * a), (unsigned char)(c.g * a), (unsigned char)(c.b * a), c.a );
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
xorps %xmm0, %xmm0
ucomiss -0xc(%rbp), %xmm0
jbe 0x2ebe
xorl %edx, %edx
movl $0xff, %ecx
movl %edx, %edi
movl %edx, %esi
callq 0x2c20
movl %eax, -0x4(%rbp)
jmp 0x2f26
movss -0xc(%rbp), %xmm0
movss 0xb139(%rip), %xmm1     # 0xe004
ucomiss %xmm1, %xmm0
jbe 0x2ed8
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f26
movzbl -0x8(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0xc(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movzbl -0x7(%rbp), %eax
cvtsi2ss %eax, %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %cl
movzbl -0x6(%rbp), %eax
cvtsi2ss %eax, %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movzbl %dl, %edi
movzbl %cl, %esi
movzbl %al, %edx
movzbl -0x5(%rbp), %ecx
callq 0x2c20
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Color_IntensityVec3
color_t Color_IntensityVec3( color_t c, vec3 v ) {
	float x, y, z;
    x = clamp( v.x, 0.0f, 1.0f );
    y = clamp( v.y, 0.0f, 1.0f );
    z = clamp( v.z, 0.0f, 1.0f );
    color_t res = Color_Init( (unsigned char)(c.r * x), (unsigned char)(c.g * y), (unsigned char)(c.b * z), c.a );
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x8(%rbp)
movlpd %xmm0, -0x28(%rbp)
movss %xmm1, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movss -0x18(%rbp), %xmm0
xorps %xmm1, %xmm1
movss %xmm1, -0x3c(%rbp)
movss 0xb09c(%rip), %xmm2     # 0xe004
movss %xmm2, -0x38(%rbp)
callq 0x8120
movss -0x3c(%rbp), %xmm1
movss -0x38(%rbp), %xmm2
movss %xmm0, -0x2c(%rbp)
movss -0x14(%rbp), %xmm0
callq 0x8120
movss -0x3c(%rbp), %xmm1
movss -0x38(%rbp), %xmm2
movss %xmm0, -0x30(%rbp)
movss -0x10(%rbp), %xmm0
callq 0x8120
movss %xmm0, -0x34(%rbp)
movzbl -0x8(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %dl
movzbl -0x7(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x30(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %cl
movzbl -0x6(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss -0x34(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movzbl %dl, %edi
movzbl %cl, %esi
movzbl %al, %edx
movzbl -0x5(%rbp), %ecx
callq 0x2c20
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_CreateMap
bitmap_t *Bitmap_CreateMap( unsigned int w, unsigned int h ) {
    bitmap_t * new_image;
    new_image = (bitmap_t*)malloc( sizeof(bitmap_t) );
    color_t c = { 0, 0, 0, 0 };

    new_image->width = w;
    new_image->height = h;
    new_image->bitmap = malloc( w * h * sizeof(color_t) );

    Bitmap_FillColor( new_image, c );

    return new_image;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x10, %edi
callq 0x11b0
movq %rax, -0x10(%rbp)
leaq -0x14(%rbp), %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0x10c0
movl -0x4(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl -0x8(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x4(%rbp), %eax
imull -0x8(%rbp), %eax
movl %eax, %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x11b0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x3180
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_FillColor
void Bitmap_FillColor( bitmap_t *i, color_t c ) {
    unsigned int w, h;
    for( h = 0; h < i->height; h++ ) {
        for( w = 0; w < i->width; w++ ) {
            i->bitmap[ h * i->width + w ] = c;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, -0x4(%rbp)
movq %rdi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x31e5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x31d8
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rdx
imull (%rdx), %ecx
addl -0x14(%rbp), %ecx
movl %ecx, %ecx
movl -0x4(%rbp), %edx
movl %edx, (%rax,%rcx,4)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x31a5
jmp 0x31da
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3192
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_SetPixel
void Bitmap_SetPixel( bitmap_t *i, unsigned int x, unsigned int y, color_t c ) {
    if ( x > i->width || x < 0 || y > i->height || y < 0 )
        printf( "Warning: Try to put pixel out of image size! Bitmap size:(%d, %d), Point:(%d, %d)\n", i->width, i->height, x, y );
    else {
        int tmp = y * i->width + x ;
        i->bitmap[ tmp ] = c;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %ecx, -0x4(%rbp)
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
ja 0x34b8
cmpl $0x0, -0x14(%rbp)
jb 0x34b8
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
ja 0x34b8
cmpl $0x0, -0x18(%rbp)
jae 0x34dc
movq -0x10(%rbp), %rax
movl (%rax), %esi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %r8d
leaq 0xada7(%rip), %rdi      # 0xe27a
movb $0x0, %al
callq 0x1040
jmp 0x34fe
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
imull (%rcx), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
movl -0x4(%rbp), %edx
movl %edx, (%rax,%rcx,4)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_GetPixelUV
color_t Bitmap_GetPixelUV( bitmap_t *i, vec2 uv ) {
    //unsigned int x = i->width * (uv.x - (int)uv.x);
    //unsigned int y = i->height * (uv.y - (int)uv.y);
    //uint32_t x = (uint32_t)(i->width * uv.x) % i->width;
    //uint32_t y = (uint32_t)(i->height * uv.y) % i->height;
    uint32_t x = (uint32_t)((i->width - 1) * uv.x);
    uint32_t y = (uint32_t)((i->height -1) * uv.y);

    return i->bitmap[ (y % i->height) * i->width + x % i->width ];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0xc(%rbp)
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
decl %eax
cvtsi2ss %rax, %xmm0
movss -0xc(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %rax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
decl %eax
cvtsi2ss %rax, %xmm0
movss -0x8(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %rax
movl %eax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rcx
xorl %edx, %edx
divl 0x4(%rcx)
movl %edx, %ecx
movq -0x18(%rbp), %rax
imull (%rax), %ecx
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rsi
xorl %edx, %edx
divl (%rsi)
movq -0x28(%rbp), %rax
addl %edx, %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_Save
void Bitmap_Save( bitmap_t *i ) {
    FILE *output;
    if ( ( output = fopen( "image.ppm","w" ) ) == NULL )
        printf( "ERROR: Can not create or open file!\n" );
    else{
        fprintf( output, "P3\n%d %d\n255\n", i->width, i->height );
        unsigned int w, h;
        color_t c;
        for( h = 0; h < i->height; h++ ) {
            for( w = 0; w < i->width; w++ ) {
                c = i->bitmap[ h * i->width + w ];
                fprintf( output, "%d %d %d\n", c.r, c.g, c.b );
            }
        }
    }
    fclose(output);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xacea(%rip), %rdi      # 0xe2cd
leaq 0xaced(%rip), %rsi      # 0xe2d7
callq 0x1190
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0x360c
leaq 0xacd9(%rip), %rdi      # 0xe2d9
movb $0x0, %al
callq 0x1040
jmp 0x36a6
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
leaq 0xacda(%rip), %rsi      # 0xe2fe
movb $0x0, %al
callq 0x11c0
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x36a4
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x3697
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rdx
imull (%rdx), %ecx
addl -0x14(%rbp), %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movzbl -0x1c(%rbp), %edx
movzbl -0x1b(%rbp), %ecx
movzbl -0x1a(%rbp), %r8d
leaq 0xad89(%rip), %rsi      # 0xe40e
movb $0x0, %al
callq 0x11c0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3645
jmp 0x3699
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3632
jmp 0x36a6
movq -0x10(%rbp), %rdi
callq 0x1160
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_SavePPM6
void Bitmap_SavePPM6( bitmap_t *i ) {
    FILE *output;
    if ( ( output = fopen( "image1.ppm","wb" ) ) == NULL )
        printf( "ERROR: Can not create or open file!\n" );
    else{
        fprintf( output, "P6\n%d %d\n255\n", i->width, i->height );
        unsigned int w, h;
        color_t c;
        for( h = 0; h < i->height; h++ ) {
            for( w = 0; w < i->width; w++ ) {
                c = i->bitmap[ h * i->width + w ];
                unsigned char wcolor[3];
                wcolor[0] = c.r;
                wcolor[1] = c.g;
                wcolor[2] = c.b;
                fwrite(wcolor, 1, 3, output);
            }
        }
    }
    fclose(output);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xab49(%rip), %rdi      # 0xe30c
leaq 0xab4d(%rip), %rsi      # 0xe317
callq 0x1190
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0x37ec
leaq 0xaaf9(%rip), %rdi      # 0xe2d9
movb $0x0, %al
callq 0x1040
jmp 0x3890
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
leaq 0xab16(%rip), %rsi      # 0xe31a
movb $0x0, %al
callq 0x11c0
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x388e
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x3881
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rdx
imull (%rdx), %ecx
addl -0x14(%rbp), %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x1c(%rbp)
movb -0x1c(%rbp), %al
movb %al, -0x1f(%rbp)
movb -0x1b(%rbp), %al
movb %al, -0x1e(%rbp)
movb -0x1a(%rbp), %al
movb %al, -0x1d(%rbp)
leaq -0x1f(%rbp), %rdi
movq -0x10(%rbp), %rcx
movl $0x1, %esi
movl $0x3, %edx
callq 0x1250
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3825
jmp 0x3883
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3812
jmp 0x3890
movq -0x10(%rbp), %rdi
callq 0x1160
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/image.c
// Function: Bitmap_Print
void Bitmap_Print( bitmap_t *i ) {
    unsigned int w, h, index;
    for( h = 0; h < i->height; h++ ) {
        for( w = 0; w < i->width; w++ ) {
            index = h * i->width + w;
            printf( "Pos:(%d, %d); r:%d, g:%d, b:%d, a:%d \n", w, h, i->bitmap[index].r, i->bitmap[index].g, i->bitmap[index].b, i->bitmap[index].a  );
        }
    }
    printf( " === \n" );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x3988
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x3978
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
imull (%rcx), %eax
addl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx,4), %ecx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %edi
movzbl 0x1(%rax,%rdi,4), %r8d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %edi
movzbl 0x2(%rax,%rdi,4), %r9d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %edi
movzbl 0x3(%rax,%rdi,4), %eax
leaq 0xa9eb(%rip), %rdi      # 0xe34e
movl %eax, (%rsp)
movb $0x0, %al
callq 0x1040
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x38fa
jmp 0x397a
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x38e3
leaq 0xa9e6(%rip), %rdi      # 0xe375
movb $0x0, %al
callq 0x1040
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2i_add
vec2i vec2i_add(vec2i v1, vec2i v2){
    vec2i v3;
    v3.x = v1.x + v2.x;
    v3.y = v1.y + v2.y;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl -0x10(%rbp), %eax
addl -0x18(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0xc(%rbp), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2i_mlt
vec2i vec2i_mlt(vec2i v1,  float f){
    vec2i v3;
    v3.x = v1.x * f;
    v3.y = v1.y * f;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
cvtsi2ssl -0x10(%rbp), %xmm0
mulss -0x14(%rbp), %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x8(%rbp)
cvtsi2ssl -0xc(%rbp), %xmm0
mulss -0x14(%rbp), %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x4(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2i_neg
vec2i vec2i_neg(vec2i v1){
    vec2i v2;
    v2.x = -v1.x;
    v2.y = -v1.y;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
xorl %eax, %eax
subl -0x10(%rbp), %eax
movl %eax, -0x8(%rbp)
xorl %eax, %eax
subl -0xc(%rbp), %eax
movl %eax, -0x4(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2_add
vec2 vec2_add(vec2 v1, vec2 v2){
    vec2 v3;
    v3.x = v1.x + v2.x;
    v3.y = v1.y + v2.y;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x18(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x18(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x8(%rbp), %xmm0
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2_mlt
vec2 vec2_mlt(vec2 v1, float f){
    vec2 v3;
    v3.x = v1.x * f;
    v3.y = v1.y * f;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x10(%rbp)
movss %xmm1, -0x14(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x8(%rbp), %xmm0
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2_neg
vec2 vec2_neg(vec2 v1){
    vec2 v2;
    v2.x = -v1.x;
    v2.y = -v1.y;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x10(%rbp)
movss -0x10(%rbp), %xmm0
movaps 0xa47b(%rip), %xmm1     # 0xe160
pxor %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0xc(%rbp), %xmm0
pxor %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x8(%rbp), %xmm0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec2_nrm
vec2 vec2_nrm(vec2 v1){
    vec2 v2;
    float len = vec2_lng(v1);
    v2.x = v1.x / len;
    v2.y = v1.y / len;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movlpd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
callq 0x3d60
movss %xmm0, -0x14(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3i_arrayToVec3ip
vec3i *vec3i_arrayToVec3ip(int size, int *ar){
    int i;
    vec3i *v = malloc(sizeof(vec3i) * (size / 3));
    for(i = 0; i < size / 3; i++)
        v[i] = (vec3i){ar[i*3], ar[i*3+1], ar[i*3+2]};
    return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
cltq
imulq $0xc, %rax, %rdi
callq 0x11b0
movq %rax, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x4(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x30(%rbp), %eax
cmpl %ecx, %eax
jge 0x402a
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
imull $0x3, -0x14(%rbp), %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x2c(%rbp)
movq -0x10(%rbp), %rcx
imull $0x3, -0x14(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x28(%rbp)
movq -0x10(%rbp), %rcx
imull $0x3, -0x14(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x24(%rbp)
movq -0x2c(%rbp), %rcx
movq %rcx, (%rax)
movl -0x24(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3fb0
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3i_add
vec3i vec3i_add(vec3i v1, vec3i v2){
    vec3i v3;
    v3.x = v1.x + v2.x;
    v3.y = v1.y + v2.y;
    v3.z = v1.z + v2.z;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x28(%rbp)
movl %esi, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq %rdx, -0x48(%rbp)
movl %ecx, -0x40(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x18(%rbp), %eax
movl -0x38(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0xc(%rbp)
movl -0x14(%rbp), %eax
movl -0x34(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x8(%rbp)
movl -0x10(%rbp), %eax
movl -0x30(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0xc(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %edx
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3i_mlt
vec3i vec3i_mlt(vec3i v1,  float f){
    vec3i v3;
    v3.x = v1.x * f;
    v3.y = v1.y * f;
    v3.z = v1.z * f;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x28(%rbp)
movl %esi, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movss %xmm0, -0x2c(%rbp)
cvtsi2ssl -0x18(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0xc(%rbp)
cvtsi2ssl -0x14(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x8(%rbp)
cvtsi2ssl -0x10(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0xc(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x38(%rbp), %edx
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3i_neg
vec3i vec3i_neg(vec3i v1){
    vec3i v2;
    v2.x = -v1.x;
    v2.y = -v1.y;
    v2.z = -v1.z;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x28(%rbp)
movl %esi, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x18(%rbp), %eax
negl %eax
movl %eax, -0xc(%rbp)
movl -0x14(%rbp), %eax
negl %eax
movl %eax, -0x8(%rbp)
movl -0x10(%rbp), %eax
negl %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0xc(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %edx
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3_neg
vec3 vec3_neg(vec3 v1){
    vec3 v2;
    v2.x = -v1.x;
    v2.y = -v1.y;
    v2.z = -v1.z;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x28(%rbp)
movss %xmm1, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movss -0x18(%rbp), %xmm0
movaps 0x9ab8(%rip), %xmm1     # 0xe160
pxor %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0x14(%rbp), %xmm0
pxor %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0x10(%rbp), %xmm0
pxor %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0xc(%rbp), %rax
movq %rax, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3_nrm
vec3 vec3_nrm(vec3 v1){
    vec3 v2;
    float len = vec3_lng(v1);
    v2.x = v1.x / len;
    v2.y = v1.y / len;
    v2.z = v1.z / len;
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movlpd %xmm0, -0x28(%rbp)
movss %xmm1, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movsd -0x40(%rbp), %xmm0
movss -0x38(%rbp), %xmm1
callq 0x4790
movss %xmm0, -0x2c(%rbp)
movss -0x18(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0x14(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0xc(%rbp), %rax
movq %rax, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
movss -0x48(%rbp), %xmm1
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec3_byMat4
vec3 vec3_byMat4(vec3 v, mat4 m){
    vec4 v2 = {m[ 0] * v.x + m[ 1] * v.y + m[ 2] * v.z + m[ 3],
               m[ 4] * v.x + m[ 5] * v.y + m[ 6] * v.z + m[ 7],
               m[ 8] * v.x + m[ 9] * v.y + m[10] * v.z + m[11],
               m[12] * v.x + m[13] * v.y + m[14] * v.z + m[15],};
    /*
    vec3 v2 = {m[ 0] * v.x + m[ 1] * v.y + m[ 2] * v.z,
               m[ 4] * v.x + m[ 5] * v.y + m[ 6] * v.z,
               m[ 8] * v.x + m[ 9] * v.y + m[10] * v.z};
    */
    return vec4_toVec3( vec4_pdiv( v2 ) );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movlpd %xmm0, -0x30(%rbp)
movss %xmm1, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq %rdi, -0x38(%rbp)
movq -0x38(%rbp), %rax
movss (%rax), %xmm1
movss 0x4(%rax), %xmm0
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm0
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x8(%rax), %xmm0
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0xc(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x48(%rbp)
movq -0x38(%rbp), %rax
movss 0x10(%rax), %xmm1
movss 0x14(%rax), %xmm0
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm0
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x18(%rax), %xmm0
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x1c(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x44(%rbp)
movq -0x38(%rbp), %rax
movss 0x20(%rax), %xmm1
movss 0x24(%rax), %xmm0
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm0
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x28(%rax), %xmm0
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x2c(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
movq -0x38(%rbp), %rax
movss 0x30(%rax), %xmm1
movss 0x34(%rax), %xmm0
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm0
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x38(%rax), %xmm0
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x3c(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
callq 0x4ea0
movlpd %xmm0, -0x58(%rbp)
movlpd %xmm1, -0x50(%rbp)
movsd -0x58(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
callq 0x4e50
movss %xmm1, -0x60(%rbp)
movlpd %xmm0, -0x68(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movsd -0x78(%rbp), %xmm0
movss -0x70(%rbp), %xmm1
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec4_add
vec4 vec4_add(vec4 v1, vec4 v2){
    vec4 v3;
    v3.x = v1.x + v2.x;
    v3.y = v1.y + v2.y;
    v3.z = v1.z + v2.z;
    v3.w = v1.w + v2.w;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x20(%rbp)
movlpd %xmm1, -0x18(%rbp)
movlpd %xmm2, -0x30(%rbp)
movlpd %xmm3, -0x28(%rbp)
movss -0x20(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x10(%rbp)
movss -0x1c(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0x18(%rbp), %xmm0
movss -0x28(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0x14(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec4_mlt
vec4 vec4_mlt(vec4 v1, float f){
    vec4 v3;
    v3.x = v1.x * f;
    v3.y = v1.y * f;
    v3.z = v1.z * f;
    v3.w = v1.w * f;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x20(%rbp)
movlpd %xmm1, -0x18(%rbp)
movss %xmm2, -0x24(%rbp)
movss -0x20(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x10(%rbp)
movss -0x1c(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0x18(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0x14(%rbp), %xmm0
movss -0x24(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec4_crs
vec4 vec4_crs(vec4 v1, vec4 v2){
    vec4 v3;
    v3.x = v1.y * v2.z - v1.z * v2.y;
    v3.y = v1.z * v2.x - v1.x * v2.z;
    v3.z = v1.x * v2.y - v1.y * v2.x;
    v3.w = 1;
    return v3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x20(%rbp)
movlpd %xmm1, -0x18(%rbp)
movlpd %xmm2, -0x30(%rbp)
movlpd %xmm3, -0x28(%rbp)
movss -0x2c(%rbp), %xmm3
movss -0x28(%rbp), %xmm2
movss -0x1c(%rbp), %xmm0
movss -0x18(%rbp), %xmm1
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x10(%rbp)
movss -0x20(%rbp), %xmm1
movss -0x18(%rbp), %xmm0
movss -0x30(%rbp), %xmm2
movss -0x28(%rbp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0x30(%rbp), %xmm3
movss -0x2c(%rbp), %xmm2
movss -0x20(%rbp), %xmm0
movss -0x1c(%rbp), %xmm1
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movl $0x3f800000, -0x4(%rbp) # imm = 0x3F800000
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: vec4_byMat4
vec4 vec4_byMat4(vec4 v, mat4 m){
    vec4 v2 = {m[ 0] * v.x + m[ 1] * v.y + m[ 2] * v.z + m[ 3] * v.w,
               m[ 4] * v.x + m[ 5] * v.y + m[ 6] * v.z + m[ 7] * v.w,
               m[ 8] * v.x + m[ 9] * v.y + m[10] * v.z + m[11] * v.w,
               m[12] * v.x + m[13] * v.y + m[14] * v.z + m[15] * v.w};
    return v2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movlpd %xmm0, -0x20(%rbp)
movlpd %xmm1, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq -0x28(%rbp), %rax
movss (%rax), %xmm0
movss 0x4(%rax), %xmm1
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x8(%rax), %xmm1
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0xc(%rax), %xmm0
movss -0x14(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x10(%rbp)
movq -0x28(%rbp), %rax
movss 0x10(%rax), %xmm0
movss 0x14(%rax), %xmm1
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x18(%rax), %xmm1
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x1c(%rax), %xmm0
movss -0x14(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movq -0x28(%rbp), %rax
movss 0x20(%rax), %xmm0
movss 0x24(%rax), %xmm1
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x28(%rax), %xmm1
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x2c(%rax), %xmm0
movss -0x14(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movq -0x28(%rbp), %rax
movss 0x30(%rax), %xmm0
movss 0x34(%rax), %xmm1
movss -0x20(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x38(%rax), %xmm1
movss -0x18(%rbp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x3c(%rax), %xmm0
movss -0x14(%rbp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: mat4_mlt
void mat4_mlt( mat4 m1, mat4 m2, mat4 dest ){
    int i, j, k;
    for (i = 0; i < 4; i++)
        for (j = 0; j < 4; j++)
            for(k = 0; k < 4; k++)
                dest[i * 4 + j] += m1[i * 4 + k] * m2[4 * k + j];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x4, -0x1c(%rbp)
jge 0x594f
movl $0x0, -0x20(%rbp)
cmpl $0x4, -0x20(%rbp)
jge 0x593f
movl $0x0, -0x24(%rbp)
cmpl $0x4, -0x24(%rbp)
jge 0x5932
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
shll $0x2, %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
shll $0x2, %ecx
addl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm2
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
shll $0x2, %ecx
addl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x58d5
jmp 0x5934
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x58c8
jmp 0x5941
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x58b7
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/libmath.c
// Function: mat4_tsp
void mat4_tsp( mat4 m1, mat4 dest ){
    int i, j;
    for (i = 0; i < 4; i++)
        for (j = 0; j < 4; j++)
            dest[i * 4 + j] = m1[i + j * 4];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x59ca
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x59bd
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %edx
shll $0x2, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
shll $0x2, %ecx
addl -0x18(%rbp), %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x5980
jmp 0x59bf
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5973
popq %rbp
retq
nopl (%rax)