// File: /workspace/github_c_makefile_star2_O0/lukexi[P]eglstreams-mini/src/kms.c
// Function: AssignPropertyIDs
static void AssignPropertyIDs(int drmFd,
                              const struct Config *pConfig,
                              struct PropertyIDs *pPropertyIDs)
{
    struct PropertyIDAddresses crtcTable[] = {
        { "MODE_ID", &pPropertyIDs->crtc.mode_id      },
        { "ACTIVE",  &pPropertyIDs->crtc.active       },
    };

    struct PropertyIDAddresses planeTable[] = {
        { "SRC_X",   &pPropertyIDs->plane.src_x       },
        { "SRC_Y",   &pPropertyIDs->plane.src_y       },
        { "SRC_W",   &pPropertyIDs->plane.src_w       },
        { "SRC_H",   &pPropertyIDs->plane.src_h       },
        { "CRTC_X",  &pPropertyIDs->plane.crtc_x      },
        { "CRTC_Y",  &pPropertyIDs->plane.crtc_y      },
        { "CRTC_W",  &pPropertyIDs->plane.crtc_w      },
        { "CRTC_H",  &pPropertyIDs->plane.crtc_h      },
        { "FB_ID",   &pPropertyIDs->plane.fb_id       },
        { "CRTC_ID", &pPropertyIDs->plane.crtc_id     },
    };

    struct PropertyIDAddresses connectorTable[] = {
        { "CRTC_ID", &pPropertyIDs->connector.crtc_id },
    };

    AssignPropertyIDsOneType(drmFd, pConfig->crtcID,
                             DRM_MODE_OBJECT_CRTC,
                             crtcTable, ARRAY_LEN(crtcTable));
    AssignPropertyIDsOneType(drmFd, pConfig->planeID,
                             DRM_MODE_OBJECT_PLANE,
                             planeTable, ARRAY_LEN(planeTable));
    AssignPropertyIDsOneType(drmFd, pConfig->connectorID,
                             DRM_MODE_OBJECT_CONNECTOR,
                             connectorTable, ARRAY_LEN(connectorTable));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x26a5(%rip), %rax      # 0x7052
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x269a(%rip), %rax      # 0x705a
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
leaq 0x268a(%rip), %rax      # 0x7061
movq %rax, -0xe0(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xd8(%rbp)
leaq 0x2673(%rip), %rax      # 0x7067
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x4, %rax
movq %rax, -0xc8(%rbp)
leaq 0x2658(%rip), %rax      # 0x706d
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x8, %rax
movq %rax, -0xb8(%rbp)
leaq 0x263d(%rip), %rax      # 0x7073
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0xc, %rax
movq %rax, -0xa8(%rbp)
leaq 0x2622(%rip), %rax      # 0x7079
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x10, %rax
movq %rax, -0x98(%rbp)
leaq 0x2608(%rip), %rax      # 0x7080
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x14, %rax
movq %rax, -0x88(%rbp)
leaq 0x25ee(%rip), %rax      # 0x7087
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x18, %rax
movq %rax, -0x78(%rbp)
leaq 0x25da(%rip), %rax      # 0x708e
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x1c, %rax
movq %rax, -0x68(%rbp)
leaq 0x25c6(%rip), %rax      # 0x7095
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x20, %rax
movq %rax, -0x58(%rbp)
leaq 0x25b1(%rip), %rax      # 0x709b
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
addq $0x24, %rax
movq %rax, -0x48(%rbp)
leaq 0x2596(%rip), %rax      # 0x709b
movq %rax, -0xf0(%rbp)
movq -0x18(%rbp), %rax
addq $0x30, %rax
movq %rax, -0xe8(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %esi
leaq -0x40(%rbp), %rcx
movl $0xcccccccc, %edx       # imm = 0xCCCCCCCC
movl $0x2, %r8d
callq 0x4b90
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %esi
leaq -0xe0(%rbp), %rcx
movl $0xeeeeeeee, %edx       # imm = 0xEEEEEEEE
movl $0xa, %r8d
callq 0x4b90
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rax
movl (%rax), %esi
leaq -0xf0(%rbp), %rcx
movl $0xc0c0c0c0, %edx       # imm = 0xC0C0C0C0
movl $0x1, %r8d
callq 0x4b90
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)