static int local_chmod(FsContext *fs_ctx, const char *path, FsCred *credp)

{

    if (fs_ctx->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(fs_ctx, path), credp);

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {

        return chmod(rpath(fs_ctx, path), credp->fc_mode);

    }

    return -1;

}

static int local_chmod(FsContext *fs_ctx, const char *path, FsCred *credp)

{

    if (fs_ctx->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(fs_ctx, path), credp);

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {

        return chmod(rpath(fs_ctx, path), credp->fc_mode);

    }

    return -1;

}

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2)

{

    if (VAR_0->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(VAR_0, VAR_1), VAR_2);

    } else if (VAR_0->fs_sm == SM_PASSTHROUGH) {

        return chmod(rpath(VAR_0, VAR_1), VAR_2->fc_mode);

    }

    return -1;

}

static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2)
{ if (VAR_0->fs_sm == SM_MAPPED) { return local_set_xattr(rpath(VAR_0, VAR_1), VAR_2); } else if (VAR_0->fs_sm == SM_PASSTHROUGH) { return chmod(rpath(VAR_0, VAR_1), VAR_2->fc_mode); } return -1; }