// File: tomfunkhouser[P]gaps/pkgs/R3Graphics/R3Material.cpp
// Function: gaps::R3InitMaterial()
int 
R3InitMaterial()
{
    /* Initialize public variables */
    R3null_material = R3Material(&R3null_brdf, "Null");
    R3black_material = R3Material(&R3black_brdf, "Black");
    R3red_material = R3Material(&R3red_brdf, "Red");
    R3green_material = R3Material(&R3green_brdf, "Green");
    R3blue_material = R3Material(&R3blue_brdf, "Blue");
    R3yellow_material = R3Material(&R3yellow_brdf, "Yellow");
    R3cyan_material = R3Material(&R3cyan_brdf, "Cyan");
    R3magenta_material = R3Material(&R3magenta_brdf, "Magenta");
    R3white_material = R3Material(&R3white_brdf, "White");
    R3gray_material = R3Material(&R3gray_brdf, "Gray");
    R3shiny_black_material = R3Material(&R3shiny_black_brdf, "ShinyBlack");
    R3shiny_red_material = R3Material(&R3shiny_red_brdf, "ShinyRed");
    R3shiny_green_material = R3Material(&R3shiny_green_brdf, "ShinyGreen");
    R3shiny_blue_material = R3Material(&R3shiny_blue_brdf, "ShinyBlue");
    R3shiny_yellow_material = R3Material(&R3shiny_yellow_brdf, "ShinyYellow");
    R3shiny_cyan_material = R3Material(&R3shiny_cyan_brdf, "ShinyCyan");
    R3shiny_magenta_material = R3Material(&R3shiny_magenta_brdf, "ShinyMagenta");
    R3shiny_white_material = R3Material(&R3shiny_white_brdf, "ShinyWhite");
    R3shiny_gray_material = R3Material(&R3shiny_gray_brdf, "ShinyGray");
    R3default_material = R3Material(&R3default_brdf, "Default");
    
    /* Return success */
    return TRUE;
}

// Assembly:
subq $0x478, %rsp            # imm = 0x478
leaq 0x1991ba(%rip), %rsi    # 0x1fc538
leaq 0x12cab1(%rip), %rdx    # 0x18fe36
leaq 0x448(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
callq 0x63e20
movq 0xa0(%rsp), %rsi
leaq 0x198dc7(%rip), %rdi    # 0x1fc170
callq 0x63ba0
jmp 0x633b0
leaq 0x448(%rsp), %rdi
callq 0x63fc0
leaq 0x1992e4(%rip), %rsi    # 0x1fc6a8
leaq 0x12ca75(%rip), %rdx    # 0x18fe40
leaq 0x408(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x63e20
movq 0x98(%rsp), %rsi
leaq 0x198db1(%rip), %rdi    # 0x1fc1a0
callq 0x63ba0
jmp 0x633f6
leaq 0x408(%rsp), %rdi
callq 0x63fc0
leaq 0x199356(%rip), %rsi    # 0x1fc760
leaq 0x12ca3a(%rip), %rdx    # 0x18fe4b
leaq 0x3d8(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0x63e20
movq 0x90(%rsp), %rsi
leaq 0x198d9b(%rip), %rdi    # 0x1fc1d0
callq 0x63ba0
jmp 0x6343c
leaq 0x3d8(%rsp), %rdi
callq 0x63fc0
leaq 0x1993c8(%rip), %rsi    # 0x1fc818
leaq 0x12c9fd(%rip), %rdx    # 0x18fe54
leaq 0x3a8(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0x63e20
movq 0x88(%rsp), %rsi
leaq 0x198d85(%rip), %rdi    # 0x1fc200
callq 0x63ba0
jmp 0x63482
leaq 0x3a8(%rsp), %rdi
callq 0x63fc0
leaq 0x19943a(%rip), %rsi    # 0x1fc8d0
leaq 0x12c9c2(%rip), %rdx    # 0x18fe5f
leaq 0x378(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x63e20
movq 0x80(%rsp), %rsi
leaq 0x198d6f(%rip), %rdi    # 0x1fc230
callq 0x63ba0
jmp 0x634c8
leaq 0x378(%rsp), %rdi
callq 0x63fc0
leaq 0x1994ac(%rip), %rsi    # 0x1fc988
leaq 0x12c986(%rip), %rdx    # 0x18fe69
leaq 0x348(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x63e20
movq 0x78(%rsp), %rsi
leaq 0x198d5f(%rip), %rdi    # 0x1fc260
callq 0x63ba0
jmp 0x63508
leaq 0x348(%rsp), %rdi
callq 0x63fc0
leaq 0x199524(%rip), %rsi    # 0x1fca40
leaq 0x12c952(%rip), %rdx    # 0x18fe75
leaq 0x318(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x63e20
movq 0x70(%rsp), %rsi
leaq 0x198d4f(%rip), %rdi    # 0x1fc290
callq 0x63ba0
jmp 0x63548
leaq 0x318(%rsp), %rdi
callq 0x63fc0
leaq 0x19959c(%rip), %rsi    # 0x1fcaf8
leaq 0x12c91c(%rip), %rdx    # 0x18fe7f
leaq 0x2e8(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x63e20
movq 0x68(%rsp), %rsi
leaq 0x198d3f(%rip), %rdi    # 0x1fc2c0
callq 0x63ba0
jmp 0x63588
leaq 0x2e8(%rsp), %rdi
callq 0x63fc0
leaq 0x199614(%rip), %rsi    # 0x1fcbb0
leaq 0x12c8e9(%rip), %rdx    # 0x18fe8c
leaq 0x2b8(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x63e20
movq 0x60(%rsp), %rsi
leaq 0x198d2f(%rip), %rdi    # 0x1fc2f0
callq 0x63ba0
jmp 0x635c8
leaq 0x2b8(%rsp), %rdi
callq 0x63fc0
leaq 0x19968c(%rip), %rsi    # 0x1fcc68
leaq 0x12c8b4(%rip), %rdx    # 0x18fe97
leaq 0x288(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x63e20
movq 0x58(%rsp), %rsi
leaq 0x198d1f(%rip), %rdi    # 0x1fc320
callq 0x63ba0
jmp 0x63608
leaq 0x288(%rsp), %rdi
callq 0x63fc0
leaq 0x199704(%rip), %rsi    # 0x1fcd20
leaq 0x12c818(%rip), %rdx    # 0x18fe3b
leaq 0x258(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x63e20
movq 0x50(%rsp), %rsi
leaq 0x198d0f(%rip), %rdi    # 0x1fc350
callq 0x63ba0
jmp 0x63648
leaq 0x258(%rsp), %rdi
callq 0x63fc0
leaq 0x19977c(%rip), %rsi    # 0x1fcdd8
leaq 0x12c7e3(%rip), %rdx    # 0x18fe46
leaq 0x228(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x63e20
movq 0x48(%rsp), %rsi
leaq 0x198cff(%rip), %rdi    # 0x1fc380
callq 0x63ba0
jmp 0x63688
leaq 0x228(%rsp), %rdi
callq 0x63fc0
leaq 0x1997f4(%rip), %rsi    # 0x1fce90
leaq 0x12c7ac(%rip), %rdx    # 0x18fe4f
leaq 0x1f8(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x63e20
movq 0x40(%rsp), %rsi
leaq 0x198cef(%rip), %rdi    # 0x1fc3b0
callq 0x63ba0
jmp 0x636c8
leaq 0x1f8(%rsp), %rdi
callq 0x63fc0
leaq 0x19986c(%rip), %rsi    # 0x1fcf48
leaq 0x12c777(%rip), %rdx    # 0x18fe5a
leaq 0x1c8(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x63e20
movq 0x38(%rsp), %rsi
leaq 0x198cdf(%rip), %rdi    # 0x1fc3e0
callq 0x63ba0
jmp 0x63708
leaq 0x1c8(%rsp), %rdi
callq 0x63fc0
leaq 0x1998e4(%rip), %rsi    # 0x1fd000
leaq 0x12c741(%rip), %rdx    # 0x18fe64
leaq 0x198(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x63e20
movq 0x30(%rsp), %rsi
leaq 0x198ccf(%rip), %rdi    # 0x1fc410
callq 0x63ba0
jmp 0x63748
leaq 0x198(%rsp), %rdi
callq 0x63fc0
leaq 0x19995c(%rip), %rsi    # 0x1fd0b8
leaq 0x12c70d(%rip), %rdx    # 0x18fe70
leaq 0x168(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x63e20
movq 0x28(%rsp), %rsi
leaq 0x198cbf(%rip), %rdi    # 0x1fc440
callq 0x63ba0
jmp 0x63788
leaq 0x168(%rsp), %rdi
callq 0x63fc0
leaq 0x1999d4(%rip), %rsi    # 0x1fd170
leaq 0x12c6d7(%rip), %rdx    # 0x18fe7a
leaq 0x138(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x63e20
movq 0x20(%rsp), %rsi
leaq 0x198caf(%rip), %rdi    # 0x1fc470
callq 0x63ba0
jmp 0x637c8
leaq 0x138(%rsp), %rdi
callq 0x63fc0
leaq 0x199a4c(%rip), %rsi    # 0x1fd228
leaq 0x12c6a4(%rip), %rdx    # 0x18fe87
leaq 0x108(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x63e20
movq 0x18(%rsp), %rsi
leaq 0x198c9f(%rip), %rdi    # 0x1fc4a0
callq 0x63ba0
jmp 0x63808
leaq 0x108(%rsp), %rdi
callq 0x63fc0
leaq 0x199ac4(%rip), %rsi    # 0x1fd2e0
leaq 0x12c66f(%rip), %rdx    # 0x18fe92
leaq 0xd8(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x63e20
movq 0x10(%rsp), %rsi
leaq 0x198c8f(%rip), %rdi    # 0x1fc4d0
callq 0x63ba0
jmp 0x63848
leaq 0xd8(%rsp), %rdi
callq 0x63fc0
leaq 0x198d94(%rip), %rsi    # 0x1fc5f0
leaq 0x12bec9(%rip), %rdx    # 0x18f72c
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x63e20
movq 0x8(%rsp), %rsi
leaq 0x198c7f(%rip), %rdi    # 0x1fc500
callq 0x63ba0
jmp 0x63888
leaq 0xa8(%rsp), %rdi
callq 0x63fc0
movl $0x1, %eax
addq $0x478, %rsp            # imm = 0x478
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x448(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x408(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x3d8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x3a8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x378(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x348(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x318(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x2e8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x2b8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x288(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x258(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x228(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x1f8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x1c8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x198(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x168(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x138(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x63fc0
jmp 0x63b8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x440(%rsp)
movl %eax, 0x43c(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x63fc0
movq 0x440(%rsp), %rdi
callq 0x23290
nopl (%rax)